@PublicEvolving public class ByteValueParser extends FieldParser<ByteValue>
ByteValue.
Only characters '1' to '0' and '-' are allowed.FieldParser.ParseErrorState| Constructor and Description |
|---|
ByteValueParser() |
| Modifier and Type | Method and Description |
|---|---|
ByteValue |
createValue()
Returns an instance of the parsed value type.
|
ByteValue |
getLastResult()
Gets the parsed field.
|
int |
parseField(byte[] bytes,
int startPos,
int limit,
byte[] delimiter,
ByteValue reusable)
Each parser's logic should be implemented inside this method
|
delimiterNext, endsWithDelimiter, getCharset, getErrorState, getParserForType, nextStringEndPos, nextStringLength, resetErrorStateAndParse, resetParserState, setCharset, setErrorStatepublic int parseField(byte[] bytes,
int startPos,
int limit,
byte[] delimiter,
ByteValue reusable)
FieldParserparseField in class FieldParser<ByteValue>public ByteValue createValue()
FieldParsercreateValue in class FieldParser<ByteValue>public ByteValue getLastResult()
FieldParserFieldParser.parseField(byte[], int, int, byte[], Object). It objects are mutable and reused, it will return
the object instance that was passed the parse function.getLastResult in class FieldParser<ByteValue>Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.