org.apache.mahout.common.iterator.sequencefile
Class SequenceFileDirIterator<K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable>
java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingIterator<Pair<K,V>>
org.apache.mahout.common.iterator.sequencefile.SequenceFileDirIterator<K,V>
- All Implemented Interfaces:
- Iterator<Pair<K,V>>
public final class SequenceFileDirIterator<K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable>
- extends com.google.common.collect.ForwardingIterator<Pair<K,V>>
Like SequenceFileIterator
, but iterates not just over one sequence file, but many. The input path
may be specified as a directory of files to read, or as a glob pattern. The set of files may be optionally
restricted with a PathFilter
.
Constructor Summary |
SequenceFileDirIterator(org.apache.hadoop.fs.Path path,
PathType pathType,
org.apache.hadoop.fs.PathFilter filter,
Comparator<org.apache.hadoop.fs.FileStatus> ordering,
boolean reuseKeyValueInstances,
org.apache.hadoop.conf.Configuration conf)
|
Methods inherited from class com.google.common.collect.ForwardingIterator |
hasNext, next, remove |
Methods inherited from class com.google.common.collect.ForwardingObject |
toString |
SequenceFileDirIterator
public SequenceFileDirIterator(org.apache.hadoop.fs.Path path,
PathType pathType,
org.apache.hadoop.fs.PathFilter filter,
Comparator<org.apache.hadoop.fs.FileStatus> ordering,
boolean reuseKeyValueInstances,
org.apache.hadoop.conf.Configuration conf)
throws IOException
- Throws:
IOException
delegate
protected Iterator<Pair<K,V>> delegate()
- Overrides:
delegate
in class com.google.common.collect.ForwardingIterator<Pair<K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable>>
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.