Class PositionOutputStream

java.lang.Object
java.io.OutputStream
org.apache.parquet.io.PositionOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Direct Known Subclasses:
DelegatingPositionOutputStream

public abstract class PositionOutputStream extends OutputStream
PositionOutputStream is an interface with the methods needed by Parquet to write data to a file or Hadoop data stream.
  • Constructor Details

    • PositionOutputStream

      public PositionOutputStream()
  • Method Details

    • getPos

      public abstract long getPos() throws IOException
      Reports the current position of this output stream.
      Returns:
      a long, the current position in bytes starting from 0
      Throws:
      IOException - when the underlying stream throws IOException