|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.streaming.UTF8ByteArrayUtils
UTF8ByteArrayUtils
and
StreamKeyValUtil
instead
public class UTF8ByteArrayUtils
General utils for byte array containing UTF-8 encoded strings
Constructor Summary | |
---|---|
UTF8ByteArrayUtils()
Deprecated. |
Method Summary | |
---|---|
static int |
findByte(byte[] utf,
int start,
int end,
byte b)
Deprecated. use UTF8ByteArrayUtils.findByte(byte[], int,
int, byte) |
static int |
findBytes(byte[] utf,
int start,
int end,
byte[] b)
Deprecated. use UTF8ByteArrayUtils.findBytes(byte[], int,
int, byte[]) |
static int |
findNthByte(byte[] utf,
byte b,
int n)
Deprecated. use UTF8ByteArrayUtils.findNthByte(byte[],
byte, int) |
static int |
findNthByte(byte[] utf,
int start,
int length,
byte b,
int n)
Deprecated. use UTF8ByteArrayUtils.findNthByte(byte[], int,
int, byte, int) |
static int |
findTab(byte[] utf)
Deprecated. use StreamKeyValUtil.findTab(byte[]) |
static int |
findTab(byte[] utf,
int start,
int length)
Deprecated. use StreamKeyValUtil.findTab(byte[], int, int) |
static int |
readLine(LineReader lineReader,
Text out)
Deprecated. use StreamKeyValUtil.readLine(LineReader, Text) |
static void |
splitKeyVal(byte[] utf,
int start,
int length,
Text key,
Text val,
int splitPos)
Deprecated. use StreamKeyValUtil.splitKeyVal(byte[], int, int, Text, Text, int) |
static void |
splitKeyVal(byte[] utf,
int start,
int length,
Text key,
Text val,
int splitPos,
int separatorLength)
Deprecated. use StreamKeyValUtil.splitKeyVal(byte[], int, int, Text, Text,
int, int) |
static void |
splitKeyVal(byte[] utf,
Text key,
Text val,
int splitPos)
Deprecated. use StreamKeyValUtil.splitKeyVal(byte[], Text, Text, int) |
static void |
splitKeyVal(byte[] utf,
Text key,
Text val,
int splitPos,
int separatorLength)
Deprecated. use StreamKeyValUtil.splitKeyVal(byte[], Text, Text, int, int) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UTF8ByteArrayUtils()
Method Detail |
---|
@Deprecated public static int findTab(byte[] utf, int start, int length)
StreamKeyValUtil.findTab(byte[], int, int)
utf
- a byte array containing a UTF-8 encoded stringstart
- starting offsetlength
- no. of bytes
@Deprecated public static int findByte(byte[] utf, int start, int end, byte b)
UTF8ByteArrayUtils.findByte(byte[], int,
int, byte)
utf
- a byte array containing a UTF-8 encoded stringstart
- starting offsetend
- ending positionb
- the byte to find
@Deprecated public static int findBytes(byte[] utf, int start, int end, byte[] b)
UTF8ByteArrayUtils.findBytes(byte[], int,
int, byte[])
utf
- a byte array containing a UTF-8 encoded stringstart
- starting offsetend
- ending positionb
- the bytes to find
@Deprecated public static int findNthByte(byte[] utf, int start, int length, byte b, int n)
UTF8ByteArrayUtils.findNthByte(byte[], int,
int, byte, int)
utf
- a byte array containing a UTF-8 encoded stringstart
- starting offsetlength
- the length of byte arrayb
- the byte to findn
- the desired occurrence of the given byte
@Deprecated public static int findNthByte(byte[] utf, byte b, int n)
UTF8ByteArrayUtils.findNthByte(byte[],
byte, int)
utf
- a byte array containing a UTF-8 encoded stringb
- the byte to findn
- the desired occurrence of the given byte
@Deprecated public static int findTab(byte[] utf)
StreamKeyValUtil.findTab(byte[])
utf
- a byte array containing a UTF-8 encoded string
@Deprecated public static void splitKeyVal(byte[] utf, int start, int length, Text key, Text val, int splitPos, int separatorLength) throws IOException
StreamKeyValUtil.splitKeyVal(byte[], int, int, Text, Text,
int, int)
utf
- utf-8 encoded stringstart
- starting offsetlength
- no. of byteskey
- contains key upon the method is returnedval
- contains value upon the method is returnedsplitPos
- the split posseparatorLength
- the length of the separator between key and value
IOException
@Deprecated public static void splitKeyVal(byte[] utf, int start, int length, Text key, Text val, int splitPos) throws IOException
StreamKeyValUtil.splitKeyVal(byte[], int, int, Text, Text, int)
utf
- utf-8 encoded stringstart
- starting offsetlength
- no. of byteskey
- contains key upon the method is returnedval
- contains value upon the method is returnedsplitPos
- the split pos
IOException
@Deprecated public static void splitKeyVal(byte[] utf, Text key, Text val, int splitPos, int separatorLength) throws IOException
StreamKeyValUtil.splitKeyVal(byte[], Text, Text, int, int)
utf
- utf-8 encoded stringkey
- contains key upon the method is returnedval
- contains value upon the method is returnedsplitPos
- the split posseparatorLength
- the length of the separator between key and value
IOException
@Deprecated public static void splitKeyVal(byte[] utf, Text key, Text val, int splitPos) throws IOException
StreamKeyValUtil.splitKeyVal(byte[], Text, Text, int)
utf
- utf-8 encoded stringkey
- contains key upon the method is returnedval
- contains value upon the method is returnedsplitPos
- the split pos
IOException
@Deprecated public static int readLine(LineReader lineReader, Text out) throws IOException
StreamKeyValUtil.readLine(LineReader, Text)
lineReader
- LineReader to read the line from.out
- Text to read into
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |