Package org.apache.flink.types.parser
Class BooleanParser
- java.lang.Object
-
- org.apache.flink.types.parser.FieldParser<Boolean>
-
- org.apache.flink.types.parser.BooleanParser
-
@PublicEvolving public class BooleanParser extends FieldParser<Boolean>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.types.parser.FieldParser
FieldParser.ParseErrorState
-
-
Constructor Summary
Constructors Constructor Description BooleanParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleancreateValue()Returns an instance of the parsed value type.BooleangetLastResult()Gets the parsed field.intparseField(byte[] bytes, int startPos, int limit, byte[] delimiter, Boolean 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[] delimiter, Boolean reuse)Description copied from class:FieldParserEach parser's logic should be implemented inside this method- Specified by:
parseFieldin classFieldParser<Boolean>
-
getLastResult
public Boolean getLastResult()
Description copied from class:FieldParserGets 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:
getLastResultin classFieldParser<Boolean>- Returns:
- The latest parsed field.
-
createValue
public Boolean createValue()
Description copied from class:FieldParserReturns an instance of the parsed value type.- Specified by:
createValuein classFieldParser<Boolean>- Returns:
- An instance of the parsed value type.
-
-