public class BinaryRowWriter extends BinaryWriter
BinaryRow.
Must call reset() before use this writer to write a nested row.
Must call reset(buffer)/reset(buffer, offset) before use this writer to write
a new row.
buffer, children, startIndex| Constructor and Description |
|---|
BinaryRowWriter(org.apache.arrow.vector.types.pojo.Schema schema) |
BinaryRowWriter(org.apache.arrow.vector.types.pojo.Schema schema,
BinaryWriter writer) |
| Modifier and Type | Method and Description |
|---|---|
BinaryRow |
copyToRow() |
int |
getOffset(int ordinal) |
BinaryRow |
getRow() |
org.apache.arrow.vector.types.pojo.Schema |
getSchema() |
void |
reset()
Call
reset() before write nested row to buffer |
void |
write(int ordinal,
BigDecimal value) |
void |
write(int ordinal,
boolean value) |
void |
write(int ordinal,
byte value) |
void |
write(int ordinal,
float value) |
void |
write(int ordinal,
int value) |
void |
write(int ordinal,
short value) |
copyTo, getBuffer, getStartIndex, grow, increaseWriterIndex, increaseWriterIndexToAligned, isNullAt, roundNumberOfBytesToNearestWord, setBuffer, setNotNullAt, setNullAt, setOffsetAndSize, setOffsetAndSize, size, write, write, write, write, write, write, write, writeAlignedBytes, writeDecimal, writeDirectly, writeDirectly, writerIndex, writeUnaligned, writeUnaligned, zeroOutPaddingBytespublic BinaryRowWriter(org.apache.arrow.vector.types.pojo.Schema schema)
public BinaryRowWriter(org.apache.arrow.vector.types.pojo.Schema schema,
BinaryWriter writer)
public org.apache.arrow.vector.types.pojo.Schema getSchema()
public void reset()
reset() before write nested row to buffer
reset BinaryRowWriter(schema, writer) increase writerIndex, which increase writer's
writerIndex, so we need to record writer's writerIndex before call reset, so we can call
writer's setOffsetAndSize(int ordinal, int absoluteOffset, int size). Reset will
change writerIndex, please use it very carefully
public int getOffset(int ordinal)
getOffset in class BinaryWriterpublic void write(int ordinal,
byte value)
write in class BinaryWriterpublic void write(int ordinal,
boolean value)
write in class BinaryWriterpublic void write(int ordinal,
short value)
write in class BinaryWriterpublic void write(int ordinal,
int value)
write in class BinaryWriterpublic void write(int ordinal,
float value)
write in class BinaryWriterpublic void write(int ordinal,
BigDecimal value)
write in class BinaryWriterpublic BinaryRow getRow()
public BinaryRow copyToRow()
Copyright © 2023-2024, The Apache Software Foundation. Apache Fury™, Fury™, and Apache are either registered trademarks or trademarks of the Apache Software Foundation.