Search in sources :

Example 6 with InDateRangeDual

use of uk.gov.gchq.koryphe.impl.predicate.range.InDateRangeDual in project gaffer-doc by gchq.

the class InDateRangeDualExample method inDateRangeWithTimestamps.

public void inDateRangeWithTimestamps() {
    // ---------------------------------------------------------
    final InDateRangeDual function = new InDateRangeDual.Builder().start("1483315200").end("1485907200").build();
    // ---------------------------------------------------------
    runExample(function, null, new Tuple2<>(new Date(1483315198L), new Date(1483315199L)), new Tuple2<>(new Date(1483315198L), new Date(1483315200L)), new Tuple2<>(new Date(1483315200L), new Date(1483315201L)), new Tuple2<>(new Date(1483316200L), new Date(1485907200L)), new Tuple2<>(new Date(1483316200L), new Date(1485907201L)), new Tuple2<>(null, null));
}
Also used : InDateRangeDual(uk.gov.gchq.koryphe.impl.predicate.range.InDateRangeDual) Date(java.util.Date)

Aggregations

InDateRangeDual (uk.gov.gchq.koryphe.impl.predicate.range.InDateRangeDual)6 Date (java.util.Date)3