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