Package io.trino.orc

Interface OrcDataSink

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
OutputStreamOrcDataSink

public interface OrcDataSink extends Closeable
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    ORC file is complete
    long
    Gets the size of the memory buffers.
    long
    Number of bytes written to this sink so far.
    void
    write(List<OrcDataOutput> outputData)
    Write a stripe and optionally header and footer data
  • Method Details

    • size

      long size()
      Number of bytes written to this sink so far.
    • getRetainedSizeInBytes

      long getRetainedSizeInBytes()
      Gets the size of the memory buffers.
    • write

      void write(List<OrcDataOutput> outputData) throws IOException
      Write a stripe and optionally header and footer data
      Throws:
      IOException
    • close

      void close() throws IOException
      ORC file is complete
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException