@Internal public final class BinaryRowWriter extends Object
BinaryRowData
.BinaryWriter.ValueSetter
Modifier and Type | Field and Description |
---|---|
protected int |
cursor |
protected DataOutputViewStreamWrapper |
outputView |
protected MemorySegment |
segment |
Constructor and Description |
---|
BinaryRowWriter(BinaryRowData row) |
BinaryRowWriter(BinaryRowData 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.
|
protected void |
ensureCapacity(int neededSize) |
int |
getFieldOffset(int pos)
Get field offset.
|
MemorySegment |
getSegments() |
void |
reset()
First, reset.
|
protected static int |
roundNumberOfBytesToNearestWord(int numBytes) |
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 |
writeArray(int pos,
ArrayData input,
ArrayDataSerializer serializer) |
void |
writeBinary(int pos,
byte[] bytes) |
void |
writeBoolean(int pos,
boolean value) |
void |
writeByte(int pos,
byte value) |
void |
writeDecimal(int pos,
DecimalData value,
int precision) |
void |
writeDouble(int pos,
double value) |
void |
writeFloat(int pos,
float value) |
void |
writeInt(int pos,
int value) |
void |
writeLong(int pos,
long value) |
void |
writeMap(int pos,
MapData input,
MapDataSerializer serializer) |
void |
writeRawValue(int pos,
RawValueData<?> input,
RawValueDataSerializer<?> serializer) |
void |
writeRow(int pos,
RowData input,
RowDataSerializer serializer) |
void |
writeRowKind(RowKind kind) |
void |
writeShort(int pos,
short value) |
void |
writeString(int pos,
StringData input)
|
void |
writeTimestamp(int pos,
TimestampData value,
int precision) |
protected void |
zeroOutPaddingBytes(int numBytes) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createValueSetter, write
protected MemorySegment segment
protected int cursor
protected DataOutputViewStreamWrapper outputView
public BinaryRowWriter(BinaryRowData row)
public BinaryRowWriter(BinaryRowData row, int initialSize)
public void reset()
public void setNullAt(int pos)
public void setNullBit(int pos)
public void writeRowKind(RowKind kind)
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)
public void setOffsetAndSize(int pos, int offset, long size)
public void afterGrow()
public void writeString(int pos, StringData input)
writeString
in interface BinaryWriter
public void writeArray(int pos, ArrayData input, ArrayDataSerializer serializer)
writeArray
in interface BinaryWriter
public void writeMap(int pos, MapData input, MapDataSerializer serializer)
writeMap
in interface BinaryWriter
public void writeRawValue(int pos, RawValueData<?> input, RawValueDataSerializer<?> serializer)
writeRawValue
in interface BinaryWriter
public void writeRow(int pos, RowData input, RowDataSerializer serializer)
writeRow
in interface BinaryWriter
public void writeBinary(int pos, byte[] bytes)
writeBinary
in interface BinaryWriter
public void writeDecimal(int pos, DecimalData value, int precision)
writeDecimal
in interface BinaryWriter
public void writeTimestamp(int pos, TimestampData value, int precision)
writeTimestamp
in interface BinaryWriter
protected void zeroOutPaddingBytes(int numBytes)
protected void ensureCapacity(int neededSize)
protected static int roundNumberOfBytesToNearestWord(int numBytes)
@Internal public MemorySegment getSegments()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.