public class ArrowConversion
extends java.lang.Object
Iterables of Beam Row instances backed by Arrow record
batches.| Modifier and Type | Class and Description |
|---|---|
static class |
ArrowConversion.ArrowSchemaTranslator
Converts Arrow schema to Beam row schema.
|
static class |
ArrowConversion.RecordBatchRowIterator |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.arrow.vector.types.pojo.Schema |
arrowSchemaFromInput(java.io.InputStream input) |
static ArrowConversion.RecordBatchRowIterator |
rowsFromRecordBatch(org.apache.beam.sdk.schemas.Schema schema,
org.apache.arrow.vector.VectorSchemaRoot vectorSchemaRoot)
Returns a
ArrowConversion.RecordBatchRowIterator backed by the Arrow record batch stored in vectorSchemaRoot. |
static ArrowConversion.RecordBatchRowIterator |
rowsFromSerializedRecordBatch(org.apache.arrow.vector.types.pojo.Schema arrowSchema,
java.io.InputStream inputStream,
org.apache.arrow.memory.RootAllocator allocator) |
public static ArrowConversion.RecordBatchRowIterator rowsFromRecordBatch(org.apache.beam.sdk.schemas.Schema schema, org.apache.arrow.vector.VectorSchemaRoot vectorSchemaRoot)
ArrowConversion.RecordBatchRowIterator backed by the Arrow record batch stored in vectorSchemaRoot.
Note this is a lazy interface. The data in the underlying Arrow buffer is not read until a
field of one of the returned Rows is accessed.
public static ArrowConversion.RecordBatchRowIterator rowsFromSerializedRecordBatch(org.apache.arrow.vector.types.pojo.Schema arrowSchema, java.io.InputStream inputStream, org.apache.arrow.memory.RootAllocator allocator) throws java.io.IOException
java.io.IOExceptionpublic static org.apache.arrow.vector.types.pojo.Schema arrowSchemaFromInput(java.io.InputStream input)
throws java.io.IOException
java.io.IOException