Examples of OLAPEngine


Examples of org.olap4cloud.client.OLAPEngine

public class TestCubeUtils {

  public static void generateTestCube() throws Exception {
//    DataImportHFileMR.main(new String[]{});
    CubeDescriptor descr = TestCubeUtils.createTestCubeDescriptor();
    OLAPEngine engine = new OLAPEngine();
    engine.generateCube(descr);
  }
View Full Code Here

Examples of org.olap4cloud.client.OLAPEngine

//    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())
        System.out.print(l + "\t");
      for(double d: row.getValues())
        System.out.print(d + "\t");
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.