Package io.trino.orc.stream
Class ByteOutputStream
java.lang.Object
io.trino.orc.stream.ByteOutputStream
- All Implemented Interfaces:
ValueOutputStream<ByteStreamCheckpoint>
-
Constructor Summary
ConstructorsConstructorDescriptionByteOutputStream(CompressionKind compression, int bufferSize) ByteOutputStream(OrcOutputBuffer buffer) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longThis method returns the size of the flushed data plus any unflushed data.longgetStreamDataOutput(OrcColumnId columnId) voidvoidreset()voidwriteByte(byte value)
-
Constructor Details
-
ByteOutputStream
-
ByteOutputStream
-
-
Method Details
-
writeByte
public void writeByte(byte value) -
recordCheckpoint
public void recordCheckpoint()- Specified by:
recordCheckpointin interfaceValueOutputStream<ByteStreamCheckpoint>
-
close
public void close()- Specified by:
closein interfaceValueOutputStream<ByteStreamCheckpoint>
-
getCheckpoints
- Specified by:
getCheckpointsin interfaceValueOutputStream<ByteStreamCheckpoint>
-
getStreamDataOutput
- Specified by:
getStreamDataOutputin interfaceValueOutputStream<ByteStreamCheckpoint>
-
getBufferedBytes
public long getBufferedBytes()Description copied from interface:ValueOutputStreamThis method returns the size of the flushed data plus any unflushed data. If the output is compressed, flush data size is the size after compression.- Specified by:
getBufferedBytesin interfaceValueOutputStream<ByteStreamCheckpoint>
-
getRetainedBytes
public long getRetainedBytes()- Specified by:
getRetainedBytesin interfaceValueOutputStream<ByteStreamCheckpoint>
-
reset
public void reset()- Specified by:
resetin interfaceValueOutputStream<ByteStreamCheckpoint>
-