Examples of Aggregator


Examples of ar.Aggregator

    } catch (NoSuchFieldException | NullPointerException | SecurityException e) {
      throw new IllegalArgumentException("Could not find -config indicated: " + config);
    }

   
    Aggregator aggregator = source.defaultAggregator.aggregator();
    Glyphset glyphs = source.glyphset;
    Transfer transfer = OptionTransfer.toTransfer(source.defaultTransfers, null);
 
   
    Renderer render;
View Full Code Here

Examples of cascading.operation.Aggregator

    pipeline = new GroupBy(pipeline, new Fields("resource"));

    // For every Tuple group
    // count the number of occurrences of "word" and store result in
    // a field named "count"
    Aggregator count = new Count(new Fields("resource"));
    pipeline = new Every(pipeline, count);


    // create a SINK tap to write to the default filesystem
    // by default, TextLine writes all fields out
View Full Code Here

Examples of com.asakusafw.dmdl.thundergate.model.Aggregator

                    "プロパティが追加されていません ({0})",
                    getReference()));
        }
        List<ModelProperty> properties = Lists.create();
        for (Column column : columns) {
            Aggregator aggregator = column.aggregator;
            Source source = column.source;
            if (aggregator == Aggregator.IDENT
                    && groupProperties.contains(source) == false) {
                throw new IllegalStateException(MessageFormat.format(
                        "プロパティ \"{0}.{1}\" は集約関数かグループ化のキーとして指定する必要があります ({2})",
View Full Code Here

Examples of com.asakusafw.modelgen.model.Aggregator

                f.newThis(),
                common.getFieldNameOf(property.getName(), property.getType()));
        Expression other = f.newFieldAccessExpression(
                f.newSimpleName(parameterName),
                common.getFieldNameOf(property.getName(), property.getType()));
        Aggregator aggregator = source.getAggregator();
        switch (aggregator) {
        case MAX:
        case MIN:
            return new ExpressionBuilder(f, self)
                .method(aggregator.name().toLowerCase(), other)
                .toStatement();
        case SUM:
        case COUNT:
            return new ExpressionBuilder(f, self)
                .method(Constants.NAME_OPTION_ADDER, other)
View Full Code Here

Examples of com.asakusafw.modelgen.model.Aggregator

                    "プロパティが追加されていません ({0})",
                    getReference()));
        }
        List<ModelProperty> properties = new ArrayList<ModelProperty>();
        for (Column column : columns) {
            Aggregator aggregator = column.aggregator;
            Source source = column.source;
            if (aggregator == Aggregator.IDENT
                    && groupProperties.contains(source) == false) {
                throw new IllegalStateException(MessageFormat.format(
                        "プロパティ \"{0}.{1}\" は集約関数かグループ化のキーとして指定する必要があります ({2})",
View Full Code Here

Examples of com.facebook.presto.operator.AggregationOperator.Aggregator

        assertEquals(estimateCountPartial(values, field), expectedCount);
    }

    private long estimateCount(List<Object> values, int field)
    {
        Aggregator aggregator = createAggregator(aggregation(getAggregationFunction(), new Input(0, field)), AggregationNode.Step.SINGLE);

        if (!values.isEmpty()) {
            BlockCursor cursor = createBlock(values, field + 1).cursor();
            while (cursor.advanceNextPosition()) {
                aggregator.addValue(cursor);
            }
        }

        return (long) BlockAssertions.toValues(aggregator.getResult()).get(0).get(0);
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.expr.aggregate.Aggregator

           
            //And the aggregators...
            aggs2 = new ArrayList<ExprAggregator>() ;
            for ( ExprAggregator agg : aggs )
            {
                Aggregator aggregator = agg.getAggregator() ;
                Var v = agg.getVar() ;
               
                // Variable associated with the aggregate
                Expr eVar = agg.getAggVar() ;   // Not .getExprVar()
                Expr eVar2 = ExprTransformer.transform(exprTransform, eVar) ;
                if ( eVar != eVar2 )
                    changed = true ;

                // The Aggregator expression
                Expr e = aggregator.getExpr() ;
                Expr e2 = e ;
                if ( e != null )    // Null means "no relevant expression" e.g. COUNT(*)
                    ExprTransformer.transform(exprTransform, e) ;
                if ( e != e2 )
                    changed = true ;
                Aggregator a2 = aggregator.copy(e2) ;
                aggs2.add(new ExprAggregator(eVar2.asVar(), a2)) ;
            }

            OpGroup opGroup2 = opGroup ;
            if ( changed )
View Full Code Here

Examples of com.hp.hpl.jena.sparql.expr.aggregate.Aggregator

   
    @Override
    public ExprAggregator copySubstitute(Binding binding)
    {
        Var v = var ;
        Aggregator agg = aggregator ;
        return new ExprAggregator(v, agg) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.expr.aggregate.Aggregator

            Log.warn(this, "Attempt to convert an aggregation variable to a non-variable: ignored") ;
            node = var ;
        }
       
        Var v = (Var)node ;
        Aggregator agg = aggregator.copyTransform(transform) ;
        return new ExprAggregator(Var.alloc(node), agg) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.expr.aggregate.Aggregator

           
            //And the aggregators...
            aggs2 = new ArrayList<ExprAggregator>() ;
            for ( ExprAggregator agg : aggs )
            {
                Aggregator aggregator = agg.getAggregator() ;
                Var v = agg.getVar() ;
               
                // Variable associated with the aggregate
                Expr eVar = agg.getAggVar() ;   // Not .getExprVar()
                Expr eVar2 = transform(eVar, exprTransform) ;
                if ( eVar != eVar2 )
                    changed = true ;

                // The Aggregator expression
                Expr e = aggregator.getExpr() ;
                Expr e2 = e ;
                if ( e != null )    // Null means "no relevant expression" e.g. COUNT(*)
                    e2 = transform(e, exprTransform) ;
                if ( e != e2 )
                    changed = true ;
                Aggregator a2 = aggregator.copy(e2) ;
                aggs2.add(new ExprAggregator(eVar2.asVar(), a2)) ;
            }

            OpGroup opGroup2 = opGroup ;
            if ( changed )
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.