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
Modifier and TypeClassDescriptionstatic class
Parameters for reading an Avro column file. -
Constructor Summary
ConstructorDescriptionConstruct a reader for a file. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-