Package org.olap4j.metadata

Examples of org.olap4j.metadata.Measure


    query.getDetails().setAxis(ax);

    if (details.getMeasures().size() > 0) {
      for (ThinMeasure m : details.getMeasures()) {
        if (Type.CALCULATED.equals(m.getType())) {
          Measure measure = query.getCalculatedMeasure(m.getName());
          query.getDetails().add(measure);
        } else if (Type.EXACT.equals(m.getType())) {
          Measure measure = query.getMeasure(m.getName());
          query.getDetails().add(measure);
        }
      }
    }
  }
View Full Code Here


      for (int i = 0; i < valueFormats.length; i++) {
        valueFormats[i] = getMeasureFormat(selectedMeasures[i]);
        uniqueToSelected.put(selectedMeasures[i].getUniqueName(), i);
      }
    } else {
      Measure defaultMeasure = cube.getMeasures().get(0);
      if (cube.getDimensions().get("Measures") != null) {
        Member ms = cube.getDimensions().get("Measures").getDefaultHierarchy().getDefaultMember();
        if (ms instanceof Measure) {
          defaultMeasure = (Measure) ms;
        }
View Full Code Here

TOP

Related Classes of org.olap4j.metadata.Measure

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.