Interface LineSerializer

All Known Implementing Classes:
CsvSerializer, JsonSerializer, OpenXJsonSerializer, SimpleSerializer

public interface LineSerializer
  • Method Summary

    Modifier and Type
    Method
    Description
    List<? extends Type>
    Required types for the deserialize page builder.
    void
    write(Page page, int position, io.airlift.slice.SliceOutput sliceOutput)
    Serialize the page position into the page builder.
  • Method Details

    • getTypes

      List<? extends Type> getTypes()
      Required types for the deserialize page builder.
    • write

      void write(Page page, int position, io.airlift.slice.SliceOutput sliceOutput) throws IOException
      Serialize the page position into the page builder.
      Throws:
      IOException - if line can not be written and processing should stop
      RuntimeException - if line can not be decoded and processing should stop