Package io.trino.orc.stream
Class LongOutputStreamV1
- java.lang.Object
-
- io.trino.orc.stream.LongOutputStreamV1
-
- All Implemented Interfaces:
LongOutputStream,ValueOutputStream<LongStreamCheckpoint>
public class LongOutputStreamV1 extends Object implements LongOutputStream
-
-
Constructor Summary
Constructors Constructor Description LongOutputStreamV1(CompressionKind compression, int bufferSize, boolean signed, Stream.StreamKind streamKind)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetBufferedBytes()This method returns the size of the flushed data plus any unflushed data.List<LongStreamCheckpoint>getCheckpoints()longgetRetainedBytes()StreamDataOutputgetStreamDataOutput(OrcColumnId columnId)voidrecordCheckpoint()voidreset()voidwriteLong(long value)
-
-
-
Constructor Detail
-
LongOutputStreamV1
public LongOutputStreamV1(CompressionKind compression, int bufferSize, boolean signed, Stream.StreamKind streamKind)
-
-
Method Detail
-
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
public List<LongStreamCheckpoint> getCheckpoints()
- Specified by:
getCheckpointsin interfaceValueOutputStream<LongStreamCheckpoint>
-
getStreamDataOutput
public StreamDataOutput getStreamDataOutput(OrcColumnId columnId)
- 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>
-
-