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() |
ArrowReader |
createArrowReader(org.apache.arrow.vector.VectorSchemaRoot root) |
ArrowWriter<RowData> |
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) |
RowData |
read(int i) |
void |
resetReader() |
void |
resetWriter() |
void |
write(RowData 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 RowData read(int i)
public void write(RowData element)
public ArrowWriter<RowData> createArrowWriter()
ArrowWriter
.public ArrowReader 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–2024 The Apache Software Foundation. All rights reserved.