public abstract class AbstractFilePredicate extends java.lang.Object implements OptimizedFilePredicate
OptimizedFilePredicate
.Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_PRIORITY |
protected static int |
USE_INDEX |
Constructor and Description |
---|
AbstractFilePredicate() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(OptimizedFilePredicate o) |
java.lang.Iterable<InputFile> |
filter(java.lang.Iterable<InputFile> target)
Filter provided files to keep only the ones that are valid for this predicate
|
java.lang.Iterable<InputFile> |
get(FileSystem.Index index)
Get all files that are valid for this predicate.
|
int |
priority()
For optimization.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
protected static final int DEFAULT_PRIORITY
protected static final int USE_INDEX
public java.lang.Iterable<InputFile> filter(java.lang.Iterable<InputFile> target)
OptimizedFilePredicate
filter
in interface OptimizedFilePredicate
public java.lang.Iterable<InputFile> get(FileSystem.Index index)
OptimizedFilePredicate
get
in interface OptimizedFilePredicate
public int priority()
OptimizedFilePredicate
RelativePathPredicate
and AbsolutePathPredicate have a high priority since they are using cache index.priority
in interface OptimizedFilePredicate
public final int compareTo(OptimizedFilePredicate o)
compareTo
in interface java.lang.Comparable<OptimizedFilePredicate>