Examples of aggregate()


Examples of com.puppetlabs.geppetto.junitresult.util.JunitresultAggregator.aggregate()

  }

  public void test_aggregatorSampleTest() throws IOException, TransformerException, ParserConfigurationException {
    JunitresultAggregator aggregator = new JunitresultAggregator();
    File root = TestDataProvider.getTestFile(new Path("testData/allresults/"));
    JunitResult result = aggregator.aggregate(root, root);
    assertTrue(result instanceof Testsuites);
    Testsuites testsuite = (Testsuites) result;
    assertEquals("allresults", testsuite.getName());
    assertEquals(1, testsuite.getErrors());
    assertEquals(13, testsuite.getTests());
View Full Code Here

Examples of com.salesforce.phoenix.expression.aggregator.Aggregator.aggregate()

        return newServerAggregator(null);
    }

    public Aggregator newServerAggregator(Configuration config, ImmutableBytesWritable ptr) {
        Aggregator agg = newServerAggregator(config);
        agg.aggregate(null, ptr);
        return agg;
    }
   
    public void readFields(DataInput input, Configuration conf) throws IOException {
        super.readFields(input);
View Full Code Here

Examples of com.salesforce.phoenix.expression.aggregator.Aggregators.aggregate()

                    } catch (ConstraintViolationException e) {
                        // Log and ignore in count
                        logger.error("Failed to create row in " + region.getRegionNameAsString() + " with values " + SchemaUtil.toString(values), e);
                        continue;
                    }
                    aggregators.aggregate(rowAggregators, result);
                    hasAny = true;
                }
            } while (hasMore);
        } finally {
            innerScanner.close();
View Full Code Here

Examples of com.salesforce.phoenix.expression.aggregator.DistinctCountClientAggregator.aggregate()

    }

    @Override
    public Aggregator newServerAggregator(Configuration config, ImmutableBytesWritable ptr) {
        DistinctCountClientAggregator clientAgg = newClientAggregator();
        clientAgg.aggregate(null, ptr);
        return new DistinctValueWithCountServerAggregator(config, clientAgg);
    }
}
View Full Code Here

Examples of com.salesforce.phoenix.expression.aggregator.DistinctValueWithCountClientAggregator.aggregate()

    abstract public DistinctValueWithCountClientAggregator newClientAggregator();
   
    @Override
    public Aggregator newServerAggregator(Configuration config, ImmutableBytesWritable ptr) {
        DistinctValueWithCountClientAggregator clientAgg = newClientAggregator();
        clientAgg.aggregate(null, ptr);
        return new DistinctValueWithCountServerAggregator(config, clientAgg);
    }
}
View Full Code Here

Examples of com.salesforce.phoenix.expression.aggregator.LongSumAggregator.aggregate()

    }

    @Override
    public Aggregator newServerAggregator(Configuration config, ImmutableBytesWritable ptr) {
        LongSumAggregator sumAgg = newClientAggregator();
        sumAgg.aggregate(null, ptr);
        return new CountAggregator(sumAgg);
    }
}
View Full Code Here

Examples of com.tangosol.net.NamedCache.aggregate()

    NamedCache cache = Utility.getCache(Constants.SHIPMENT_CACHE);
    LikeFilter likeCity = new LikeFilter("getToAddress.getCity", (String) model.getSelectedItem());
    GreaterEqualsFilter greaterEqualParcel = new GreaterEqualsFilter("getParcels.size"
        , (Integer) parcelCount.getValue());
    AndFilter andFilter = new AndFilter(likeCity, greaterEqualParcel);
    Map<String, Object> result = (Map<String, Object>) cache.aggregate(andFilter, new CalculateWeightAggregrator());
    resultArea.append("Total entries processed: "+result.get(Constants.TOTAL_ENTRY)+Constants.NEWLINE);
    resultArea.append("Total weight: "+result.get(Constants.TOTAL_WEIGHT));
  }

  /**
 
View Full Code Here

Examples of io.druid.query.aggregation.CountAggregator.aggregate()

  @Test
  public void testCompute()
  {
    ArithmeticPostAggregator arithmeticPostAggregator;
    CountAggregator agg = new CountAggregator("rows");
    agg.aggregate();
    agg.aggregate();
    agg.aggregate();
    Map<String, Object> metricValues = new HashMap<String, Object>();
    metricValues.put(agg.getName(), agg.get());
View Full Code Here

Examples of nz.co.abrahams.asithappens.storage.DataSet.aggregate()

                    intervalTime = ( finishTime - startTime ) / fetchedMaximum;
                    for ( int interval = 0; interval < fetchedMaximum; interval++ ) {
                        intervalStart = startTime + intervalTime * interval;
                        intervalEnd = startTime + intervalTime * (interval + 1);
                        results = dataSetDAO.retrieve(sessionID, set, intervalStart, intervalEnd);
                        dataSets.getDataSet(set).add(results.aggregate(aggregation, intervalStart, intervalEnd));
                        taskProgress = set * fetchedMaximum + interval;
                        checkCancelled();
                        //logger.debug("Point " + interval + " aggregation of " + results + " : (" + results.aggregate(aggregation, intervalStart, intervalEnd) + ")");
                    }
                }
View Full Code Here

Examples of org.apache.accumulo.core.iterators.aggregation.NumArraySummation.aggregate()

      NumArraySummation nas = new NumArraySummation();
      long[] la = {1l, 2l, 3l};
      nas.collect(new Value(NumArraySummation.longArrayToBytes(la)));
      long[] la2 = {3l, 2l, 1l, 0l};
      nas.collect(new Value(NumArraySummation.longArrayToBytes(la2)));
      la = NumArraySummation.bytesToLongArray(nas.aggregate().get());
      assertTrue(la.length == 4);
      for (int i = 0; i < la.length - 1; i++) {
        assertTrue(la[i] == 4);
      }
      assertTrue(la[la.length - 1] == 0);
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.