Package org.apache.avro.mapred
Class SequenceFileReader<K,V>
java.lang.Object
org.apache.avro.mapred.SequenceFileReader<K,V>
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<Pair<K,,V>> Iterator<Pair<K,,V>> org.apache.avro.file.FileReader<Pair<K,V>>
public class SequenceFileReader<K,V>
extends Object
implements org.apache.avro.file.FileReader<Pair<K,V>>
A
FileReader for sequence files.-
Constructor Summary
ConstructorsConstructorDescriptionSequenceFileReader(File file) SequenceFileReader(URI uri, Configuration c) SequenceFileReader(SequenceFile.Reader reader, Configuration conf) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
SequenceFileReader
- Throws:
IOException
-
SequenceFileReader
- Throws:
IOException
-
SequenceFileReader
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
remove
public void remove() -
iterator
-
getSchema
public org.apache.avro.Schema getSchema()- Specified by:
getSchemain interfaceorg.apache.avro.file.FileReader<K>
-
hasNext
public boolean hasNext() -
next
-
next
- Specified by:
nextin interfaceorg.apache.avro.file.FileReader<K>- Throws:
IOException
-
sync
- Specified by:
syncin interfaceorg.apache.avro.file.FileReader<K>- Throws:
IOException
-
pastSync
- Specified by:
pastSyncin interfaceorg.apache.avro.file.FileReader<K>- Throws:
IOException
-
tell
- Specified by:
tellin interfaceorg.apache.avro.file.FileReader<K>- Throws:
IOException
-