Class RowWriter<T>
- java.lang.Object
-
- org.apache.flink.table.runtime.arrow.writers.ArrowFieldWriter<T>
-
- org.apache.flink.table.runtime.arrow.writers.RowWriter<T>
-
- Direct Known Subclasses:
RowWriter.RowWriterForArray,RowWriter.RowWriterForRow
@Internal public abstract class RowWriter<T> extends ArrowFieldWriter<T>
ArrowFieldWriterfor Row.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRowWriter.RowWriterForArrayRowWriterforArrayDatainput.static classRowWriter.RowWriterForRowRowWriterforRowDatainput.
-
Field Summary
Fields Modifier and Type Field Description protected ArrowFieldWriter<org.apache.flink.table.data.RowData>[]fieldsWriters
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoWrite(T in, int ordinal)Sets the field value as the field at the specified ordinal of the specified row.voidfinish()Finishes the writing of the current row batch.static RowWriter<org.apache.flink.table.data.ArrayData>forArray(org.apache.arrow.vector.complex.StructVector structVector, ArrowFieldWriter<org.apache.flink.table.data.RowData>[] fieldsWriters)static RowWriter<org.apache.flink.table.data.RowData>forRow(org.apache.arrow.vector.complex.StructVector structVector, ArrowFieldWriter<org.apache.flink.table.data.RowData>[] fieldsWriters)voidreset()Resets the state of the writer to write the next batch of fields.-
Methods inherited from class org.apache.flink.table.runtime.arrow.writers.ArrowFieldWriter
getCount, getValueVector, write
-
-
-
-
Field Detail
-
fieldsWriters
protected final ArrowFieldWriter<org.apache.flink.table.data.RowData>[] fieldsWriters
-
-
Method Detail
-
forRow
public static RowWriter<org.apache.flink.table.data.RowData> forRow(org.apache.arrow.vector.complex.StructVector structVector, ArrowFieldWriter<org.apache.flink.table.data.RowData>[] fieldsWriters)
-
forArray
public static RowWriter<org.apache.flink.table.data.ArrayData> forArray(org.apache.arrow.vector.complex.StructVector structVector, ArrowFieldWriter<org.apache.flink.table.data.RowData>[] fieldsWriters)
-
doWrite
public void doWrite(T in, int ordinal)
Description copied from class:ArrowFieldWriterSets the field value as the field at the specified ordinal of the specified row.- Specified by:
doWritein classArrowFieldWriter<T>
-
finish
public void finish()
Description copied from class:ArrowFieldWriterFinishes the writing of the current row batch.- Overrides:
finishin classArrowFieldWriter<T>
-
reset
public void reset()
Description copied from class:ArrowFieldWriterResets the state of the writer to write the next batch of fields.- Overrides:
resetin classArrowFieldWriter<T>
-
-