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.
|
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-2012 The Apache Software Foundation. All Rights Reserved.