@Internal public abstract class ArrayWriter<T> extends ArrowFieldWriter<T>
ArrowFieldWriter
for Array.Modifier and Type | Class and Description |
---|---|
static class |
ArrayWriter.ArrayWriterForArray
ArrayWriter for ArrayData input. |
static class |
ArrayWriter.ArrayWriterForRow
ArrayWriter for RowData input. |
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 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.
|
getCount, getValueVector, write
public static ArrayWriter<RowData> forRow(org.apache.arrow.vector.complex.ListVector listVector, ArrowFieldWriter<ArrayData> elementWriter)
public static ArrayWriter<ArrayData> forArray(org.apache.arrow.vector.complex.ListVector listVector, ArrowFieldWriter<ArrayData> elementWriter)
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.