public HashJoinIteration(EvaluationStrategy strategy, Join join, BindingSet bindings) throws QueryEvaluationException { this(strategy, join.getLeftArg(), join.getRightArg(), bindings, false); }
public HashJoinIteration(EvaluationStrategy strategy, Join join, BindingSet bindings) throws QueryEvaluationException { this(strategy, join.getLeftArg(), join.getRightArg(), bindings, false); }
public Set<String> getBindingNames() { Set<String> bindingNames = new LinkedHashSet<String>(16); bindingNames.addAll(getLeftArg().getBindingNames()); bindingNames.addAll(getRightArg().getBindingNames()); return bindingNames; }
public Set<String> getAssuredBindingNames() { Set<String> bindingNames = new LinkedHashSet<String>(16); bindingNames.addAll(getLeftArg().getAssuredBindingNames()); bindingNames.addAll(getRightArg().getAssuredBindingNames()); return bindingNames; }
@Override public Set<String> getAssuredBindingNames() { Set<String> bindingNames = new LinkedHashSet<>(16); bindingNames.addAll(getLeftArg().getAssuredBindingNames()); bindingNames.addAll(getRightArg().getAssuredBindingNames()); return bindingNames; }
public void meet(Join theJoin) throws Exception { binaryOpMeet(theJoin, theJoin.getLeftArg(), theJoin.getRightArg()); }
public void meet(Join theJoin) throws Exception { binaryOpMeet(theJoin, theJoin.getLeftArg(), theJoin.getRightArg()); }
@Override public void meet(Join theJoin) throws Exception { binaryOpMeet(theJoin, theJoin.getLeftArg(), theJoin.getRightArg()); }
protected <L extends List<TupleExpr>> L getJoinArgs(TupleExpr tupleExpr, L joinArgs) { if (tupleExpr instanceof Join) { Join join = (Join)tupleExpr; getJoinArgs(join.getLeftArg(), joinArgs); getJoinArgs(join.getRightArg(), joinArgs); } else { joinArgs.add(tupleExpr); } return joinArgs; }
protected <L extends List<TupleExpr>> L getJoinArgs(TupleExpr tupleExpr, L joinArgs) { if (tupleExpr instanceof Join) { Join join = (Join)tupleExpr; getJoinArgs(join.getLeftArg(), joinArgs); getJoinArgs(join.getRightArg(), joinArgs); } else { joinArgs.add(tupleExpr); } return joinArgs; }
public BottomUpJoinIterator(EvaluationStrategy strategy, Join join, BindingSet bindings) throws QueryEvaluationException { leftIter = strategy.evaluate(join.getLeftArg(), bindings); rightIter = strategy.evaluate(join.getRightArg(), bindings); joinAttributes = join.getLeftArg().getBindingNames(); joinAttributes.retainAll(join.getRightArg().getBindingNames()); hashTable = null; }
public BottomUpJoinIterator(EvaluationStrategy strategy, Join join, BindingSet bindings) throws QueryEvaluationException { leftIter = strategy.evaluate(join.getLeftArg(), bindings); rightIter = strategy.evaluate(join.getRightArg(), bindings); joinAttributes = join.getLeftArg().getBindingNames(); joinAttributes.retainAll(join.getRightArg().getBindingNames()); hashTable = null; }
@Override public void meet(Join node) { node.getLeftArg().visit(this); double leftArgCost = this.cardinality; node.getRightArg().visit(this); cardinality *= leftArgCost; }
/** * @inheritDoc */ @Override public void meet(Join theJoin) throws Exception { theJoin.getLeftArg().visit(this); theJoin.getRightArg().visit(this); }
@Override public void meet(Join node) { node.getLeftArg().visit(this); double leftArgCost = this.cardinality; node.getRightArg().visit(this); cardinality *= leftArgCost; }
/** * @inheritDoc */ @Override public void meet(Join theJoin) throws Exception { theJoin.getLeftArg().visit(this); theJoin.getRightArg().visit(this); }
/** * @inheritDoc */ @Override public void meet(Join theJoin) throws Exception { theJoin.getLeftArg().visit(this); theJoin.getRightArg().visit(this); }
/** * @inheritDoc */ @Override public void meet(Join theJoin) throws Exception { ctxOpen(theJoin); theJoin.getLeftArg().visit(this); theJoin.getRightArg().visit(this); ctxClose(theJoin); }
/** * @inheritDoc */ @Override public void meet(Join theJoin) throws Exception { ctxOpen(theJoin); theJoin.getLeftArg().visit(this); theJoin.getRightArg().visit(this); ctxClose(theJoin); }
/** * @inheritDoc */ @Override public void meet(Join theJoin) throws Exception { ctxOpen(theJoin); theJoin.getLeftArg().visit(this); theJoin.getRightArg().visit(this); ctxClose(theJoin); }