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
Base class for arrow field writer which is used to convert a field to an Arrow format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidSets the field value as the field at the specified ordinal of the specified row.voidfinish()Finishes the writing of the current row batch.intgetCount()Returns the current count of elements written.org.apache.arrow.vector.ValueVectorReturns the underlying container which stores the sequence of values of a column.voidreset()Resets the state of the writer to write the next batch of fields.voidWrites the specified ordinal of the specified row.
-
Constructor Details
-
ArrowFieldWriter
public ArrowFieldWriter(org.apache.arrow.vector.ValueVector valueVector)
-
-
Method Details
-
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
Sets the field value as the field at the specified ordinal of the specified row. -
write
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.
-