Examples of assign()


Examples of oracle.olapi.data.source.CustomModel.assign()

    println("The values using extract method are:");
    getContext().displayResult(resultUsingExtract);
                            
    // Produce the same result using a CustomModel directly.
    CustomModel customModel = dp.createModel(sourceListSrc);
    customModel.assign(unitPrice.getID(), unitPrice);
    customModel.assign(unitCost.getID(), unitCost);
    customModel.assign(calculation.getID(), calculation);
                            
    Source measValForSrc = customModel.createSolvedSource();
                            
View Full Code Here

Examples of oracle.olapi.metadata.mdm.MdmMeasureModel.assign()

                                       productDim,
                                       "PRODUCT_PRIMARY_AW::FAMILY_AW::7");
                                       //"PRODUCT_PRIMARY_AW::FAMILY_AW::50");
    // unitPriceModel.assign(prodQual, dp.createConstantSource(75));
    Qualification[] qualArray = new Qualification[]{prodQual};
    unitPriceModel.assign(qualArray, dp.createConstantSource(75));
   
    Source result2 = unitPrice.join(prodSel)
                              .join(timeSel);
    getContext().commit();
    println("\nThe result with the Qualification is:");
View Full Code Here

Examples of org.apache.batik.dom.svg.AbstractSVGTransform.assign()

                (AbstractSVGTransform) res.transforms.elementAt(index);
            if (t == null) {
                t = new SVGOMTransform();
                res.transforms.setElementAt(t, index);
            }
            t.assign(ft);
        }

        // XXX Do better checking for changes.
        res.hasChanged = true;
View Full Code Here

Examples of org.apache.flex.forks.batik.dom.svg.AbstractSVGTransform.assign()

                (AbstractSVGTransform) res.transforms.elementAt(index);
            if (t == null) {
                t = new SVGOMTransform();
                res.transforms.setElementAt(t, index);
            }
            t.assign(ft);
        }

        // XXX Do better checking for changes.
        res.hasChanged = true;
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Admin.assign()

    conn.clearRegionCache();
    // assign all the new regions IF table is enabled.
    Admin admin = getHBaseAdmin();
    if (admin.isTableEnabled(table.getName())) {
      for(HRegionInfo hri : newRegions) {
        admin.assign(hri.getRegionName());
      }
    }

    meta.close();
View Full Code Here

Examples of org.apache.hadoop.hbase.client.HBaseAdmin.assign()

    conn.clearRegionCache();
    // assign all the new regions IF table is enabled.
    HBaseAdmin admin = getHBaseAdmin();
    if (admin.isTableEnabled(table.getTableName())) {
      for(HRegionInfo hri : newRegions) {
        admin.assign(hri.getRegionName());
      }
    }

    meta.close();
View Full Code Here

Examples of org.apache.hadoop.hbase.master.AssignmentManager.assign()

          EnvironmentEdgeManager.currentTimeMillis() - start > 60000);
        Thread.sleep(500);
      }

      // We should not be able to assign it again
      am.assign(hri, true, true);
      assertFalse("Split region can't be assigned",
        regionStates.isRegionInTransition(hri));
      assertTrue(regionStates.isRegionInState(hri, State.SPLIT));

      // We should not be able to unassign it either
View Full Code Here

Examples of org.apache.mahout.math.DenseMatrix.assign()

  @Test
  public void testGivensQR() throws Exception {
    // DenseMatrix m = new DenseMatrix(dims<<2,dims);
    Matrix m = new DenseMatrix(3, 3);
    m.assign(new DoubleFunction() {
      private final Random rnd = RandomUtils.getRandom();
      @Override
      public double apply(double arg0) {
        return rnd.nextDouble() * SCALE;
      }
View Full Code Here

Examples of org.apache.mahout.math.DenseVector.assign()

    Vector v = new DenseVector(1000);
    ByteBuffer buf = ByteBuffer.wrap(FileUtils
        .readFileToByteArray(new File(args[1])));
    FastLine line = FastLine.read(buf);
    while (line != null) {
      v.assign(0);
      for (int i = 0; i < FIELDS; i++) {
        encoder[i].addToVector((byte[]) null, line.getDouble(i), v);
      }
      line = FastLine.read(buf);
    }
View Full Code Here

Examples of org.apache.mahout.math.DenseVector.assign()

    long t0 = System.currentTimeMillis();
    Vector v = new DenseVector(1000);
    BufferedReader in = new BufferedReader(new FileReader(args[1]));
    String line = in.readLine();
    while (line != null) {
      v.assign(0);
      Line x = new Line(line);
      for (int i = 0; i < FIELDS; i++) {
        encoder[i].addToVector((byte[]) null, x.getDouble(i), v);
      }
      line = in.readLine();
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.