Package io.trino.orc.stream
Class DecimalOutputStream
java.lang.Object
io.trino.orc.stream.DecimalOutputStream
- All Implemented Interfaces:
ValueOutputStream<DecimalStreamCheckpoint>
public class DecimalOutputStream
extends Object
implements ValueOutputStream<DecimalStreamCheckpoint>
This is only for mantissa/significant of a decimal and not the exponent.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longThis method returns the size of the flushed data plus any unflushed data.longgetStreamDataOutput(OrcColumnId columnId) voidvoidreset()voidwriteUnscaledValue(long value) voidwriteUnscaledValue(Int128 decimal)
-
Constructor Details
-
DecimalOutputStream
-
-
Method Details
-
writeUnscaledValue
-
writeUnscaledValue
public void writeUnscaledValue(long value) -
recordCheckpoint
public void recordCheckpoint()- Specified by:
recordCheckpointin interfaceValueOutputStream<DecimalStreamCheckpoint>
-
close
public void close()- Specified by:
closein interfaceValueOutputStream<DecimalStreamCheckpoint>
-
getCheckpoints
- Specified by:
getCheckpointsin interfaceValueOutputStream<DecimalStreamCheckpoint>
-
getStreamDataOutput
- Specified by:
getStreamDataOutputin interfaceValueOutputStream<DecimalStreamCheckpoint>
-
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<DecimalStreamCheckpoint>
-
getRetainedBytes
public long getRetainedBytes()- Specified by:
getRetainedBytesin interfaceValueOutputStream<DecimalStreamCheckpoint>
-
reset
public void reset()- Specified by:
resetin interfaceValueOutputStream<DecimalStreamCheckpoint>
-