public class AvroColumnReader<D> extends Object implements Iterator<D>, Iterable<D>, Closeable
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.| Modifier and Type | Class and Description | 
|---|---|
static class  | 
AvroColumnReader.Params
Parameters for reading an Avro column file. 
 | 
| Constructor and Description | 
|---|
AvroColumnReader(AvroColumnReader.Params params)
Construct a reader for a file. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()  | 
Schema | 
getFileSchema()
Return the schema for data in this file. 
 | 
long | 
getRowCount()
Return the number of rows in this file. 
 | 
boolean | 
hasNext()  | 
Iterator<D> | 
iterator()  | 
D | 
next()  | 
void | 
remove()  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingforEach, spliteratorpublic AvroColumnReader(AvroColumnReader.Params params) throws IOException
IOExceptionpublic Schema getFileSchema()
public long getRowCount()
public void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2009–2021 The Apache Software Foundation. All rights reserved.