Search in sources :

Example 1 with AggregationType

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;
    }
}
Also used : AggregationType(com.yahoo.bullet.query.aggregations.AggregationType)

Aggregations

AggregationType (com.yahoo.bullet.query.aggregations.AggregationType)1