Examples of estimate()


Examples of org.apache.hadoop.hive.ql.metadata.InputEstimator.estimate()

      if (handler instanceof InputEstimator) {
        InputEstimator estimator = (InputEstimator) handler;
        TableDesc tableDesc = Utilities.getTableDesc(table);
        PlanUtils.configureInputJobPropertiesForStorageHandler(tableDesc);
        Utilities.copyTableJobPropertiesToConf(tableDesc, jobConf);
        return estimator.estimate(jobConf, scanOp, remaining).getTotalLength();
      }
      if (table.isNonNative()) {
        return 0; // nothing can be done
      }
      if (!table.isPartitioned()) {
View Full Code Here

Examples of org.apache.hadoop.hive.ql.metadata.InputEstimator.estimate()

                    TableScanOperator scanOp = (TableScanOperator) aliasToWork.get(alias);
                    Utilities.setColumnNameList(jobConf, scanOp, true);
                    Utilities.setColumnTypeList(jobConf, scanOp, true);
                    PlanUtils.configureInputJobPropertiesForStorageHandler(tableDesc);
                    Utilities.copyTableJobPropertiesToConf(tableDesc, jobConf);
                    total += estimator.estimate(myJobConf, scanOp, -1).getTotalLength();
                  }
                  resultMap.put(pathStr, new ContentSummary(total, -1, -1));
                }
                // todo: should nullify summary for non-native tables,
                // not to be selected as a mapjoin target
View Full Code Here

Examples of org.apache.hadoop.hive.ql.metadata.InputEstimator.estimate()

      if (handler instanceof InputEstimator) {
        InputEstimator estimator = (InputEstimator) handler;
        TableDesc tableDesc = Utilities.getTableDesc(table);
        PlanUtils.configureInputJobPropertiesForStorageHandler(tableDesc);
        Utilities.copyTableJobPropertiesToConf(tableDesc, jobConf);
        return estimator.estimate(jobConf, scanOp, remaining).getTotalLength();
      }
      if (table.isNonNative()) {
        return 0; // nothing can be done
      }
      if (!table.isPartitioned()) {
View Full Code Here

Examples of org.rhq.server.metrics.migrator.workers.RawDataMigrator.estimate()

        when(mockConfig.isRun1DAggregateDataMigration()).thenReturn(false);

        RawDataMigrator mockRawDataMigrator = mock(RawDataMigrator.class);
        PowerMockito.whenNew(RawDataMigrator.class).withArguments(eq(mockConfig)).thenReturn(mockRawDataMigrator);
        long estimateExpected = 1234L;
        when(mockRawDataMigrator.estimate()).thenReturn(estimateExpected);

        //create object to test and inject required dependencies
        DataMigrator objectUnderTest = new DataMigrator(mockEntityManager, mockCassandraSession, databaseType);

        //run code under test
View Full Code Here

Examples of stallone.api.stat.IParameterEstimator.estimate()

        IIntArray ci = cluster.getClusterIndexes();
        IDoubleArray[] res = new IDoubleArray[nstates];
        for (int state=0; state<nstates; state++)
        {
            IParameterEstimator estimator = Statistics.create.parameterEstimatorGaussian1D();
            res[state] = estimator.estimate(obscat, Cluster.util.membershipToState(cluster, state));
        }
        return res;
    }

    public IDoubleArray[] initialParametersGaussian(List<IDataSequence> _obs, int nstates)
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.