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>
ArrowFieldWriter
for Row.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RowWriter.RowWriterForArray
RowWriter
forArrayData
input.static class
RowWriter.RowWriterForRow
RowWriter
forRowData
input.
-
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 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 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)
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
-
-
-
-
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: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>
-
-