Package org.apache.parquet.io
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
PositionOutputStreamis an interface with the methods needed by Parquet to write data to a file or Hadoop data stream.
-
-
Constructor Summary
Constructors Constructor Description PositionOutputStream()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract longgetPos()Reports the current position of this output stream.-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write, write, write
-
-
-
-
Method Detail
-
getPos
public abstract long getPos() throws IOExceptionReports 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
-
-