use of uk.gov.gchq.koryphe.impl.predicate.IsLessThan in project gaffer-doc by gchq.
the class AndExample method firstItemIsLessThan2AndSecondItemIsMoreThan5.
public void firstItemIsLessThan2AndSecondItemIsMoreThan5() {
// ---------------------------------------------------------
final And function = new And.Builder().select(0).execute(new IsLessThan(2)).select(1).execute(new IsMoreThan(5)).build();
// ---------------------------------------------------------
runExample(function, null, new Tuple2<>(1, 10), new Tuple2<>(1, 1), new Tuple2<>(10, 10), new Tuple2<>(10, 1), new Tuple2<>(1L, 10L), new Tuple1<>(1));
}
use of uk.gov.gchq.koryphe.impl.predicate.IsLessThan in project gaffer-doc by gchq.
the class AndExample method isLessThan3AndIsMoreThan0.
public void isLessThan3AndIsMoreThan0() {
// ---------------------------------------------------------
final And function = new And<>(new IsLessThan(3), new IsMoreThan(0));
// ---------------------------------------------------------
runExample(function, null, 0, 1, 2, 3, 1L, 2L);
}
use of uk.gov.gchq.koryphe.impl.predicate.IsLessThan in project gaffer-doc by gchq.
the class IsLessThanExample method isLessThanALong5.
public void isLessThanALong5() {
// ---------------------------------------------------------
final IsLessThan function = new IsLessThan(5L);
// ---------------------------------------------------------
runExample(function, null, 1, 1L, 5, 5L, 10, 10L, "1");
}
use of uk.gov.gchq.koryphe.impl.predicate.IsLessThan in project gaffer-doc by gchq.
the class IsLessThanExample method isLessThanOrEqualTo5.
public void isLessThanOrEqualTo5() {
// ---------------------------------------------------------
final IsLessThan function = new IsLessThan(5, true);
// ---------------------------------------------------------
runExample(function, null, 1, 1L, 5, 5L, 10, 10L, "1");
}
use of uk.gov.gchq.koryphe.impl.predicate.IsLessThan in project gaffer-doc by gchq.
the class IsLessThanExample method isLessThanAString.
public void isLessThanAString() {
// ---------------------------------------------------------
final IsLessThan function = new IsLessThan("B");
// ---------------------------------------------------------
runExample(function, null, 1, "A", "B", "C");
}
Aggregations