|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avro.file.DataFileReader<D>
public class DataFileReader<D>
Read files written by DataFileWriter.
DataFileWriter| Constructor Summary | |
|---|---|
DataFileReader(SeekableInput sin,
DatumReader<D> reader)
Construct a reader for a file. |
|
| Method Summary | |
|---|---|
void |
close()
Close this reader. |
byte[] |
getMeta(String key)
Return the value of a metadata property. |
long |
getMetaLong(String key)
Return the value of a metadata property. |
String |
getMetaString(String key)
Return the value of a metadata property. |
D |
next(D reuse)
Return the next datum in the file. |
void |
seek(long position)
Move to the specified synchronization point, as returned by DataFileWriter.sync(). |
void |
sync(long position)
Move to the next synchronization point after a position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataFileReader(SeekableInput sin,
DatumReader<D> reader)
throws IOException
IOException| Method Detail |
|---|
public byte[] getMeta(String key)
public String getMetaString(String key)
public long getMetaLong(String key)
public D next(D reuse)
throws IOException
IOException
public void seek(long position)
throws IOException
DataFileWriter.sync().
IOException
public void sync(long position)
throws IOException
IOException
public void close()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||