public abstract class ByteStreamSplitValuesWriter extends ValuesWriter
| Modifier and Type | Class and Description |
|---|---|
static class |
ByteStreamSplitValuesWriter.DoubleByteStreamSplitValuesWriter |
static class |
ByteStreamSplitValuesWriter.FixedLenByteArrayByteStreamSplitValuesWriter |
static class |
ByteStreamSplitValuesWriter.FloatByteStreamSplitValuesWriter |
static class |
ByteStreamSplitValuesWriter.IntegerByteStreamSplitValuesWriter |
static class |
ByteStreamSplitValuesWriter.LongByteStreamSplitValuesWriter |
| Modifier and Type | Field and Description |
|---|---|
protected int |
elementSizeInBytes |
protected int |
numStreams |
| Constructor and Description |
|---|
ByteStreamSplitValuesWriter(int elementSizeInBytes,
int initialCapacity,
int pageSize,
ByteBufferAllocator allocator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called to close the values writer.
|
long |
getAllocatedSize()
|
long |
getBufferedSize()
used to decide if we want to work to the next page
|
BytesInput |
getBytes() |
Encoding |
getEncoding()
called after getBytes() and before reset()
|
void |
reset()
called after getBytes() to reset the current buffer and start writing the next page
|
protected void |
scatterBytes(byte[] bytes) |
memUsageString, resetDictionary, toDictPageAndClose, writeBoolean, writeByte, writeBytes, writeDouble, writeFloat, writeInteger, writeLongprotected final int numStreams
protected final int elementSizeInBytes
public ByteStreamSplitValuesWriter(int elementSizeInBytes,
int initialCapacity,
int pageSize,
ByteBufferAllocator allocator)
public long getBufferedSize()
ValuesWritergetBufferedSize in class ValuesWriterpublic BytesInput getBytes()
getBytes in class ValuesWriterpublic Encoding getEncoding()
ValuesWritergetEncoding in class ValuesWriterpublic void reset()
ValuesWriterreset in class ValuesWriterpublic void close()
ValuesWriterclose in interface AutoCloseableclose in class ValuesWriterprotected void scatterBytes(byte[] bytes)
public long getAllocatedSize()
ValuesWritergetAllocatedSize in class ValuesWriterCopyright © 2024 The Apache Software Foundation. All rights reserved.