Package org.jrdf.query.relation.operation

Examples of org.jrdf.query.relation.operation.Union


            multiSortMergeJoin);
        TupleEngine unionTupleEngine = new OuterUnionEngine(RELATION_HELPER);
        NadicJoin join = new NadicJoinImpl(RELATION_PROCESSOR, optJoinTupleEngine);
        BooleanEvaluator evaluator = new BooleanEvaluatorImpl(NODE_COMPARATOR);
        Restrict restrict = new RestrictImpl(RELATION_FACTORY, TUPLE_COMPARATOR, evaluator);
        Union union = new OuterUnionImpl(RELATION_PROCESSOR, unionTupleEngine);
        DyadicJoin leftOuterJoin = getLeftOuterJoin(unionTupleEngine, join);
        return new OptimizingQueryEngineImpl(project, join, restrict, union, leftOuterJoin);
    }
View Full Code Here


        return new OptimizingQueryEngineImpl(project, join, restrict, union, leftOuterJoin);
    }

    private DyadicJoin getLeftOuterJoin(TupleEngine unionTupleEngine, NadicJoin join) {
        SubsumptionEngine subsumptionEngine = new SubsumptionEngine(TUPLE_FACTORY, RELATION_HELPER);
        Union minUnion = new MinimumUnionImpl(RELATION_PROCESSOR, unionTupleEngine, subsumptionEngine);
        return new MinimumUnionLeftOuterJoinImpl(join, minUnion);
    }
View Full Code Here

TOP

Related Classes of org.jrdf.query.relation.operation.Union

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.