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, wait
forEachRemaining
forEach, spliterator
public AvroColumnReader(AvroColumnReader.Params params) throws IOException
IOException
public Schema getFileSchema()
public long getRowCount()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.