Examples of clone()


Examples of org.apache.hadoop.hive.ql.plan.ColStatistics.clone()

        // clone the column stats and return
        ColStatistics result = parentStats.getColumnStatisticsForColumn(tabAlias, colName);
        if (result != null) {
          try {
            return result.clone();
          } catch (CloneNotSupportedException e) {
            return null;
          }
        }
        return null;
View Full Code Here

Examples of org.apache.hadoop.hive.ql.plan.ExprNodeColumnDesc.clone()

      ExprNodeDesc newcd = null;
      ExprNodeColumnDesc cd = (ExprNodeColumnDesc) nd;
      ExprProcCtx epc = (ExprProcCtx) procCtx;
      if (cd.getTabAlias().equalsIgnoreCase(epc.getTabAlias())
          && cd.getIsPartitionColOrVirtualCol()) {
        newcd = cd.clone();
      } else {
        newcd = new ExprNodeConstantDesc(cd.getTypeInfo(), null);
        epc.setHasNonPartCols(true);
      }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.plan.ExprNodeDesc.clone()

      lvForwardRR.put(tabCol[0], tabCol[1], col);
      ExprNodeDesc colExpr = new ExprNodeColumnDesc(col);
      colList.add(colExpr);
      colNames.add(colExpr.getName());
      lvfColExprMap.put(col.getInternalName(), colExpr);
      selColExprMap.put(col.getInternalName(), colExpr.clone());
    }

    Operator lvForward = putOpInsertMap(OperatorFactory.getAndMakeChild(
        new LateralViewForwardDesc(), new RowSchema(lvForwardRR.getColumnInfos()),
        op), lvForwardRR);
View Full Code Here

Examples of org.apache.hadoop.hive.ql.plan.Statistics.clone()

      Table table = aspCtx.getParseContext().getTopToTable().get(tsop);

      // gather statistics for the first time and the attach it to table scan operator
      Statistics stats = StatsUtils.collectStatistics(aspCtx.getConf(), partList, table, tsop);
      try {
        tsop.setStatistics(stats.clone());

        if (LOG.isDebugEnabled()) {
          LOG.debug("[0] STATS-" + tsop.toString() + ": " + stats.extendedToString());
        }
      } catch (CloneNotSupportedException e) {
View Full Code Here

Examples of org.apache.hadoop.hive.ql.plan.exprNodeColumnDesc.clone()

     
      exprNodeDesc newcd = null;
      exprNodeColumnDesc cd = (exprNodeColumnDesc) nd;
      ExprProcCtx epc = (ExprProcCtx) procCtx;
      if (cd.getTabAlias().equalsIgnoreCase(epc.getTabAlias()) && cd.getIsParititonCol())
        newcd = cd.clone();
      else {
        newcd = new exprNodeConstantDesc(cd.getTypeInfo(), null);
        epc.setHasNonPartCols(true);
      }
     
View Full Code Here

Examples of org.apache.harmony.crypto.tests.support.MyMacSpi.clone()

        mSpi.engineInit(sks, null);

        byte[] bb = mSpi.engineDoFinal();
        assertEquals(bb.length, 0);
        try {
            mSpi.clone();
            fail("CloneNotSupportedException was not thrown as expected");
        } catch (CloneNotSupportedException e) {
        }
       
        MacSpi mSpi1 = new MyMacSpi1();
View Full Code Here

Examples of org.apache.harmony.security.tests.support.MySignature1.clone()

   * Class under test for Object clone()
   */
  public void testClone() {
    MySignature1 s = new MySignature1("ABC");
    try {
      s.clone();
      fail("No expected CloneNotSupportedException");
    } catch (CloneNotSupportedException e) { 
    } 
  }

View Full Code Here

Examples of org.apache.harmony.xnet.provider.jsse.SSLSessionImpl.clone()

                                "SSL Session may not be created");
                    }
                }
                session = null;
            } else {
                session = (SSLSessionImpl)sessionToResume.clone();
                isResuming = true;
            }
        }

        if (isResuming) {
View Full Code Here

Examples of org.apache.isis.core.metamodel.facets.object.viewmodel.ViewModelFacet.clone()

        final ViewModelFacet viewModelFacet = adapter.getSpecification().getFacet(ViewModelFacet.class);
        if(viewModelFacet != null) {
            final Object viewModel = adapter.getObject();
            final boolean cloneable = viewModelFacet.isCloneable(viewModel);
            if(cloneable) {
                final Object newViewModel = viewModelFacet.clone(viewModel);
                adapter = getAdapterManager().adapterFor(newViewModel);
            }
        }

        getObjectAdapterMemento().setAdapter(adapter);
View Full Code Here

Examples of org.apache.ivory.entity.v0.Entity.clone()

            store(EntityType.valueOf(type.toUpperCase()), xml);
        }

        entity = args[2];
        Entity obj = EntityUtil.getEntity(type, entity);
        Process newEntity = (Process)obj.clone();
        newEntity.setFrequency(Frequency.fromString("minutes(5)"));
        System.out.println("##############OLD ENTITY " + EntityUtil.md5(obj));
        System.out.println("##############NEW ENTITY " + EntityUtil.md5(newEntity));

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.