Package org.apache.trevni.avro
Class AvroColumnReader<D>
java.lang.Object
org.apache.trevni.avro.AvroColumnReader<D>
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<D>,Iterator<D>
Read files written with
AvroColumnWriter. A subset of the schema used
for writing may be specified when reading. In this case only columns of the
subset schema are read.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classParameters for reading an Avro column file. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a reader for a file. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
AvroColumnReader
Construct a reader for a file.- Throws:
IOException
-
-
Method Details
-
getFileSchema
Return the schema for data in this file. -
iterator
-
hasNext
public boolean hasNext() -
getRowCount
public long getRowCount()Return the number of rows in this file. -
next
-
remove
public void remove() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-