public class BitPackingValuesWriter extends ValuesWriter
Constructor and Description |
---|
BitPackingValuesWriter(int bound,
int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
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()
|
String |
memUsageString(String prefix) |
void |
reset()
called after getBytes() to reset the current buffer and start writing the next page
|
void |
writeInteger(int v) |
createDictionaryPage, resetDictionary, writeBoolean, writeByte, writeBytes, writeDouble, writeFloat, writeLong
public BitPackingValuesWriter(int bound, int initialCapacity)
bound
- the maximum value stored by this columnpublic void writeInteger(int v)
writeInteger
in class ValuesWriter
ValuesWriter.writeInteger(int)
public long getBufferedSize()
getBufferedSize
in class ValuesWriter
ValuesWriter.getBufferedSize()
public BytesInput getBytes()
getBytes
in class ValuesWriter
ValuesWriter.getBytes()
public void reset()
reset
in class ValuesWriter
ValuesWriter.reset()
public long getAllocatedSize()
getAllocatedSize
in class ValuesWriter
ValuesWriter.getAllocatedSize()
public String memUsageString(String prefix)
memUsageString
in class ValuesWriter
public Encoding getEncoding()
ValuesWriter
getEncoding
in class ValuesWriter
Copyright © 2015. All rights reserved.