@PublicEvolving public class ShortValueParser extends FieldParser<ShortValue>
ShortValue.
Only characters '1' to '0' and '-' are allowed.FieldParser.ParseErrorState| Constructor and Description |
|---|
ShortValueParser() |
| Modifier and Type | Method and Description |
|---|---|
ShortValue |
createValue()
Returns an instance of the parsed value type.
|
ShortValue |
getLastResult()
Gets the parsed field.
|
int |
parseField(byte[] bytes,
int startPos,
int limit,
byte[] delimiter,
ShortValue reusable)
Each parser's logic should be implemented inside this method
|
delimiterNext, getErrorState, getParserForType, resetErrorStateAndParse, resetParserState, setErrorStatepublic int parseField(byte[] bytes,
int startPos,
int limit,
byte[] delimiter,
ShortValue reusable)
FieldParserparseField in class FieldParser<ShortValue>FieldParser#parseField(byte[], int, int, byte[], Object)}public ShortValue createValue()
FieldParsercreateValue in class FieldParser<ShortValue>public ShortValue 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<ShortValue>Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.