Package io.trino.hive.formats.line.csv
Class CsvDeserializer
java.lang.Object
io.trino.hive.formats.line.csv.CsvDeserializer
- All Implemented Interfaces:
LineDeserializer
Deserializer that is bug for bug compatible with OpenCSVSerde.
-
Field Summary
Fields inherited from interface io.trino.hive.formats.line.LineDeserializer
EMPTY_LINE_DESERIALIZER -
Constructor Summary
ConstructorsConstructorDescriptionCsvDeserializer(List<Column> columns, char separatorChar, char quoteChar, char escapeChar) -
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
-
CsvDeserializer
-
-
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
-