Package org.olap4cloud.client

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


//    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

Related Classes of org.olap4cloud.client.OLAPEngine

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.