|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.crunch.fn.FilterFns
public final class FilterFns
A collection of pre-defined FilterFn
implementations.
Method Summary | ||
---|---|---|
static
|
ACCEPT_ALL()
Accept everything. |
|
static
|
and(FilterFn<S>... fns)
Accept an entry if all of the given filters accept it, using short-circuit evaluation. |
|
static
|
and(FilterFn<S> fn1,
FilterFn<S> fn2)
Accept an entry if all of the given filters accept it, using short-circuit evaluation. |
|
static
|
not(FilterFn<S> fn)
Accept an entry if the given filter does not accept it. |
|
static
|
or(FilterFn<S>... fns)
Accept an entry if at least one of the given filters accept it, using short-circuit evaluation. |
|
static
|
or(FilterFn<S> fn1,
FilterFn<S> fn2)
Accept an entry if at least one of the given filters accept it, using short-circuit evaluation. |
|
static
|
REJECT_ALL()
Reject everything. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <S> FilterFn<S> and(FilterFn<S> fn1, FilterFn<S> fn2)
fn1
- The first functions to delegate tofn2
- The second functions to delegate to
public static <S> FilterFn<S> and(FilterFn<S>... fns)
fns
- The functions to delegate to (in the given order)
public static <S> FilterFn<S> or(FilterFn<S> fn1, FilterFn<S> fn2)
fn1
- The first functions to delegate tofn2
- The second functions to delegate to
public static <S> FilterFn<S> or(FilterFn<S>... fns)
fns
- The functions to delegate to (in the given order)
public static <S> FilterFn<S> not(FilterFn<S> fn)
fn
- The function to delegate to
public static <S> FilterFn<S> ACCEPT_ALL()
public static <S> FilterFn<S> REJECT_ALL()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |