org.apache.mahout.common.iterator.sequencefile
Class SequenceFileValueIterator<V extends org.apache.hadoop.io.Writable>

java.lang.Object
  extended by com.google.common.collect.UnmodifiableIterator<T>
      extended by com.google.common.collect.AbstractIterator<V>
          extended by 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)
           
 
Method Summary
 void close()
           
protected  V computeNext()
           
 Class<V> getValueClass()
           
 
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
 

Constructor Detail

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
Method Detail

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.