public final class BinaryRowWriter extends AbstractBinaryWriter
BinaryRow.cursor, outputView, segment| 构造器和说明 |
|---|
BinaryRowWriter(BinaryRow row) |
BinaryRowWriter(BinaryRow row,
int initialSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, writeTimestamp, 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 在类中 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 在类中 AbstractBinaryWriterpublic void setOffsetAndSize(int pos,
int offset,
long size)
AbstractBinaryWritersetOffsetAndSize 在类中 AbstractBinaryWriterpublic void afterGrow()
AbstractBinaryWriterafterGrow 在类中 AbstractBinaryWriterCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.