@Internal public interface BinaryWriter
reset()
. 2. Write
each field by writeXX or setNullAt. (Same field can not be written repeatedly.) 3. Invoke complete()
.Modifier and Type | Interface and Description |
---|---|
static interface |
BinaryWriter.ValueSetter
Accessor for setting the elements of an array writer during runtime.
|
Modifier and Type | Method and Description |
---|---|
void |
complete()
Finally, complete write to set real size to binary.
|
static BinaryWriter.ValueSetter |
createValueSetter(LogicalType elementType)
Creates an accessor for setting the elements of an array writer during runtime.
|
void |
reset()
Reset writer to prepare next write.
|
void |
setNullAt(int pos)
Set null to this field.
|
static void |
write(BinaryWriter writer,
int pos,
Object o,
LogicalType type,
TypeSerializer<?> serializer)
Deprecated.
Use
createValueSetter(LogicalType) for avoiding logical types during
runtime. |
void |
writeArray(int pos,
ArrayData value,
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 value,
MapDataSerializer serializer) |
void |
writeRawValue(int pos,
RawValueData<?> value,
RawValueDataSerializer<?> serializer) |
void |
writeRow(int pos,
RowData value,
RowDataSerializer serializer) |
void |
writeShort(int pos,
short value) |
void |
writeString(int pos,
StringData value) |
void |
writeTimestamp(int pos,
TimestampData value,
int precision) |
void reset()
void setNullAt(int pos)
void writeBoolean(int pos, boolean value)
void writeByte(int pos, byte value)
void writeShort(int pos, short value)
void writeInt(int pos, int value)
void writeLong(int pos, long value)
void writeFloat(int pos, float value)
void writeDouble(int pos, double value)
void writeString(int pos, StringData value)
void writeBinary(int pos, byte[] bytes)
void writeDecimal(int pos, DecimalData value, int precision)
void writeTimestamp(int pos, TimestampData value, int precision)
void writeArray(int pos, ArrayData value, ArrayDataSerializer serializer)
void writeMap(int pos, MapData value, MapDataSerializer serializer)
void writeRow(int pos, RowData value, RowDataSerializer serializer)
void writeRawValue(int pos, RawValueData<?> value, RawValueDataSerializer<?> serializer)
void complete()
@Deprecated static void write(BinaryWriter writer, int pos, Object o, LogicalType type, TypeSerializer<?> serializer)
createValueSetter(LogicalType)
for avoiding logical types during
runtime.static BinaryWriter.ValueSetter createValueSetter(LogicalType elementType)
elementType
- the element type of the arrayCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.