public class DevNullValuesWriter extends ValuesWriter
| Constructor and Description |
|---|
DevNullValuesWriter() |
| 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 |
writeBoolean(boolean v) |
void |
writeByte(int value) |
void |
writeBytes(Binary v) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInteger(int v) |
void |
writeLong(long v) |
close, resetDictionary, toDictPageAndClosepublic long getBufferedSize()
ValuesWritergetBufferedSize in class ValuesWriterpublic void reset()
ValuesWriterreset in class ValuesWriterpublic void writeInteger(int v)
writeInteger in class ValuesWriterv - the value to encodepublic void writeByte(int value)
writeByte in class ValuesWritervalue - the value to encodepublic void writeBoolean(boolean v)
writeBoolean in class ValuesWriterv - the value to encodepublic void writeBytes(Binary v)
writeBytes in class ValuesWriterv - the value to encodepublic void writeLong(long v)
writeLong in class ValuesWriterv - the value to encodepublic void writeDouble(double v)
writeDouble in class ValuesWriterv - the value to encodepublic void writeFloat(float v)
writeFloat in class ValuesWriterv - the value to encodepublic BytesInput getBytes()
getBytes in class ValuesWriterpublic long getAllocatedSize()
ValuesWritergetAllocatedSize in class ValuesWriterpublic Encoding getEncoding()
ValuesWritergetEncoding in class ValuesWriterpublic String memUsageString(String prefix)
memUsageString in class ValuesWriterCopyright © 2023 The Apache Software Foundation. All rights reserved.