Class ArrayWriter<T>
- java.lang.Object
-
- org.apache.flink.table.runtime.arrow.writers.ArrowFieldWriter<T>
-
- org.apache.flink.table.runtime.arrow.writers.ArrayWriter<T>
-
- Direct Known Subclasses:
ArrayWriter.ArrayWriterForArray,ArrayWriter.ArrayWriterForRow
@Internal public abstract class ArrayWriter<T> extends ArrowFieldWriter<T>
ArrowFieldWriterfor Array.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classArrayWriter.ArrayWriterForArrayArrayWriterforArrayDatainput.static classArrayWriter.ArrayWriterForRowArrayWriterforRowDatainput.
-
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 ArrayWriter<org.apache.flink.table.data.ArrayData>forArray(org.apache.arrow.vector.complex.ListVector listVector, ArrowFieldWriter<org.apache.flink.table.data.ArrayData> elementWriter)static ArrayWriter<org.apache.flink.table.data.RowData>forRow(org.apache.arrow.vector.complex.ListVector listVector, ArrowFieldWriter<org.apache.flink.table.data.ArrayData> elementWriter)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
-
-
-
-
Method Detail
-
forRow
public static ArrayWriter<org.apache.flink.table.data.RowData> forRow(org.apache.arrow.vector.complex.ListVector listVector, ArrowFieldWriter<org.apache.flink.table.data.ArrayData> elementWriter)
-
forArray
public static ArrayWriter<org.apache.flink.table.data.ArrayData> forArray(org.apache.arrow.vector.complex.ListVector listVector, ArrowFieldWriter<org.apache.flink.table.data.ArrayData> elementWriter)
-
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>
-
-