Examples of CubeQueryAggregate


Examples of org.olap4cloud.client.CubeQueryAggregate

    condition.getDimensionValues().add(0l);
    cubeQuery.getConditions().add(condition);
//    condition = new CubeQueryCondition("d2");
//    condition.getDimensionValues().add(1l);
//    cubeQuery.getConditions().add(condition);
    cubeQuery.getAggregates().add(new CubeQueryAggregate("min(m1)"));
    cubeQuery.getAggregates().add(new CubeQueryAggregate("max(m2)"));
    cubeQuery.getAggregates().add(new CubeQueryAggregate("count(m3)"));
    cubeQuery.getGroupBy().add("d1");
    OLAPEngine olapEngine = new OLAPEngine();
    CubeQueryResult r = olapEngine.executeQuery(cubeQuery, cubeDescriptor);
    for(CubeQueryResultRow row: r.getRows()) {
      for(long l: row.getGroupBy())
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.