org.apache.mahout.common.iterator.sequencefile
Class PathFilters
java.lang.Object
org.apache.mahout.common.iterator.sequencefile.PathFilters
public final class PathFilters
- extends Object
Supplies some useful and repeatedly-used instances of PathFilter
.
Method Summary |
static org.apache.hadoop.fs.PathFilter |
logsCRCFilter()
|
static org.apache.hadoop.fs.PathFilter |
partFilter()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
partFilter
public static org.apache.hadoop.fs.PathFilter partFilter()
- Returns:
PathFilter
that accepts paths whose file name starts with "part-". Excludes
".crc" files.
logsCRCFilter
public static org.apache.hadoop.fs.PathFilter logsCRCFilter()
- Returns:
PathFilter
that rejects paths whose file name starts with "_" (e.g. Cloudera
_SUCCESS files or Hadoop _logs), or "." (e.g. local hidden files), or ends with ".crc"
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.