Package org.yaac.server.egql

Examples of org.yaac.server.egql.GroupByClause


   *
   * @param record
   * @return
   */
  private Map<String, Object> groupByRecord(ProcessDataRecord record) {
    GroupByClause clause = stmt.getGroupByClause();
   
    if (clause == null) {
      return newLinkedHashMap();
    } else {
      Iterable<String> groupByKeys = clause.itemsInStr();
      
      Map<String, Object> groupByRecord = newLinkedHashMap();
     
      for (String propertyName : groupByKeys) {
        groupByRecord.put(propertyName, record.lookup(propertyName).getPayload());
View Full Code Here


   */
  @Test
  public void test() throws Exception {
    String inputStr = "group by a.b, a.c, e";
   
    GroupByClause actual = TestUtil.parser(inputStr).group_clause().e;
   
    GroupByClause expected = new GroupByClause().add("a.b").add("a.c").add("e");
   
    Assert.assertEquals(expected, actual);
  }
View Full Code Here

TOP

Related Classes of org.yaac.server.egql.GroupByClause

Copyright © 2018 www.massapicom. 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.