public abstract class ArrowFieldWriter extends Object
FieldVector.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.arrow.vector.FieldVector |
fieldVector |
| Constructor and Description |
|---|
ArrowFieldWriter(org.apache.arrow.vector.FieldVector fieldVector) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doWrite(ColumnVector columnVector,
int[] pickedInColumn,
int startIndex,
int batchRows) |
protected abstract void |
doWrite(int rowIndex,
DataGetters getters,
int pos) |
protected int |
getRowNumber(int startIndex,
int currentIndex,
int[] pickedInColumn) |
void |
reset()
Reset the state of the writer to write the next batch of fields.
|
void |
write(ColumnVector columnVector,
int[] pickedInColumn,
int startIndex,
int batchRows)
Write all data of a
ColumnVector. |
void |
write(int rowIndex,
DataGetters getters,
int pos)
Get the value from the row at the given position and write to specified row index.
|
public ArrowFieldWriter(org.apache.arrow.vector.FieldVector fieldVector)
public void reset()
public void write(ColumnVector columnVector, @Nullable int[] pickedInColumn, int startIndex, int batchRows)
ColumnVector.columnVector - Which holds the paimon data.pickedInColumn - Which rows is picked to write. Pick all if null. This is used to adapt
deletion vector.startIndex - From where to start writing.batchRows - How many rows to write.protected abstract void doWrite(ColumnVector columnVector, @Nullable int[] pickedInColumn, int startIndex, int batchRows)
public void write(int rowIndex,
DataGetters getters,
int pos)
protected abstract void doWrite(int rowIndex,
DataGetters getters,
int pos)
protected int getRowNumber(int startIndex,
int currentIndex,
@Nullable
int[] pickedInColumn)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.