Package org.apache.arrow.adapter.avro
Class AvroToArrowVectorIterator
java.lang.Object
org.apache.arrow.adapter.avro.AvroToArrowVectorIterator
- All Implemented Interfaces:
 AutoCloseable,Iterator<VectorSchemaRoot>
public class AvroToArrowVectorIterator
extends Object
implements Iterator<VectorSchemaRoot>, AutoCloseable
VectorSchemaRoot iterator for partially converting avro data.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Clean up resources.static AvroToArrowVectorIteratorcreate(org.apache.avro.io.Decoder decoder, org.apache.avro.Schema schema, AvroToArrowConfig config) Create a ArrowVectorIterator to partially convert data.booleanhasNext()next()Gets the next vector.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove 
- 
Field Details
- 
NO_LIMIT_BATCH_SIZE
public static final int NO_LIMIT_BATCH_SIZE- See Also:
 
 - 
DEFAULT_BATCH_SIZE
public static final int DEFAULT_BATCH_SIZE- See Also:
 
 
 - 
 - 
Method Details
- 
create
public static AvroToArrowVectorIterator create(org.apache.avro.io.Decoder decoder, org.apache.avro.Schema schema, AvroToArrowConfig config) Create a ArrowVectorIterator to partially convert data. - 
hasNext
public boolean hasNext()- Specified by:
 hasNextin interfaceIterator<VectorSchemaRoot>
 - 
next
Gets the next vector. The user is responsible for freeing its resources.- Specified by:
 nextin interfaceIterator<VectorSchemaRoot>
 - 
close
public void close()Clean up resources.- Specified by:
 closein interfaceAutoCloseable
 
 -