Package ra

Examples of ra.Result.extend()


    @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


        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;
    }

    public AggregT min(int... index) {
View Full Code Here

    @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

    @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

    @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

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

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

    @Override
    public Result execute() {
        Result inResult = getInputTerm().execute();
        StandarizationOperator oper = new StandarizationOperator(Utils.getCaf(), inResult.getResultRelation());
        inResult.extend(oper);
        storeResult(inResult);
        return inResult;
   
   
}
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.