public final class SequenceFileIterator<K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable> extends com.google.common.collect.AbstractIterator<eu.dnetlib.miscutils.collections.Pair<K,V>> implements Closeable
Iterator over a SequenceFile's keys and values, as a Pair containing key and value.
| Constructor and Description |
|---|
SequenceFileIterator(org.apache.hadoop.fs.Path path,
boolean reuseKeyValueInstances,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected eu.dnetlib.miscutils.collections.Pair<K,V> |
computeNext() |
Class<K> |
getKeyClass() |
Class<V> |
getValueClass() |
endOfData, hasNext, next, peekclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic SequenceFileIterator(org.apache.hadoop.fs.Path path,
boolean reuseKeyValueInstances,
org.apache.hadoop.conf.Configuration conf)
throws IOException
IOException - if path can't be read, or its key or value class can't be instantiatedpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2026. All rights reserved.