Package lupos.distributed.query.operator

Examples of lupos.distributed.query.operator.QueryClientIndices


    super.prepareInputData(defaultGraphs, namedGraphs);
    this.dataset = new Dataset(defaultGraphs, namedGraphs, this.type,
        this.getMaterializeOntology(), this.opt, new Dataset.IndicesFactory() {
      @Override
      public Indices createIndices(final URILiteral uriLiteral) {
        return new QueryClientIndices(uriLiteral, QueryClient.this.storage);
      }

      @Override
      public lupos.engine.operators.index.Root createRoot() {
        return QueryClient.this.createRoot();
View Full Code Here


    super.prepareInputDataWithSourcesOfNamedGraphs(defaultGraphs, namedGraphs);
    this.dataset = new Dataset(defaultGraphs, namedGraphs,
        this.getMaterializeOntology(), this.type, this.opt, new Dataset.IndicesFactory() {
      @Override
      public Indices createIndices(final URILiteral uriLiteral) {
        return new QueryClientIndices(uriLiteral, QueryClient.this.storage);
      }

      @Override
      public lupos.engine.operators.index.Root createRoot() {
        return QueryClient.this.createRoot();
View Full Code Here

  }

  @Override
  public QueryResult join(final Indices indices, final Bindings bindings) {
    // a fetch as needed distributed join strategy is implemented
    final QueryClientIndices queryClientIndices = (QueryClientIndices) indices;
    QueryResult result = QueryResult.createInstance();
    result.add(bindings);

    for (final TriplePattern pattern : this.triplePatterns) {
      final QueryResult iResult = result;
      result = QueryResult.createInstance();

      for(final Bindings b: iResult){
        final TriplePattern tpWithReplacedVariables = this.determineTriplePatternToEvaluate(pattern, b);
        final QueryResult resultOfTP = queryClientIndices.evaluateTriplePattern(tpWithReplacedVariables);
        if(resultOfTP!=null){
          result.addAll(this.addBindings(b, resultOfTP));
        }
      }
    }
View Full Code Here

TOP

Related Classes of lupos.distributed.query.operator.QueryClientIndices

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.