UTF8ByteArrayUtils
and
StreamKeyValUtil
insteadpublic class UTF8ByteArrayUtils extends Object
构造器和说明 |
---|
UTF8ByteArrayUtils()
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
static int |
findByte(byte[] utf,
int start,
int end,
byte b)
|
static int |
findBytes(byte[] utf,
int start,
int end,
byte[] b)
|
static int |
findNthByte(byte[] utf,
byte b,
int n)
|
static int |
findNthByte(byte[] utf,
int start,
int length,
byte b,
int n)
|
static int |
findTab(byte[] utf)
已过时。
|
static int |
findTab(byte[] utf,
int start,
int length)
|
static int |
readLine(LineReader lineReader,
Text out)
|
static void |
splitKeyVal(byte[] utf,
int start,
int length,
Text key,
Text val,
int splitPos)
|
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)
|
static void |
splitKeyVal(byte[] utf,
Text key,
Text val,
int splitPos,
int separatorLength)
|
@Deprecated public static int findTab(byte[] utf, int start, int length)
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)
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)
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)
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)
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
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
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
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
lineReader
- LineReader to read the line from.out
- Text to read intoIOException
Copyright © 2009 The Apache Software Foundation