public final class SequenceFileDirValueIterable<V extends org.apache.hadoop.io.Writable> extends Object implements Iterable<V>
Iterable
counterpart to SequenceFileDirValueIterator
.
Constructor and Description |
---|
SequenceFileDirValueIterable(org.apache.hadoop.fs.Path path,
PathType pathType,
org.apache.hadoop.conf.Configuration conf) |
SequenceFileDirValueIterable(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) |
SequenceFileDirValueIterable(org.apache.hadoop.fs.Path path,
PathType pathType,
org.apache.hadoop.fs.PathFilter filter,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
Iterator<V> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public SequenceFileDirValueIterable(org.apache.hadoop.fs.Path path, PathType pathType, org.apache.hadoop.conf.Configuration conf)
public SequenceFileDirValueIterable(org.apache.hadoop.fs.Path path, PathType pathType, org.apache.hadoop.fs.PathFilter filter, org.apache.hadoop.conf.Configuration conf)
public SequenceFileDirValueIterable(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)
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 fileCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.