Package lupos.rif.operator

Examples of lupos.rif.operator.PredicatePattern


      final List<Item> predItems = new ArrayList<Item>();
      for (final IExpression expr : pred.termParams) {
        final Item item = (Item) expr.accept(this, null);
        predItems.add(item);
      }
      return new PredicatePattern(predName, predItems.toArray(new Item[] {}));
    }
  }
View Full Code Here


            params.add(item);
          }
          final Item[] paramsArray = params.toArray(new Item[] {});
          generate.addPattern(name, paramsArray);
          // Produzenten registrieren
          this.add(this.tripleProducer, new KeyPredicatePattern(new PredicatePattern(name, paramsArray)), generate);
        }
      }
      resultOps.add(generate);
    }
View Full Code Here

      final List<Item> predItems = new ArrayList<Item>();
      for (final IExpression expr : obj.termParams) {
        final Item item = (Item) expr.accept(this, arg);
        predItems.add(item);
      }
      return new PredicatePattern(predName, predItems.toArray(new Item[] {}));
    }
    return this.unitermToTriplePattern(obj);
  }
View Full Code Here

  @Override
  public Object visit(final RulePredicate obj, final Object arg) throws RIFException {
    final BasicOperator zpattern = this.generatePattern(obj, arg);
    if (zpattern instanceof PredicatePattern) {
      final PredicatePattern predPat = (PredicatePattern) zpattern;
      if (this.predicateIndex == null) {
        this.predicateIndex = new PredicateIndexScan();
        this.indexScanCreator.getRoot().addSucceedingOperator(new OperatorIDTuple(this.predicateIndex, this.indexScanCreator.getRoot().getSucceedingOperators().size()));
        this.predicateIndex.addPrecedingOperator(this.indexScanCreator.getRoot());
      }
      this.predicateIndex.addSucceedingOperator(new OperatorIDTuple(predPat, this.predicateIndex.getSucceedingOperators().size()));
      predPat.addPrecedingOperator(this.predicateIndex);
      if(arg!=null){
        predPat.setSucceedingOperator((OperatorIDTuple) arg);
        ((OperatorIDTuple) arg).getOperator().addPrecedingOperator(predPat);
      }
      // Pr�dikatkonsumenten anmelden
      this.add(this.tripleConsumer, new KeyPredicatePattern(predPat), predPat);
      return predPat;
View Full Code Here

          items[index] = ((current / bitValue) % 2 == 0)? KEY.dummyVariable : item;
          bitValue*=2;
        }
        index++;
      }
      return new KeyPredicatePattern(new PredicatePattern(this.predicatePattern.getPredicateName(), items));
    }
View Full Code Here

    // Pr�dikat
    final URILiteral name = (URILiteral) obj.termName.accept(this, null);
    final List<Item> items = new ArrayList<Item>();
    for (final IExpression expr : obj.termParams)
      items.add((Item) expr.accept(this, null));
    final PredicatePattern pattern = new PredicatePattern(name,
        items.toArray(new Item[] {}));
    if (arg instanceof BasicOperator) {
      // Regelk�rper, IndexScan erstellen
      final BindableIndexScan bindIndex = new BindablePredicateIndexScan(
          predicateIndex, pattern);
View Full Code Here

TOP

Related Classes of lupos.rif.operator.PredicatePattern

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.