Package com.jerolba.carpet.io
Class OutputStreamOutputFile
java.lang.Object
com.jerolba.carpet.io.OutputStreamOutputFile
- All Implemented Interfaces:
org.apache.parquet.io.OutputFile
Class for writing to an OutputStream using the Parquet output file interface.
-
Constructor Summary
ConstructorsConstructorDescriptionOutputStreamOutputFile(OutputStream outputStream) Constructs an OutputStreamOutputFile with the specified OutputStream. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.parquet.io.PositionOutputStreamcreate(long blockSizeHint) Creates an output stream for writing.org.apache.parquet.io.PositionOutputStreamcreateOrOverwrite(long blockSizeHint) Creates or overwrites an output stream for writing.longReturns 0 to indicate that this implementation does not support block sizes.booleanReturns false to indicate that this implementation does not support block sizes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.parquet.io.OutputFile
getPath
-
Constructor Details
-
OutputStreamOutputFile
Constructs an OutputStreamOutputFile with the specified OutputStream.- Parameters:
outputStream- the OutputStream to write to
-
-
Method Details
-
create
Creates an output stream for writing.- Specified by:
createin interfaceorg.apache.parquet.io.OutputFile- Parameters:
blockSizeHint- the block size hint, ignored by this implementation- Returns:
- a new PositionOutputStream for writing to the OutputStream
- Throws:
IOException- if an error occurs while creating the output stream
-
createOrOverwrite
public org.apache.parquet.io.PositionOutputStream createOrOverwrite(long blockSizeHint) throws IOException Creates or overwrites an output stream for writing.- Specified by:
createOrOverwritein interfaceorg.apache.parquet.io.OutputFile- Parameters:
blockSizeHint- the block size hint, ignored by this implementation- Returns:
- a new PositionOutputStream for writing to the OutputStream
- Throws:
IOException- if an error occurs while creating the output stream
-
supportsBlockSize
public boolean supportsBlockSize()Returns false to indicate that this implementation does not support block sizes.- Specified by:
supportsBlockSizein interfaceorg.apache.parquet.io.OutputFile- Returns:
- false
-
defaultBlockSize
public long defaultBlockSize()Returns 0 to indicate that this implementation does not support block sizes.- Specified by:
defaultBlockSizein interfaceorg.apache.parquet.io.OutputFile- Returns:
- 0
-