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>
ArrowFieldWriter
for Array.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ArrayWriter.ArrayWriterForArray
ArrayWriter
forArrayData
input.static class
ArrayWriter.ArrayWriterForRow
ArrayWriter
forRowData
input.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doWrite(T in, int ordinal)
Sets the field value as the field at the specified ordinal of the specified row.void
finish()
Finishes the writing of the current row batch.static ArrayWriter<ArrayData>
forArray(org.apache.arrow.vector.complex.ListVector listVector, ArrowFieldWriter<ArrayData> elementWriter)
static ArrayWriter<RowData>
forRow(org.apache.arrow.vector.complex.ListVector listVector, ArrowFieldWriter<ArrayData> elementWriter)
void
reset()
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<RowData> forRow(org.apache.arrow.vector.complex.ListVector listVector, ArrowFieldWriter<ArrayData> elementWriter)
-
forArray
public static ArrayWriter<ArrayData> forArray(org.apache.arrow.vector.complex.ListVector listVector, ArrowFieldWriter<ArrayData> elementWriter)
-
doWrite
public void doWrite(T in, int ordinal)
Description copied from class:ArrowFieldWriter
Sets the field value as the field at the specified ordinal of the specified row.- Specified by:
doWrite
in classArrowFieldWriter<T>
-
finish
public void finish()
Description copied from class:ArrowFieldWriter
Finishes the writing of the current row batch.- Overrides:
finish
in classArrowFieldWriter<T>
-
reset
public void reset()
Description copied from class:ArrowFieldWriter
Resets the state of the writer to write the next batch of fields.- Overrides:
reset
in classArrowFieldWriter<T>
-
-