Package lupos.rif.operator

Examples of lupos.rif.operator.RuleFilter


        final Set<RuleFilter> visited = new LinkedHashSet<RuleFilter>();
        while (i < predicates.size()) {
          if (!predicates.get(i).getExpression()
              .isPossibleAssignment()
              && !visited.contains(predicates.get(i))) {
            final RuleFilter temp = predicates.get(i);
            predicates.remove(temp);
            predicates.add(temp);
            visited.add(temp);
            continue;
          }
View Full Code Here


      final BasicOperator root = this.indexScanCreator.getRoot();
      this.booleanIndex = new BooleanIndexScan((root instanceof Root)? (Root) root : null);
      this.indexScanCreator.getRoot().addSucceedingOperator(new OperatorIDTuple(this.booleanIndex, 0));
      this.booleanIndex.addPrecedingOperator(this.indexScanCreator.getRoot());
    }
    RuleFilter filter = null;
    if (!this.usesEqualities || !(expr instanceof Equality)) {
      filter = new RuleFilter(expr, this.equalityMap);
    } else {
      filter = new EqualityFilter(expr, this.equalityMap);
      this.add(this.tripleConsumer, BuildOperatorGraphRuleVisitor.keyEquality, filter);
    }
    this.booleanIndex.addSucceedingOperator(filter);
    filter.addPrecedingOperator(this.booleanIndex);
    if(arg!=null){
      filter.setSucceedingOperator((OperatorIDTuple) arg);
      ((OperatorIDTuple) arg).getOperator().addPrecedingOperator(filter);
    }
    return filter;
  }
View Full Code Here

        Set<RuleFilter> visited = new HashSet<RuleFilter>();
        while (i < predicates.size()) {
          if (!predicates.get(i).getExpression()
              .isPossibleAssignment()
              && !visited.contains(predicates.get(i))) {
            RuleFilter temp = predicates.get(i);
            predicates.remove(temp);
            predicates.add(temp);
            visited.add(temp);
            continue;
          }
View Full Code Here

      return pattern;
  }

  @Override
  protected RuleFilter buildRuleFilter(IExpression expr, Object arg) {
    final RuleFilter filter = new RuleFilter(expr, null);
    ((BasicOperator) arg).addSucceedingOperator(filter);
    return filter;
  }
View Full Code Here

TOP

Related Classes of lupos.rif.operator.RuleFilter

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.