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