Package io.trino.orc.stream
Class BooleanOutputStream
- java.lang.Object
-
- io.trino.orc.stream.BooleanOutputStream
-
- All Implemented Interfaces:
ValueOutputStream<BooleanStreamCheckpoint>
public class BooleanOutputStream extends Object implements ValueOutputStream<BooleanStreamCheckpoint>
-
-
Constructor Summary
Constructors Constructor Description BooleanOutputStream(CompressionKind compression, int bufferSize)BooleanOutputStream(OrcOutputBuffer buffer)
-
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<BooleanStreamCheckpoint>getCheckpoints()longgetRetainedBytes()StreamDataOutputgetStreamDataOutput(OrcColumnId columnId)voidrecordCheckpoint()voidreset()voidwriteBoolean(boolean value)voidwriteBooleans(int count, boolean value)
-
-
-
Constructor Detail
-
BooleanOutputStream
public BooleanOutputStream(CompressionKind compression, int bufferSize)
-
BooleanOutputStream
public BooleanOutputStream(OrcOutputBuffer buffer)
-
-
Method Detail
-
writeBoolean
public void writeBoolean(boolean value)
-
writeBooleans
public void writeBooleans(int count, boolean value)
-
recordCheckpoint
public void recordCheckpoint()
- Specified by:
recordCheckpointin interfaceValueOutputStream<BooleanStreamCheckpoint>
-
close
public void close()
- Specified by:
closein interfaceValueOutputStream<BooleanStreamCheckpoint>
-
getCheckpoints
public List<BooleanStreamCheckpoint> getCheckpoints()
- Specified by:
getCheckpointsin interfaceValueOutputStream<BooleanStreamCheckpoint>
-
getStreamDataOutput
public StreamDataOutput getStreamDataOutput(OrcColumnId columnId)
- Specified by:
getStreamDataOutputin interfaceValueOutputStream<BooleanStreamCheckpoint>
-
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<BooleanStreamCheckpoint>
-
getRetainedBytes
public long getRetainedBytes()
- Specified by:
getRetainedBytesin interfaceValueOutputStream<BooleanStreamCheckpoint>
-
reset
public void reset()
- Specified by:
resetin interfaceValueOutputStream<BooleanStreamCheckpoint>
-
-