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
PositionOutputStream is an interface with the methods needed by
Parquet to write data to a file or Hadoop data stream.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract longgetPos()Reports the current position of this output stream.Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write, write, write
-
Constructor Details
-
PositionOutputStream
public PositionOutputStream()
-
-
Method Details
-
getPos
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
-