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
ArrowFieldWriter for Row.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ArrowFieldWriter<org.apache.flink.table.data.RowData>[] -
Method Summary
Modifier and TypeMethodDescriptionvoidSets 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 Details
-
fieldsWriters
-
-
Method Details
-
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
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>
-