Package ra

Examples of ra.Result


     * @throws FormulaParseException
     * @throws RuntimeException
     */
    public void givenFormula(Term formula) {
        checkState(! evaluated);
        Result result = formula.execute();
        try {
          eff.addResult(result, ExcelFileFormulas.QUIET_LAYOUT);
        } catch (IOException exc) {
          throw new RuntimeException(exc);
        }
        this.resultRelation = result.getResultRelation();
    }
View Full Code Here


    }

    @Override
    public Result execute() {
        RelationDummyOperator oper = new RelationDummyOperator(Utils.getCaf(), relation);
        Result r = new Result(oper);
        storeResult(r);
        return r;
    }
View Full Code Here

        return s.substring(0, s.length()-1)+","+sortOverIndex+")";
    }

    @Override
    public Result execute() {
        Result inResult = getInputTerm().execute();
        SortingDescendingOperator oper = new SortingDescendingOperator(Utils.getCaf(), inResult.getResultRelation(), sortOverIndex);
        inResult.extend(oper);
        storeResult(inResult);
        return inResult;
    }
View Full Code Here

        return sb.toString();
    }

    @Override
    public Result execute() {
        Result inResult = getInputTerm().execute();
        AggregationExtender[] extenders = new AggregationExtender[extenderTerms.size()];
        for (int i = 0; i < extenders.length; i++) {
            extenders[i] = extenderTerms.get(i).getOperatorExtender(Utils.getCaf());
        }
        AggregationOperator oper;
        if (groupIndexes.length != 0)
            oper = new AggregationOperator(Utils.getCaf(), inResult.getResultRelation(), groupIndexes, extenders);
        else
            oper = new AggregationOperator(Utils.getCaf(), inResult.getResultRelation(), extenders);
        inResult.extend(oper);
        storeResult(inResult);
        return inResult;
    }
View Full Code Here

        super(input1, input2);
    }

    @Override
    public Result execute() {
        Result inResult1 = getInputTerm1().execute();
        Result inResult2 = getInputTerm2().execute();
        CartesianProductOperator oper = new CartesianProductOperator(Utils.getCaf(), inResult1.getResultRelation(), inResult2.getResultRelation());
        inResult1.extend(inResult2);
        inResult1.extend(oper);
        storeResult(inResult1);
        return inResult1;
    }
View Full Code Here

        return Collections.unmodifiableList(Ints.asList(indexesToProjectOn));
    }

    @Override
    public Result execute() {
        Result inResult = getInputTerm().execute();
        ProjectionOperator oper = new ProjectionOperator(Utils.getCaf(), inResult.getResultRelation(), indexesToProjectOn);
        inResult.extend(oper);
        storeResult(inResult);
        return inResult;
    }
View Full Code Here

        this.sortOverIndex = sortingColIndexInInput;
    }

    @Override
    public Result execute() {
        Result inResult = getInputTerm().execute();
        SortingAscendingOperator oper = new SortingAscendingOperator(Utils.getCaf(), inResult.getResultRelation(), sortOverIndex);
        inResult.extend(oper);
        storeResult(inResult);
        return inResult;
    }
View Full Code Here

        this.predicates = predicates;
    }

    @Override
    public Result execute() {
        Result inResult = getInputTerm().execute();
        SelectOperator oper = new SelectOperator(Utils.getCaf(), inResult.getResultRelation(), predicates);
        inResult.extend(oper);
        storeResult(inResult);
        return inResult;
    }
View Full Code Here

        this.index2 = index2;
    }

    @Override
    public Result execute() {
        Result inResult1 = getInputTerm1().execute();
        Result inResult2 = getInputTerm2().execute();
        EqualityJoinOperator oper = new EqualityJoinOperator(Utils.getCaf(), inResult1.getResultRelation(), index1, inResult2.getResultRelation(), index2);
        inResult1.extend(inResult2);
        inResult1.extend(oper);
        storeResult(inResult1);
        return inResult1;
    }
View Full Code Here

        this.predicate = predicate;
    }

    @Override
    public Result execute() {
        Result inResult1 = getInputTerm1().execute();
        Result inResult2 = getInputTerm2().execute();
        GeneralJoinOperator oper = new GeneralJoinOperator(Utils.getCaf(), inResult1.getResultRelation(), inResult2.getResultRelation(), predicate);
        inResult1.extend(inResult2);
        inResult1.extend(oper);
        storeResult(inResult1);
        return inResult1;
    }
View Full Code Here

TOP

Related Classes of ra.Result

Copyright © 2018 www.massapicom. 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.