@Internal public final class ArrowSerializer extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.apache.flink.table.types.logical.RowType |
inputType
The input RowType.
|
protected org.apache.flink.table.types.logical.RowType |
outputType
The output RowType.
|
| 构造器和说明 |
|---|
ArrowSerializer(org.apache.flink.table.types.logical.RowType inputType,
org.apache.flink.table.types.logical.RowType outputType) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
ArrowReader |
createArrowReader(org.apache.arrow.vector.VectorSchemaRoot root) |
ArrowWriter<org.apache.flink.table.data.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) |
org.apache.flink.table.data.RowData |
read(int i) |
void |
resetReader() |
void |
resetWriter() |
void |
write(org.apache.flink.table.data.RowData element) |
protected final org.apache.flink.table.types.logical.RowType inputType
protected final org.apache.flink.table.types.logical.RowType outputType
public ArrowSerializer(org.apache.flink.table.types.logical.RowType inputType,
org.apache.flink.table.types.logical.RowType outputType)
public void open(InputStream bais, OutputStream baos) throws Exception
Exceptionpublic int load()
throws IOException
IOExceptionpublic org.apache.flink.table.data.RowData read(int i)
public void write(org.apache.flink.table.data.RowData element)
public ArrowWriter<org.apache.flink.table.data.RowData> createArrowWriter()
ArrowWriter.public ArrowReader createArrowReader(org.apache.arrow.vector.VectorSchemaRoot root)
public void finishCurrentBatch()
throws Exception
Exceptionpublic void resetReader()
throws IOException
IOExceptionpublic void resetWriter()
throws IOException
IOExceptionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.