Class SimpleDeserializer

java.lang.Object
io.trino.hive.formats.line.simple.SimpleDeserializer
All Implemented Interfaces:
LineDeserializer

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

  • 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) throws IOException
      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
      Throws:
      IOException - if line can not be decoded and processing should stop