Class ArrowFieldWriter<IN>
- java.lang.Object
-
- org.apache.flink.table.runtime.arrow.writers.ArrowFieldWriter<IN>
-
- Type Parameters:
IN
- Type of the row to write.
- Direct Known Subclasses:
ArrayWriter
,BigIntWriter
,BinaryWriter
,BooleanWriter
,DateWriter
,DecimalWriter
,DoubleWriter
,FloatWriter
,IntWriter
,MapWriter
,NullWriter
,RowWriter
,SmallIntWriter
,TimestampWriter
,TimeWriter
,TinyIntWriter
,VarBinaryWriter
,VarCharWriter
@Internal public abstract class ArrowFieldWriter<IN> extends Object
Base class for arrow field writer which is used to convert a field to an Arrow format.
-
-
Constructor Summary
Constructors Constructor Description ArrowFieldWriter(org.apache.arrow.vector.ValueVector valueVector)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
doWrite(IN row, 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.int
getCount()
Returns the current count of elements written.org.apache.arrow.vector.ValueVector
getValueVector()
Returns the underlying container which stores the sequence of values of a column.void
reset()
Resets the state of the writer to write the next batch of fields.void
write(IN row, int ordinal)
Writes the specified ordinal of the specified row.
-
-
-
Method Detail
-
getValueVector
public org.apache.arrow.vector.ValueVector getValueVector()
Returns the underlying container which stores the sequence of values of a column.
-
getCount
public int getCount()
Returns the current count of elements written.
-
doWrite
public abstract void doWrite(IN row, int ordinal)
Sets the field value as the field at the specified ordinal of the specified row.
-
write
public void write(IN row, int ordinal)
Writes the specified ordinal of the specified row.
-
finish
public void finish()
Finishes the writing of the current row batch.
-
reset
public void reset()
Resets the state of the writer to write the next batch of fields.
-
-