org.apache.mahout.common.iterator.sequencefile
Class SequenceFileValueIterator<V extends org.apache.hadoop.io.Writable>
java.lang.Object
com.google.common.collect.UnmodifiableIterator<T>
com.google.common.collect.AbstractIterator<V>
org.apache.mahout.common.iterator.sequencefile.SequenceFileValueIterator<V>
- All Implemented Interfaces:
- Closeable, Iterator<V>
public final class SequenceFileValueIterator<V extends org.apache.hadoop.io.Writable>
- extends com.google.common.collect.AbstractIterator<V>
- implements Closeable
Iterator
over a SequenceFile
's values only.
Constructor Summary |
SequenceFileValueIterator(org.apache.hadoop.fs.Path path,
boolean reuseKeyValueInstances,
org.apache.hadoop.conf.Configuration conf)
|
Methods inherited from class com.google.common.collect.AbstractIterator |
endOfData, hasNext, next, peek |
Methods inherited from class com.google.common.collect.UnmodifiableIterator |
remove |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceFileValueIterator
public SequenceFileValueIterator(org.apache.hadoop.fs.Path path,
boolean reuseKeyValueInstances,
org.apache.hadoop.conf.Configuration conf)
throws IOException
- Throws:
IOException
- if path can't be read, or its key or value class can't be instantiated
getValueClass
public Class<V> getValueClass()
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Throws:
IOException
computeNext
protected V computeNext()
- Specified by:
computeNext
in class com.google.common.collect.AbstractIterator<V extends org.apache.hadoop.io.Writable>
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.