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
ConstructorsConstructorDescriptionBooleanOutputStream(CompressionKind compression, int bufferSize) BooleanOutputStream(OrcOutputBuffer buffer) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longThis method returns the size of the flushed data plus any unflushed data.longgetStreamDataOutput(OrcColumnId columnId) voidvoidreset()voidwriteBoolean(boolean value) voidwriteBooleans(int count, boolean value)
-
Constructor Details
-
BooleanOutputStream
-
BooleanOutputStream
-
-
Method Details
-
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
- Specified by:
getCheckpointsin interfaceValueOutputStream<BooleanStreamCheckpoint>
-
getStreamDataOutput
- 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>
-