Examples of aggregate()


Examples of org.apache.maven.surefire.suite.RunResult.aggregate()

        NestedCheckedException firstForkException = null;
        for ( ProviderInfo provider : providers )
        {
            try
            {
                current = current.aggregate( executeProvider( provider, scanResult ) );
            }
            catch ( SurefireBooterForkException e )
            {
                if ( firstForkException == null )
                {
View Full Code Here

Examples of org.apache.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 org.apache.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 org.apache.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 org.apache.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 org.apache.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 org.codehaus.enunciate.contract.validation.ValidationResult.aggregate()

    ValidationResult result = super.validateEndpointInterface(ei);
    TreeSet<WebFault> unvisitedFaults = new TreeSet<WebFault>(new TypeDeclarationComparator());
    for (WebMethod webMethod : ei.getWebMethods()) {
      for (WebMessage webMessage : webMethod.getMessages()) {
        if (webMessage instanceof RequestWrapper) {
          result.aggregate(validateRequestWrapper((RequestWrapper) webMessage, jaxwsBeans));
        }
        else if (webMessage instanceof ResponseWrapper) {
          result.aggregate(validateResponseWrapper((ResponseWrapper) webMessage, jaxwsBeans));
        }
        else if (webMessage instanceof WebFault) {
View Full Code Here

Examples of org.dashbuilder.dataset.group.AggregateFunction.aggregate()

    List listOfStrings = Arrays.asList("A", "B", "C", "A", "B");

    @Test
    public void testSumFunction() throws Exception {
        AggregateFunction sf = aggregateFunctionManager.getFunctionByCode(SumFunction.CODE);
        double result = sf.aggregate(listOfNumbers);
        assertThat(result).isEqualTo(15);
    }

    @Test
    public void testAvgFunction() throws Exception {
View Full Code Here

Examples of org.elasticsearch.hadoop.rest.stats.Stats.aggregate()

                }

            } finally {
                Stats stats = new Stats();
                if (client != null) {
                    stats.aggregate(client.stats());
                    client = null;
                }
                if (scrollQuery != null) {
                    stats.aggregate(scrollQuery.stats());
                    scrollQuery = null;
View Full Code Here

Examples of org.elasticsearch.hadoop.rest.stats.Stats.aggregate()

                if (client != null) {
                    stats.aggregate(client.stats());
                    client = null;
                }
                if (scrollQuery != null) {
                    stats.aggregate(scrollQuery.stats());
                    scrollQuery = null;
                }
                ReportingUtils.report(progressable, stats);
            }
        }
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.