Package org.olap4cloud.impl.aggr

Examples of org.olap4cloud.impl.aggr.SumCubeScanAggregate


    if(dimensionIndexes.size() == numberOfDimensions) {
      AggregationCubeDescriptor aggCubeDescriptor = new AggregationCubeDescriptor();
      StringBuilder aggCubeName = new StringBuilder(getCubeName());
      aggCubeName.append("_aggregate");
      for(CubeMeasure measure: getMeasures()) {
        aggCubeDescriptor.getAggregates().add(new SumCubeScanAggregate("sum(" + measure.getName() +
            ")", this));
        aggCubeDescriptor.getAggregates().add(new MinCubeScanAggregate("min(" + measure.getName() +
            ")", this));
        aggCubeDescriptor.getAggregates().add(new MaxCubeScanAggregate("max(" + measure.getName() +
            ")", this));
View Full Code Here


  }

  private CubeScanAggregate getCubeScanAggregate(CubeQueryAggregate aggregate, CubeDescriptor cubeDescriptor)
    throws OLAPEngineException {
    if(aggregate.getAggregate().toLowerCase().startsWith("sum("))
      return new SumCubeScanAggregate(aggregate.getAggregate(), cubeDescriptor);
    if(aggregate.getAggregate().toLowerCase().startsWith("max("))
      return new MaxCubeScanAggregate(aggregate.getAggregate(), cubeDescriptor);
    if(aggregate.getAggregate().toLowerCase().startsWith("min("))
      return new MinCubeScanAggregate(aggregate.getAggregate(), cubeDescriptor);
    if(aggregate.getAggregate().toLowerCase().startsWith("count("))
View Full Code Here

TOP

Related Classes of org.olap4cloud.impl.aggr.SumCubeScanAggregate

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.