コード例 #1
0
 /**
  * Find the first occured tab in a UTF-8 encoded string
  *
  * @param utf a byte array containing a UTF-8 encoded string
  * @param start starting offset
  * @param length no. of bytes
  * @return position that first tab occures otherwise -1
  * @deprecated use {@link StreamKeyValUtil#findTab(byte[], int, int)}
  */
 @Deprecated
 public static int findTab(byte[] utf, int start, int length) {
   return StreamKeyValUtil.findTab(utf, start, length);
 }
コード例 #2
0
 /**
  * Read a utf8 encoded line from a data input stream.
  *
  * @param lineReader LineReader to read the line from.
  * @param out Text to read into
  * @return number of bytes read
  * @deprecated use {@link StreamKeyValUtil#readLine(LineReader, Text)}
  * @throws IOException
  */
 @Deprecated
 public static int readLine(LineReader lineReader, Text out) throws IOException {
   return StreamKeyValUtil.readLine(lineReader, out);
 }
コード例 #3
0
 /**
  * split a UTF-8 byte array into key and value assuming that the delimilator is at splitpos.
  *
  * @param utf utf-8 encoded string
  * @param start starting offset
  * @param length no. of bytes
  * @param key contains key upon the method is returned
  * @param val contains value upon the method is returned
  * @param splitPos the split pos
  * @param separatorLength the length of the separator between key and value
  * @deprecated use {@link StreamKeyValUtil#splitKeyVal(byte[], int, int, Text, Text, int, int)}
  * @throws IOException
  */
 @Deprecated
 public static void splitKeyVal(
     byte[] utf, int start, int length, Text key, Text val, int splitPos, int separatorLength)
     throws IOException {
   StreamKeyValUtil.splitKeyVal(utf, start, length, key, val, splitPos, separatorLength);
 }
コード例 #4
0
 /**
  * split a UTF-8 byte array into key and value assuming that the delimilator is at splitpos.
  *
  * @param utf utf-8 encoded string
  * @param key contains key upon the method is returned
  * @param val contains value upon the method is returned
  * @param splitPos the split pos
  * @deprecated use {@link StreamKeyValUtil#splitKeyVal(byte[], Text, Text, int)}
  * @throws IOException
  */
 @Deprecated
 public static void splitKeyVal(byte[] utf, Text key, Text val, int splitPos) throws IOException {
   StreamKeyValUtil.splitKeyVal(utf, key, val, splitPos);
 }
コード例 #5
0
 /**
  * Find the first occured tab in a UTF-8 encoded string
  *
  * @param utf a byte array containing a UTF-8 encoded string
  * @return position that first tab occures otherwise -1
  * @deprecated use {@link StreamKeyValUtil#findTab(byte[])}
  */
 @Deprecated
 public static int findTab(byte[] utf) {
   return StreamKeyValUtil.findTab(utf);
 }