Package io.trino.orc.stream
Class LongOutputStreamV1
java.lang.Object
io.trino.orc.stream.LongOutputStreamV1
- All Implemented Interfaces:
LongOutputStream,ValueOutputStream<LongStreamCheckpoint>
-
Constructor Summary
ConstructorsConstructorDescriptionLongOutputStreamV1(CompressionKind compression, int bufferSize, boolean signed, Stream.StreamKind streamKind) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longThis method returns the size of the flushed data plus any unflushed data.longgetStreamDataOutput(OrcColumnId columnId) voidvoidreset()voidwriteLong(long value)
-
Constructor Details
-
LongOutputStreamV1
public LongOutputStreamV1(CompressionKind compression, int bufferSize, boolean signed, Stream.StreamKind streamKind)
-
-
Method Details
-
writeLong
public void writeLong(long value) - Specified by:
writeLongin interfaceLongOutputStream
-
recordCheckpoint
public void recordCheckpoint()- Specified by:
recordCheckpointin interfaceValueOutputStream<LongStreamCheckpoint>
-
close
public void close()- Specified by:
closein interfaceValueOutputStream<LongStreamCheckpoint>
-
getCheckpoints
- Specified by:
getCheckpointsin interfaceValueOutputStream<LongStreamCheckpoint>
-
getStreamDataOutput
- Specified by:
getStreamDataOutputin interfaceValueOutputStream<LongStreamCheckpoint>
-
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<LongStreamCheckpoint>
-
getRetainedBytes
public long getRetainedBytes()- Specified by:
getRetainedBytesin interfaceValueOutputStream<LongStreamCheckpoint>
-
reset
public void reset()- Specified by:
resetin interfaceValueOutputStream<LongStreamCheckpoint>
-