public class DecimalOutputStream extends Object implements ValueOutputStream<DecimalStreamCheckpoint>
Constructor and Description |
---|
DecimalOutputStream(CompressionKind compression,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getBufferedBytes()
This method returns the size of the flushed data plus any unflushed data.
|
List<DecimalStreamCheckpoint> |
getCheckpoints() |
long |
getRetainedBytes() |
StreamDataOutput |
getStreamDataOutput(int column) |
void |
recordCheckpoint() |
void |
reset() |
void |
writeUnscaledValue(long value) |
void |
writeUnscaledValue(io.airlift.slice.Slice slice) |
public DecimalOutputStream(CompressionKind compression, int bufferSize)
public void writeUnscaledValue(io.airlift.slice.Slice slice)
public void writeUnscaledValue(long value)
public void recordCheckpoint()
recordCheckpoint
in interface ValueOutputStream<DecimalStreamCheckpoint>
public void close()
close
in interface ValueOutputStream<DecimalStreamCheckpoint>
public List<DecimalStreamCheckpoint> getCheckpoints()
getCheckpoints
in interface ValueOutputStream<DecimalStreamCheckpoint>
public StreamDataOutput getStreamDataOutput(int column)
getStreamDataOutput
in interface ValueOutputStream<DecimalStreamCheckpoint>
public long getBufferedBytes()
ValueOutputStream
getBufferedBytes
in interface ValueOutputStream<DecimalStreamCheckpoint>
public long getRetainedBytes()
getRetainedBytes
in interface ValueOutputStream<DecimalStreamCheckpoint>
public void reset()
reset
in interface ValueOutputStream<DecimalStreamCheckpoint>
Copyright © 2012–2020. All rights reserved.