use of com.yahoo.bullet.query.aggregations.AggregationType in project bullet-core by yahoo.
the class Query method validateWindow.
private void validateWindow() {
AggregationType type = aggregation.getType();
Window.Classification kind = window.getType();
if (type != AggregationType.RAW && kind == Window.Classification.RECORD_RECORD) {
throw ONLY_RAW_RECORD;
}
if (type == AggregationType.RAW && kind == Window.Classification.TIME_ALL) {
throw NO_RAW_ALL;
}
}
Aggregations