Interface SelectionPredicate
-
public interface SelectionPredicateDifferentiating factor between the first and the last aggregator. Specifies the
-
-
Field Summary
Fields Modifier and Type Field Description static SelectionPredicateFIRST_PREDICATEstatic SelectionPredicateLAST_PREDICATE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanapply(long currentTime, long selectedTime)longinitValue()
-
-
-
Field Detail
-
FIRST_PREDICATE
static final SelectionPredicate FIRST_PREDICATE
-
LAST_PREDICATE
static final SelectionPredicate LAST_PREDICATE
-
-
Method Detail
-
initValue
long initValue()
- Returns:
- Time value to initialize the aggregation with
-
apply
boolean apply(long currentTime, long selectedTime)- Parameters:
currentTime- Time of the current rowselectedTime- Aggregated time value- Returns:
- true if the current row should be selected over the aggregated value, else false
-
-