Class CsvDeserializer

java.lang.Object
io.trino.hive.formats.line.csv.CsvDeserializer
All Implemented Interfaces:
LineDeserializer

public class CsvDeserializer extends Object implements LineDeserializer
Deserializer that is bug for bug compatible with OpenCSVSerde.
  • Constructor Details

    • CsvDeserializer

      public CsvDeserializer(List<Column> columns, char separatorChar, char quoteChar, char escapeChar)
  • Method Details

    • getTypes

      public List<? extends Type> getTypes()
      Description copied from interface: LineDeserializer
      Required types for the deserialize page builder.
      Specified by:
      getTypes in interface LineDeserializer
    • deserialize

      public void deserialize(LineBuffer lineBuffer, PageBuilder builder)
      Description copied from interface: LineDeserializer
      Deserialize 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:
      deserialize in interface LineDeserializer
      Parameters:
      lineBuffer - the line which may be empty
      builder - page builder for the declared types