@Internal public abstract class RowWriter<T> extends ArrowFieldWriter<T>
ArrowFieldWriter
for Row.Modifier and Type | Class and Description |
---|---|
static class |
RowWriter.RowWriterForArray
|
static class |
RowWriter.RowWriterForRow
|
Modifier and Type | Field and Description |
---|---|
protected ArrowFieldWriter<RowData>[] |
fieldsWriters |
Modifier and Type | Method and 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<ArrayData> |
forArray(org.apache.arrow.vector.complex.StructVector structVector,
ArrowFieldWriter<RowData>[] fieldsWriters) |
static RowWriter<RowData> |
forRow(org.apache.arrow.vector.complex.StructVector structVector,
ArrowFieldWriter<RowData>[] fieldsWriters) |
void |
reset()
Resets the state of the writer to write the next batch of fields.
|
getCount, getValueVector, write
protected final ArrowFieldWriter<RowData>[] fieldsWriters
public static RowWriter<RowData> forRow(org.apache.arrow.vector.complex.StructVector structVector, ArrowFieldWriter<RowData>[] fieldsWriters)
public static RowWriter<ArrayData> forArray(org.apache.arrow.vector.complex.StructVector structVector, ArrowFieldWriter<RowData>[] fieldsWriters)
public void doWrite(T in, int ordinal)
ArrowFieldWriter
doWrite
in class ArrowFieldWriter<T>
public void finish()
ArrowFieldWriter
finish
in class ArrowFieldWriter<T>
public void reset()
ArrowFieldWriter
reset
in class ArrowFieldWriter<T>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.