@Internal public final class ArrowUtils extends Object
| Constructor and Description |
|---|
ArrowUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkArrowUsable() |
static org.apache.flink.table.runtime.arrow.ArrowUtils.CustomIterator<byte[]> |
collectAsPandasDataFrame(org.apache.flink.table.api.Table table,
int maxArrowBatchSize)
Convert Flink table to Pandas DataFrame.
|
static AbstractArrowTableSource |
createArrowTableSource(org.apache.flink.table.types.DataType dataType,
String fileName) |
static org.apache.flink.table.data.vector.ColumnVector |
createColumnVector(org.apache.arrow.vector.ValueVector vector,
org.apache.flink.table.types.logical.LogicalType fieldType) |
static ArrowFieldReader |
createRowArrowFieldReader(org.apache.arrow.vector.ValueVector vector,
org.apache.flink.table.types.logical.LogicalType fieldType) |
static RowArrowReader |
createRowArrowReader(org.apache.arrow.vector.VectorSchemaRoot root,
org.apache.flink.table.types.logical.RowType rowType)
Creates an
ArrowReader for the specified VectorSchemaRoot. |
static ArrowWriter<org.apache.flink.types.Row> |
createRowArrowWriter(org.apache.arrow.vector.VectorSchemaRoot root,
org.apache.flink.table.types.logical.RowType rowType)
Creates an
ArrowWriter for the specified VectorSchemaRoot. |
static RowDataArrowReader |
createRowDataArrowReader(org.apache.arrow.vector.VectorSchemaRoot root,
org.apache.flink.table.types.logical.RowType rowType)
Creates an
ArrowReader for blink planner for the specified VectorSchemaRoot. |
static ArrowWriter<org.apache.flink.table.data.RowData> |
createRowDataArrowWriter(org.apache.arrow.vector.VectorSchemaRoot root,
org.apache.flink.table.types.logical.RowType rowType)
Creates an
ArrowWriter for blink planner for the specified VectorSchemaRoot. |
static org.apache.arrow.memory.RootAllocator |
getRootAllocator() |
static byte[][] |
readArrowBatches(ReadableByteChannel channel) |
static org.apache.arrow.vector.types.pojo.Schema |
toArrowSchema(org.apache.flink.table.types.logical.RowType rowType)
Returns the Arrow schema of the specified type.
|
public static org.apache.arrow.memory.RootAllocator getRootAllocator()
public static void checkArrowUsable()
public static org.apache.arrow.vector.types.pojo.Schema toArrowSchema(org.apache.flink.table.types.logical.RowType rowType)
public static ArrowWriter<org.apache.flink.types.Row> createRowArrowWriter(org.apache.arrow.vector.VectorSchemaRoot root, org.apache.flink.table.types.logical.RowType rowType)
ArrowWriter for the specified VectorSchemaRoot.public static ArrowWriter<org.apache.flink.table.data.RowData> createRowDataArrowWriter(org.apache.arrow.vector.VectorSchemaRoot root, org.apache.flink.table.types.logical.RowType rowType)
ArrowWriter for blink planner for the specified VectorSchemaRoot.public static RowArrowReader createRowArrowReader(org.apache.arrow.vector.VectorSchemaRoot root, org.apache.flink.table.types.logical.RowType rowType)
ArrowReader for the specified VectorSchemaRoot.public static ArrowFieldReader createRowArrowFieldReader(org.apache.arrow.vector.ValueVector vector, org.apache.flink.table.types.logical.LogicalType fieldType)
public static RowDataArrowReader createRowDataArrowReader(org.apache.arrow.vector.VectorSchemaRoot root, org.apache.flink.table.types.logical.RowType rowType)
ArrowReader for blink planner for the specified VectorSchemaRoot.public static org.apache.flink.table.data.vector.ColumnVector createColumnVector(org.apache.arrow.vector.ValueVector vector,
org.apache.flink.table.types.logical.LogicalType fieldType)
public static AbstractArrowTableSource createArrowTableSource(org.apache.flink.table.types.DataType dataType, String fileName) throws IOException
IOExceptionpublic static byte[][] readArrowBatches(ReadableByteChannel channel) throws IOException
IOExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.