Class ArrowConversion
java.lang.Object
org.apache.beam.sdk.extensions.arrow.ArrowConversion
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConverts Arrow schema to Beam row schema.static class -
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaarrowSchemaFromInput(InputStream input) rowsFromRecordBatch(Schema schema, VectorSchemaRoot vectorSchemaRoot) Returns aArrowConversion.RecordBatchRowIteratorbacked by the Arrow record batch stored invectorSchemaRoot.rowsFromSerializedRecordBatch(Schema arrowSchema, InputStream inputStream, RootAllocator allocator)
-
Method Details
-
rowsFromRecordBatch
public static ArrowConversion.RecordBatchRowIterator rowsFromRecordBatch(Schema schema, VectorSchemaRoot vectorSchemaRoot) Returns aArrowConversion.RecordBatchRowIteratorbacked by the Arrow record batch stored invectorSchemaRoot.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. -
rowsFromSerializedRecordBatch
public static ArrowConversion.RecordBatchRowIterator rowsFromSerializedRecordBatch(Schema arrowSchema, InputStream inputStream, RootAllocator allocator) throws IOException - Throws:
IOException
-
arrowSchemaFromInput
- Throws:
IOException
-