T - type of the input elements.@Internal public abstract class ArrowSerializer<T> 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() |
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 |
write(T 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 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)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.