Examples of MdmMeasure


Examples of oracle.olapi.metadata.mdm.MdmMeasure

  {
    println("\nMatching an Input of the Base Source to an Output of the " +
            "Joined Source");
       
    // Get the MdmMeasure for units
    MdmMeasure mdmUnits = getMdmMeasure("UNITS_AW");
   
    // Get the Source for the measure
    Source units = mdmUnits.getSource();
       
    // Get the dimensions and their default hierarchies.      
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    MdmPrimaryDimension mdmCustDim = getMdmPrimaryDimension("CUSTOMER_AW");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

    // display of the IDs of the inputs is the same each time the program
    // executes.

    println("\nMatching the Inputs of a Measure and Producing Outputs");
       
    MdmMeasure mdmUnits = getMdmMeasure("UNITS_AW");
    Source units = mdmUnits.getSource();

    MdmPrimaryDimension mdmChanDim = getMdmPrimaryDimension("CHANNEL_AW");
    MdmPrimaryDimension mdmCustDim = getMdmPrimaryDimension("CUSTOMER_AW");
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

                     (MdmLevelHierarchy) mdmProdStdDim.getDefaultHierarchy();
    StringSource calendar = (StringSource) mdmCalendar.getSource();
    StringSource prodPrimary = (StringSource) mdmProdPrimary.getSource();
       
    // Get the Unit Cost and Unit Price measures and the Source objects for them.
    MdmMeasure mdmUnitCost = getMdmMeasure("UNIT_COST_AW");
    MdmMeasure mdmUnitPrice = getMdmMeasure("UNIT_PRICE_AW");
       
    NumberSource unitCost = (NumberSource) mdmUnitCost.getSource();
    NumberSource unitPrice = (NumberSource) mdmUnitPrice.getSource();
       
    // Get the level to which the dimension members belong.
    MdmLevel mdmItemLevel = getContext().getLevelByName(mdmProdPrimary,
                                                        "ITEM_AW");
       
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

      Iterator mdmMeasuresIter = mdmMeasures.iterator();
      List<LazyDynaBean> result = new ArrayList<LazyDynaBean>();
      while (mdmMeasuresIter.hasNext()){
        LazyDynaBean bean = new LazyDynaBean();
        result.add(bean);
        MdmMeasure oneMeasure = (MdmMeasure) mdmMeasuresIter.next();
        bean.set("name", oneMeasure.getName());
          List mDims = oneMeasure.getDimensions();
          Iterator mDimIter = mDims.iterator();
          List<String> dimNames = new ArrayList<String>();
          bean.set("dimensions", dimNames);
          while (mDimIter.hasNext()){
            MdmDimension dim = (MdmDimension) mDimIter.next();
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

     */
    if(dimensionNames==null||dimensionList==null||measure==null||dimensionNames.size()!=dimensionList.size()){
      return null;
    }
    MyOlapContext context = MyOlapContext.getMyOlapContext();
    MdmMeasure mdmMeasure = context.getMdmMeasure(measure);
    if(mdmMeasure==null){
      context.closeContext();
      return null;
    }
    Source measureSource = mdmMeasure.getSource();
   
    ArrayList<Source> HierarchySelectedList = new ArrayList<Source>();
    for(String dimensionName:dimensionNames){
      MdmPrimaryDimension mdmDim = context.getMdmPrimaryDimension(dimensionName);
      MdmHierarchy mdmHier = mdmDim.getDefaultHierarchy();
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

  private void controllingMatchingWithAlias()
    throws Exception
  {
    println("\nControlling Input-to-Source Matching With the alias Method");

    MdmMeasure mdmUnits = getMdmMeasure("UNITS_AW");

    // Get the Source objects for the measure and for the default hierarchies
    // of the dimensions.
    NumberSource units = (NumberSource) mdmUnits.getSource();
    StringSource prodHier = (StringSource)
        getMdmPrimaryDimension("PRODUCT_AW").getDefaultHierarchy().getSource();
    StringSource custHier = (StringSource)
        getMdmPrimaryDimension("CUSTOMER_AW").getDefaultHierarchy().getSource();
    StringSource chanHier = (StringSource)
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

    throws Exception
  {
    println("\nUsing COMPARISON_RULE_DESCENDING");

    // Get the UNIT_PRICE_AW measure and the Source for it.
    MdmMeasure mdmUnitPrice = getMdmMeasure("UNIT_PRICE_AW");
    NumberSource unitPrice = (NumberSource) mdmUnitPrice.getSource();

    // Get the PRODUCT and TIME dimensions.
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

    throws Exception
  {
    println("\nUsing the extract Method");

    // Get the primary dimensions and the measure.
    MdmMeasure mdmUnits     = getMdmMeasure("UNITS_AW");
    MdmMeasure mdmSales     = getMdmMeasure("SALES_AW");
    MdmMeasure mdmUnitPrice = getMdmMeasure("UNIT_PRICE_AW");

    // Get the Source objects for the measure and for the default hierarchies
    // of the dimensions.
    NumberSource units = (NumberSource) mdmUnits.getSource();
    NumberSource sales = (NumberSource) mdmSales.getSource();
    NumberSource unitPrice = (NumberSource) mdmUnitPrice.getSource();

    StringSource prodHier = (StringSource)
        getMdmPrimaryDimension("PRODUCT_AW").getDefaultHierarchy().getSource();
    StringSource custHier = (StringSource)
        getMdmPrimaryDimension("CUSTOMER_AW").getDefaultHierarchy().getSource();
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

    throws Exception
  {
    println("\nHierarchical Sorting by Measure Value");

    // Get the primary dimensions and the measure.
    MdmMeasure mdmUnits = getMdmMeasure("UNITS_AW");

    // Get the MdmPrimaryDimension and the default MdmLevelHiearchy for the
    // PRODUCT dimension.
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    StringSource custHier = (StringSource)
      getMdmPrimaryDimension("CUSTOMER_AW").getDefaultHierarchy().getSource();
    StringSource chanHier = (StringSource)
      getMdmPrimaryDimension("CHANNEL_AW").getDefaultHierarchy().getSource();
    StringSource timeHier = (StringSource)
      getMdmPrimaryDimension("TIME_AW").getDefaultHierarchy().getSource();

    MdmLevelHierarchy mdmProdHier = (MdmLevelHierarchy)
                                     mdmProdDim.getDefaultHierarchy();
    // Get the Source for the default product hierarchy                                   .
    StringSource prodHier = (StringSource) mdmProdHier.getSource();

    // Get the Source objects for the measure and for the default hierarchies
    // of the other dimensions.
    NumberSource units = (NumberSource) mdmUnits.getSource();

    // Get the parent attribute of the PRODUCT dimension and the Source for it
    // to use in the recursiveJoin method.
    MdmAttribute mdmProdParentAttr = mdmProdHier.getParentAttribute();
    Source prodParent = mdmProdParentAttr.getSource();
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasure

  protected void run() throws Exception
  {
    println("Selecting a Range With NumberParameter Objects");

    // Get the MdmMeasure for units sold.
    MdmMeasure mdmUnits = getMdmMeasure("UNITS_AW");
    // Get the Source for the measure.
    Source units = mdmUnits.getSource();

    // Get the dimensions of the measure and the default hierarchies of
    // the dimensions.
    MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
    MdmLevelHierarchy mdmProdDefLvlHier = (MdmLevelHierarchy)
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.