Package org.apache.arrow.adapter.avro
Class AvroToArrow
java.lang.Object
org.apache.arrow.adapter.avro.AvroToArrow
Utility class to convert Avro objects to columnar Arrow format objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AvroToArrowVectorIterator
avroToArrowIterator
(org.apache.avro.Schema schema, org.apache.avro.io.Decoder decoder, AvroToArrowConfig config) Fetch the data fromDecoder
and iteratively convert it to Arrow objects.
-
Constructor Details
-
AvroToArrow
public AvroToArrow()
-
-
Method Details
-
avroToArrowIterator
public static AvroToArrowVectorIterator avroToArrowIterator(org.apache.avro.Schema schema, org.apache.avro.io.Decoder decoder, AvroToArrowConfig config) throws IOException Fetch the data fromDecoder
and iteratively convert it to Arrow objects.- Parameters:
schema
- avro schemadecoder
- avro decoderconfig
- configuration of the conversion.- Throws:
IOException
- on error
-