Package org.apache.flink.types.parser
Class BooleanValueParser
- java.lang.Object
-
- org.apache.flink.types.parser.FieldParser<BooleanValue>
-
- org.apache.flink.types.parser.BooleanValueParser
-
@PublicEvolving public class BooleanValueParser extends FieldParser<BooleanValue>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.types.parser.FieldParser
FieldParser.ParseErrorState
-
-
Constructor Summary
Constructors Constructor Description BooleanValueParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanValue
createValue()
Returns an instance of the parsed value type.BooleanValue
getLastResult()
Gets the parsed field.int
parseField(byte[] bytes, int startPos, int limit, byte[] delim, BooleanValue reuse)
Each parser's logic should be implemented inside this method-
Methods inherited from class org.apache.flink.types.parser.FieldParser
delimiterNext, endsWithDelimiter, getCharset, getErrorState, getParserForType, nextStringEndPos, nextStringLength, resetErrorStateAndParse, resetParserState, setCharset, setErrorState
-
-
-
-
Method Detail
-
parseField
public int parseField(byte[] bytes, int startPos, int limit, byte[] delim, BooleanValue reuse)
Description copied from class:FieldParser
Each parser's logic should be implemented inside this method- Specified by:
parseField
in classFieldParser<BooleanValue>
-
getLastResult
public BooleanValue getLastResult()
Description copied from class:FieldParser
Gets the parsed field. This method returns the value parsed by the last successful invocation ofFieldParser.parseField(byte[], int, int, byte[], Object)
. It objects are mutable and reused, it will return the object instance that was passed the parse function.- Specified by:
getLastResult
in classFieldParser<BooleanValue>
- Returns:
- The latest parsed field.
-
createValue
public BooleanValue createValue()
Description copied from class:FieldParser
Returns an instance of the parsed value type.- Specified by:
createValue
in classFieldParser<BooleanValue>
- Returns:
- An instance of the parsed value type.
-
-