public final class BinaryRowWriter extends AbstractBinaryWriter
BinaryRow.cursor, outputView, segment| Constructor and Description |
|---|
BinaryRowWriter(BinaryRow row) |
BinaryRowWriter(BinaryRow row,
int initialSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterGrow()
After grow, need point to new memory.
|
void |
complete()
Finally, complete write to set real size to binary.
|
int |
getFieldOffset(int pos)
Get field offset.
|
void |
reset()
First, reset.
|
void |
setNullAt(int pos)
Default not null.
|
void |
setNullBit(int pos) |
void |
setOffsetAndSize(int pos,
int offset,
long size)
Set offset and size to fix len part.
|
void |
writeBoolean(int pos,
boolean value) |
void |
writeByte(int pos,
byte value) |
void |
writeDouble(int pos,
double value) |
void |
writeFloat(int pos,
float value) |
void |
writeHeader(byte header) |
void |
writeInt(int pos,
int value) |
void |
writeLong(int pos,
long value) |
void |
writeShort(int pos,
short value) |
ensureCapacity, roundNumberOfBytesToNearestWord, writeArray, writeBinary, writeDecimal, writeGeneric, writeMap, writeRow, writeString, zeroOutPaddingBytesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritepublic BinaryRowWriter(BinaryRow row)
public BinaryRowWriter(BinaryRow row, int initialSize)
public void reset()
public void setNullAt(int pos)
public void setNullBit(int pos)
setNullBit in class AbstractBinaryWriterpublic void writeHeader(byte header)
public void writeBoolean(int pos,
boolean value)
public void writeByte(int pos,
byte value)
public void writeShort(int pos,
short value)
public void writeInt(int pos,
int value)
public void writeLong(int pos,
long value)
public void writeFloat(int pos,
float value)
public void writeDouble(int pos,
double value)
public void complete()
BinaryWriterpublic int getFieldOffset(int pos)
AbstractBinaryWritergetFieldOffset in class AbstractBinaryWriterpublic void setOffsetAndSize(int pos,
int offset,
long size)
AbstractBinaryWritersetOffsetAndSize in class AbstractBinaryWriterpublic void afterGrow()
AbstractBinaryWriterafterGrow in class AbstractBinaryWriterCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.