public class ArrowConversion
extends java.lang.Object
Iterable
s 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 Schema |
arrowSchemaFromInput(java.io.InputStream input) |
static ArrowConversion.RecordBatchRowIterator |
rowsFromRecordBatch(Schema schema,
VectorSchemaRoot vectorSchemaRoot)
Returns a
ArrowConversion.RecordBatchRowIterator backed by the Arrow record batch stored in vectorSchemaRoot . |
static ArrowConversion.RecordBatchRowIterator |
rowsFromSerializedRecordBatch(Schema arrowSchema,
java.io.InputStream inputStream,
org.apache.arrow.memory.RootAllocator allocator) |
public static ArrowConversion.RecordBatchRowIterator rowsFromRecordBatch(Schema schema, 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 Row
s is accessed.
public static ArrowConversion.RecordBatchRowIterator rowsFromSerializedRecordBatch(Schema arrowSchema, java.io.InputStream inputStream, org.apache.arrow.memory.RootAllocator allocator) throws java.io.IOException
java.io.IOException
public static Schema arrowSchemaFromInput(java.io.InputStream input) throws java.io.IOException
java.io.IOException