Class ArrowConversion
java.lang.Object
org.apache.beam.sdk.extensions.arrow.ArrowConversion
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Converts Arrow schema to Beam row schema.static class
-
Method Summary
Modifier and TypeMethodDescriptionstatic Schema
arrowSchemaFromInput
(InputStream input) rowsFromRecordBatch
(Schema schema, VectorSchemaRoot vectorSchemaRoot) Returns aArrowConversion.RecordBatchRowIterator
backed 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.RecordBatchRowIterator
backed 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
Row
s is accessed. -
rowsFromSerializedRecordBatch
public static ArrowConversion.RecordBatchRowIterator rowsFromSerializedRecordBatch(Schema arrowSchema, InputStream inputStream, RootAllocator allocator) throws IOException - Throws:
IOException
-
arrowSchemaFromInput
- Throws:
IOException
-