Class SimpleDeserializer
java.lang.Object
io.trino.hive.formats.line.simple.SimpleDeserializer
- All Implemented Interfaces:
LineDeserializer
Deserializer that is bug for bug compatible with LazySimpleSerDe.
-
Field Summary
Fields inherited from interface io.trino.hive.formats.line.LineDeserializer
EMPTY_LINE_DESERIALIZER -
Constructor Summary
ConstructorsConstructorDescriptionSimpleDeserializer(List<Column> columns, TextEncodingOptions textEncodingOptions, int tableColumnCount) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(LineBuffer lineBuffer, PageBuilder builder) Deserialize the line into the page builder.getTypes()Required types for the deserialize page builder.
-
Constructor Details
-
SimpleDeserializer
public SimpleDeserializer(List<Column> columns, TextEncodingOptions textEncodingOptions, int tableColumnCount)
-
-
Method Details
-
getTypes
Description copied from interface:LineDeserializerRequired types for the deserialize page builder.- Specified by:
getTypesin interfaceLineDeserializer
-
deserialize
Description copied from interface:LineDeserializerDeserialize the line into the page builder. The implementation will declare the added positions in the page builder. The implementation is allowed to add zero or more positions to the builder.- Specified by:
deserializein interfaceLineDeserializer- Parameters:
lineBuffer- the line which may be emptybuilder- page builder for the declared types- Throws:
IOException- if line can not be decoded and processing should stop
-