Constructor and Description |
---|
ArrowUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
checkArrowUsable() |
static org.apache.flink.table.runtime.arrow.ArrowUtils.CustomIterator<byte[]> |
collectAsPandasDataFrame(Table table,
int maxArrowBatchSize)
Convert Flink table to Pandas DataFrame.
|
static ArrowReader |
createArrowReader(org.apache.arrow.vector.VectorSchemaRoot root,
RowType rowType)
Creates an
ArrowReader for the specified VectorSchemaRoot . |
static ArrowTableSource |
createArrowTableSource(DataType dataType,
String fileName) |
static ColumnVector |
createColumnVector(org.apache.arrow.vector.ValueVector vector,
LogicalType fieldType) |
static ArrowWriter<RowData> |
createRowDataArrowWriter(org.apache.arrow.vector.VectorSchemaRoot root,
RowType rowType)
Creates an
ArrowWriter 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(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(RowType rowType)
public static ArrowWriter<RowData> createRowDataArrowWriter(org.apache.arrow.vector.VectorSchemaRoot root, RowType rowType)
ArrowWriter
for the specified VectorSchemaRoot
.public static ArrowReader createArrowReader(org.apache.arrow.vector.VectorSchemaRoot root, RowType rowType)
ArrowReader
for the specified VectorSchemaRoot
.public static ColumnVector createColumnVector(org.apache.arrow.vector.ValueVector vector, LogicalType fieldType)
public static ArrowTableSource createArrowTableSource(DataType dataType, String fileName) throws IOException
IOException
public static byte[][] readArrowBatches(ReadableByteChannel channel) throws IOException
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.