public final class FilterApi extends Object
IntColumn foo = intColumn("foo");
DoubleColumn bar = doubleColumn("x.y.bar");
// foo == 10 || bar <= 17.0
FilterPredicate pred = or(eq(foo, 10), ltEq(bar, 17.0));
| Modifier and Type | Method and Description |
|---|---|
static FilterPredicate |
and(FilterPredicate left,
FilterPredicate right)
Constructs the logical and of two predicates.
|
static Operators.BinaryColumn |
binaryColumn(String columnPath) |
static Operators.BooleanColumn |
booleanColumn(String columnPath) |
static Operators.DoubleColumn |
doubleColumn(String columnPath) |
static <T extends Comparable<T>,C extends Operators.Column<T> & Operators.SupportsEqNotEq> |
eq(C column,
T value)
Keeps records if their value is equal to the provided value.
|
static Operators.FloatColumn |
floatColumn(String columnPath) |
static <T extends Comparable<T>,C extends Operators.Column<T> & Operators.SupportsLtGt> |
gt(C column,
T value)
Keeps records if their value is greater than (but not equal to) the provided value.
|
static <T extends Comparable<T>,C extends Operators.Column<T> & Operators.SupportsLtGt> |
gtEq(C column,
T value)
Keeps records if their value is greater than or equal to the provided value.
|
static Operators.IntColumn |
intColumn(String columnPath) |
static Operators.LongColumn |
longColumn(String columnPath) |
static <T extends Comparable<T>,C extends Operators.Column<T> & Operators.SupportsLtGt> |
lt(C column,
T value)
Keeps records if their value is less than (but not equal to) the provided value.
|
static <T extends Comparable<T>,C extends Operators.Column<T> & Operators.SupportsLtGt> |
ltEq(C column,
T value)
Keeps records if their value is less than or equal to the provided value.
|
static FilterPredicate |
not(FilterPredicate predicate)
Constructs the logical not (or inverse) of a predicate.
|
static <T extends Comparable<T>,C extends Operators.Column<T> & Operators.SupportsEqNotEq> |
notEq(C column,
T value)
Keeps records if their value is not equal to the provided value.
|
static FilterPredicate |
or(FilterPredicate left,
FilterPredicate right)
Constructs the logical or of two predicates.
|
static <T extends Comparable<T>,U extends UserDefinedPredicate<T>> |
userDefined(Operators.Column<T> column,
Class<U> clazz)
Keeps records that pass the provided
UserDefinedPredicate |
public static Operators.IntColumn intColumn(String columnPath)
public static Operators.LongColumn longColumn(String columnPath)
public static Operators.FloatColumn floatColumn(String columnPath)
public static Operators.DoubleColumn doubleColumn(String columnPath)
public static Operators.BooleanColumn booleanColumn(String columnPath)
public static Operators.BinaryColumn binaryColumn(String columnPath)
public static <T extends Comparable<T>,C extends Operators.Column<T> & Operators.SupportsEqNotEq> Operators.Eq<T> eq(C column, T value)
public static <T extends Comparable<T>,C extends Operators.Column<T> & Operators.SupportsEqNotEq> Operators.NotEq<T> notEq(C column, T value)
lt(C, T), ltEq(C, T), gt(C, T), gtEq(C, T) operator's docs
for how they handle nullspublic static <T extends Comparable<T>,C extends Operators.Column<T> & Operators.SupportsLtGt> Operators.Lt<T> lt(C column, T value)
public static <T extends Comparable<T>,C extends Operators.Column<T> & Operators.SupportsLtGt> Operators.LtEq<T> ltEq(C column, T value)
public static <T extends Comparable<T>,C extends Operators.Column<T> & Operators.SupportsLtGt> Operators.Gt<T> gt(C column, T value)
public static <T extends Comparable<T>,C extends Operators.Column<T> & Operators.SupportsLtGt> Operators.GtEq<T> gtEq(C column, T value)
public static <T extends Comparable<T>,U extends UserDefinedPredicate<T>> Operators.UserDefined<T,U> userDefined(Operators.Column<T> column, Class<U> clazz)
UserDefinedPredicatepublic static FilterPredicate and(FilterPredicate left, FilterPredicate right)
public static FilterPredicate or(FilterPredicate left, FilterPredicate right)
public static FilterPredicate not(FilterPredicate predicate)
Copyright © 2014. All Rights Reserved.