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 | Method and Description |
---|---|
void |
complete()
Finally, complete write to set real size to binary.
|
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) |
void |
writeArray(int pos,
BaseArray value,
BaseArraySerializer serializer) |
void |
writeBinary(int pos,
byte[] bytes) |
void |
writeBoolean(int pos,
boolean value) |
void |
writeByte(int pos,
byte value) |
void |
writeDecimal(int pos,
Decimal value,
int precision) |
void |
writeDouble(int pos,
double value) |
void |
writeFloat(int pos,
float value) |
void |
writeGeneric(int pos,
BinaryGeneric value,
BinaryGenericSerializer serializer) |
void |
writeInt(int pos,
int value) |
void |
writeLong(int pos,
long value) |
void |
writeMap(int pos,
BaseMap value,
BaseMapSerializer serializer) |
void |
writeRow(int pos,
BaseRow value,
BaseRowSerializer type) |
void |
writeShort(int pos,
short value) |
void |
writeString(int pos,
BinaryString value) |
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, BinaryString value)
void writeBinary(int pos, byte[] bytes)
void writeDecimal(int pos, Decimal value, int precision)
void writeArray(int pos, BaseArray value, BaseArraySerializer serializer)
void writeMap(int pos, BaseMap value, BaseMapSerializer serializer)
void writeRow(int pos, BaseRow value, BaseRowSerializer type)
void writeGeneric(int pos, BinaryGeneric value, BinaryGenericSerializer serializer)
void complete()
static void write(BinaryWriter writer, int pos, Object o, LogicalType type, TypeSerializer serializer)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.