public class PlainValuesWriter extends ValuesWriter
Constructor and Description |
---|
PlainValuesWriter(int initialSize) |
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 |
writeByte(int value) |
void |
writeBytes(Binary v) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInteger(int v) |
void |
writeLong(long v) |
createDictionaryPage, resetDictionary, writeBoolean
public static final Charset CHARSET
public final void writeBytes(Binary v)
writeBytes
in class ValuesWriter
public final void writeInteger(int v)
writeInteger
in class ValuesWriter
public final void writeLong(long v)
writeLong
in class ValuesWriter
public final void writeFloat(float v)
writeFloat
in class ValuesWriter
public final void writeDouble(double v)
writeDouble
in class ValuesWriter
public void writeByte(int value)
writeByte
in class ValuesWriter
value
- the value to encodepublic long getBufferedSize()
ValuesWriter
getBufferedSize
in class ValuesWriter
public BytesInput getBytes()
getBytes
in class ValuesWriter
public void reset()
ValuesWriter
reset
in class ValuesWriter
public long getAllocatedSize()
getAllocatedSize
in class ValuesWriter
public Encoding getEncoding()
ValuesWriter
getEncoding
in class ValuesWriter
public String memUsageString(String prefix)
memUsageString
in class ValuesWriter
Copyright © 2015. All rights reserved.