Package plan_runner.predicates

Examples of plan_runner.predicates.Predicate


  }

  @Override
  public void visit(BetweenPredicate between) {
    // In between there is only an and predicate
    final Predicate p = (Predicate) between.getInnerPredicates().get(0);
    visit(p);
  }
View Full Code Here


  }

  @Override
  public void visit(BetweenPredicate between) {
    // In between there is only an and predicate
    final Predicate p = (Predicate) between.getInnerPredicates().get(0);
    visit(p);
  }
View Full Code Here

    // ignored because of topDown - makes no harm
  }

  @Override
  public void visit(SelectOperator selection) {
    final Predicate predicate = selection.getPredicate();
    final VECollectPredVisitor vecpv = new VECollectPredVisitor();
    predicate.accept(vecpv);
    _beforeProjection.addAll(vecpv.getExpressions());
    _veList.addAll(vecpv.getExpressions());
  }
View Full Code Here

  @Override
  public void visit(AndExpression ae) {
    visitBinaryOperation(ae);

    final Predicate right = _predStack.pop();
    final Predicate left = _predStack.pop();

    final Predicate and = new AndPredicate(left, right);
    _predStack.push(and);
  }
View Full Code Here

  @Override
  public void visit(OrExpression oe) {
    visitBinaryOperation(oe);

    final Predicate right = _predStack.pop();
    final Predicate left = _predStack.pop();

    final Predicate or = new OrPredicate(left, right);
    _predStack.push(or);
  }
View Full Code Here

    finalB = combine(null, 0, finalB);

    final ValueExpression withVariable = new Multiplication<Double>(finalA, Variable[1]);
    final ValueExpression finalRightPart = new Addition<Double>(withVariable, finalB);

    Predicate finalPred;
    if (Parameter[0].isNegative())
      finalPred = new ComparisonPredicate(compToAnalyse.getOperator(true), Variable[0],
          finalRightPart);
    else
      finalPred = new ComparisonPredicate(compToAnalyse.getOperator(false), Variable[0],
View Full Code Here

    final List<ValueExpression> followUps = compPred.getExpressions();

    final ValueExpression left = changeToDouble(followUps.get(0));
    final ValueExpression right = changeToDouble(followUps.get(1));

    final Predicate finalPred = new ComparisonPredicate<Double>(compPred.getOperator(false),
        left, right);
    return finalPred;
  }
View Full Code Here

TOP

Related Classes of plan_runner.predicates.Predicate

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.