use of com.yahoo.bullet.query.aggregations.GroupAll in project bullet-core by yahoo.
the class QuerierTest method makeCountQueryWithAllWindow.
private static RunningQuery makeCountQueryWithAllWindow(BulletConfig config, int emitInterval) {
GroupAll groupAll = new GroupAll(singleton(new GroupOperation(GroupOperation.GroupOperationType.COUNT, null, "COUNT")));
Window window = WindowUtils.makeWindow(Window.Unit.TIME, emitInterval, Window.Unit.ALL, null);
Query query = new Query(new Projection(), null, groupAll, null, window, null);
query.configure(config);
RunningQuery runningQuery = spy(makeRunningQuery("", query));
Mockito.doReturn(false).when(runningQuery).isTimedOut();
return runningQuery;
}
use of com.yahoo.bullet.query.aggregations.GroupAll in project bullet-core by yahoo.
the class QueryUtils method makeGroupAllFilterQuery.
public static Query makeGroupAllFilterQuery(Expression filter, List<GroupOperation> operations) {
Query query = new Query(new Projection(), filter, new GroupAll(new HashSet<>(operations)), null, new Window(), null);
query.configure(new BulletConfig());
return query;
}
Aggregations