Examples of AggregationEvaluator


Examples of org.yaac.server.egql.evaluator.AggregationEvaluator

  @Test
  public void testAggregationEvaluatorOnly() {
    SelectStatement stmt = new SelectStatement();
    stmt.setSelectClause(new SelectClause().add(
        new AggregationEvaluator("count", null))
        .add(new AggregationEvaluator("sum", null)));
   
    assertTrue(stmt.aggregationEvaluatorOnly());
   
    stmt.getSelectClause().add(new FieldEvaluator("a.b"));
    assertFalse(stmt.aggregationEvaluatorOnly());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.