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, zeroOutPaddingBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
write
public 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 AbstractBinaryWriter
public 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()
BinaryWriter
public int getFieldOffset(int pos)
AbstractBinaryWriter
getFieldOffset
in class AbstractBinaryWriter
public void setOffsetAndSize(int pos, int offset, long size)
AbstractBinaryWriter
setOffsetAndSize
in class AbstractBinaryWriter
public void afterGrow()
AbstractBinaryWriter
afterGrow
in class AbstractBinaryWriter
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.