public class DeltaByteArrayWriter extends ValuesWriter
delta-length-byte-array : prefix-length* suffixes*
| Constructor and Description |
|---|
DeltaByteArrayWriter(int initialCapacity,
int pageSize) |
| Modifier and Type | Method and Description |
|---|---|
long |
getAllocatedSize()
( >
#getBufferedMemorySize ) |
long |
getBufferedSize()
used to decide if we want to work to the next page
|
BytesInput |
getBytes() |
Encoding |
getEncoding()
called after getBytes() and before reset()
|
String |
memUsageString(String prefix) |
void |
reset()
called after getBytes() to reset the current buffer and start writing the next page
|
void |
writeBytes(Binary v) |
createDictionaryPage, resetDictionary, writeBoolean, writeByte, writeDouble, writeFloat, writeInteger, writeLongpublic DeltaByteArrayWriter(int initialCapacity,
int pageSize)
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 long getAllocatedSize()
ValuesWriter#getBufferedMemorySize )getAllocatedSize in class ValuesWriterpublic String memUsageString(String prefix)
memUsageString in class ValuesWriterpublic void writeBytes(Binary v)
writeBytes in class ValuesWriterCopyright © 2015 The Apache Software Foundation. All rights reserved.