Class JsonSerializer

java.lang.Object
io.trino.hive.formats.line.json.JsonSerializer
All Implemented Interfaces:
LineSerializer

public class JsonSerializer extends Object implements LineSerializer
Deserializer that is bug for bug compatible with Hive JsonSerDe.
  • Constructor Details

    • JsonSerializer

      public JsonSerializer(List<Column> columns)
  • Method Details

    • getTypes

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

      public void write(Page page, int position, io.airlift.slice.SliceOutput sliceOutput) throws IOException
      Description copied from interface: LineSerializer
      Serialize the page position into the page builder.
      Specified by:
      write in interface LineSerializer
      Throws:
      IOException - if line can not be written and processing should stop