org.apache.mahout.common.iterator.sequencefile
Class SequenceFileDirIterable<K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable>
java.lang.Object
org.apache.mahout.common.iterator.sequencefile.SequenceFileDirIterable<K,V>
- All Implemented Interfaces:
- Iterable<Pair<K,V>>
public final class SequenceFileDirIterable<K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable>
- extends Object
- implements Iterable<Pair<K,V>>
Iterable
counterpart to SequenceFileDirIterator
.
Constructor Summary |
SequenceFileDirIterable(org.apache.hadoop.fs.Path path,
PathType pathType,
org.apache.hadoop.conf.Configuration conf)
|
SequenceFileDirIterable(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)
|
SequenceFileDirIterable(org.apache.hadoop.fs.Path path,
PathType pathType,
org.apache.hadoop.fs.PathFilter filter,
org.apache.hadoop.conf.Configuration conf)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceFileDirIterable
public SequenceFileDirIterable(org.apache.hadoop.fs.Path path,
PathType pathType,
org.apache.hadoop.conf.Configuration conf)
SequenceFileDirIterable
public SequenceFileDirIterable(org.apache.hadoop.fs.Path path,
PathType pathType,
org.apache.hadoop.fs.PathFilter filter,
org.apache.hadoop.conf.Configuration conf)
SequenceFileDirIterable
public SequenceFileDirIterable(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)
- Parameters:
path
- file to iterate overpathType
- whether or not to treat path as a directory (PathType.LIST
) or
glob pattern (PathType.GLOB
)filter
- if not null, specifies sequence files to be ignored by the iterationordering
- if not null, specifies the order in which to iterate over matching sequence filesreuseKeyValueInstances
- if true, reuses instances of the value object instead of creating a new
one for each read from the file
iterator
public Iterator<Pair<K,V>> iterator()
- Specified by:
iterator
in interface Iterable<Pair<K extends org.apache.hadoop.io.Writable,V extends org.apache.hadoop.io.Writable>>
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.