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