T
- type of the input elements.@Internal public abstract class ArrowSerializer<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected RowType |
inputType
The input RowType.
|
protected RowType |
outputType
The output RowType.
|
Constructor and Description |
---|
ArrowSerializer(RowType inputType,
RowType outputType) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
abstract ArrowReader<T> |
createArrowReader(org.apache.arrow.vector.VectorSchemaRoot root) |
abstract ArrowWriter<T> |
createArrowWriter()
Creates an
ArrowWriter . |
void |
finishCurrentBatch()
Forces to finish the processing of the current batch of elements.
|
int |
load() |
void |
open(InputStream bais,
OutputStream baos) |
T |
read(int i) |
void |
resetReader() |
void |
resetWriter() |
void |
write(T element) |
protected final RowType inputType
protected final RowType outputType
public void open(InputStream bais, OutputStream baos) throws Exception
Exception
public int load() throws IOException
IOException
public T read(int i)
public void write(T element)
public abstract ArrowWriter<T> createArrowWriter()
ArrowWriter
.public abstract ArrowReader<T> createArrowReader(org.apache.arrow.vector.VectorSchemaRoot root)
public void finishCurrentBatch() throws Exception
Exception
public void resetReader() throws IOException
IOException
public void resetWriter() throws IOException
IOException
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.