UTF8ByteArrayUtils
and
StreamKeyValUtil
insteadpublic class UTF8ByteArrayUtils extends Object
Constructor and Description |
---|
UTF8ByteArrayUtils()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static int |
findByte(byte[] utf,
int start,
int end,
byte b)
Deprecated.
|
static int |
findBytes(byte[] utf,
int start,
int end,
byte[] b)
Deprecated.
|
static int |
findNthByte(byte[] utf,
byte b,
int n)
Deprecated.
|
static int |
findNthByte(byte[] utf,
int start,
int length,
byte b,
int n)
Deprecated.
|
static int |
findTab(byte[] utf)
Deprecated.
|
static int |
findTab(byte[] utf,
int start,
int length)
Deprecated.
|
static int |
readLine(LineReader lineReader,
Text out)
Deprecated.
|
static void |
splitKeyVal(byte[] utf,
int start,
int length,
Text key,
Text val,
int splitPos)
Deprecated.
|
static void |
splitKeyVal(byte[] utf,
int start,
int length,
Text key,
Text val,
int splitPos,
int separatorLength)
|
static void |
splitKeyVal(byte[] utf,
Text key,
Text val,
int splitPos)
Deprecated.
|
static void |
splitKeyVal(byte[] utf,
Text key,
Text val,
int splitPos,
int separatorLength)
Deprecated.
|
@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
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 valueIOException
@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 posIOException
@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 valueIOException
@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 posIOException
@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 intoIOException
Copyright © 2010 The Apache Software Foundation