Examples of oneTimeIterator()


Examples of lupos.datastructures.queryresult.QueryResult.oneTimeIterator()

            fromLeft = null;
          }
        }
        if(fromLeft!=null){
          result = new ImmutableIterator<Bindings>(){
            final Iterator<Bindings> it = fromLeft.oneTimeIterator();
            Bindings next = null;
            @Override
            public boolean hasNext() {
              if(this.next!=null){
                return true;
View Full Code Here

Examples of lupos.datastructures.queryresult.QueryResult.oneTimeIterator()

        // now another result is available
        while (!this.resultList.isEmpty()) {
          // take the first element
          final QueryResult res = this.resultList.remove(0);
          if (res != null) {
            this.currentIter = res.oneTimeIterator();
            if (this.currentIter.hasNext()) {
              return true;
            }
          }
        }
View Full Code Here

Examples of lupos.datastructures.queryresult.QueryResult.oneTimeIterator()

            final QueryResult qr = this.join(this.root.dataset);
            if (qr == null) {
              this.setTriplePatterns(ztp);
              return true;
            }
            final Iterator<Bindings> itb = qr.oneTimeIterator();
            try {
              while (itb.hasNext()) {
                final Bindings b = itb.next();
                Literal literal = b.get(var);
                if (literal.originalStringDiffers()){
View Full Code Here

Examples of lupos.datastructures.queryresult.QueryResult.oneTimeIterator()

    if (classBindings == BindingsArrayVarMinMax.class) {
      final Map<Variable, Integer> hmvi = this.bindingsFactory.getPosVariables();
      final Integer[] minArray = new Integer[hmvi.size()];
      final Integer[] maxArray = new Integer[hmvi.size()];

      final Iterator<Bindings> itbSize = qrSize.oneTimeIterator();
      while (itbSize.hasNext()) {
        final Bindings b = itbSize.next();
        for (final Variable v : b.getVariableSet()) {
          final LazyLiteral ll = (LazyLiteral) b.get(v);
          final int pos = hmvi.get(v);
View Full Code Here

Examples of lupos.datastructures.queryresult.QueryResult.oneTimeIterator()

              @Override
              public int compare(final Bindings arg0, final Bindings arg1) {
                return arg0.get(v).compareToNotNecessarilySPARQLSpecificationConform(arg1.get(v));
              }
            }, Bindings.class);
        final Iterator<Bindings> itb = qr.oneTimeIterator();
        while (itb.hasNext()) {
          sort.add(itb.next());
        }
        qr = QueryResult.createInstance(sort.iterator());
      }
View Full Code Here

Examples of lupos.datastructures.queryresult.QueryResult.oneTimeIterator()

      if (size == 0) {
        qr.release();
        return result;
      }
      final double bucketSize = (double) size / MaxNumberBuckets;
      final Iterator<Bindings> ib = qr.oneTimeIterator();
      final VarBucket vb = new VarBucket();
      vb.minimum = minima.get(v);
      vb.maximum = maxima.get(v);
      Entry currentEntry = new Entry();
      Literal lastLiteral = null;
View Full Code Here

Examples of lupos.datastructures.queryresult.QueryResult.oneTimeIterator()

            public void close() {
              // nothing to do...
            }           
          };
        } else {
          return new AddConstantBindingParallelIterator(currentBindings, queryResult.oneTimeIterator());
        }
      }

      @Override
      public void remove() {
View Full Code Here

Examples of lupos.datastructures.queryresult.QueryResult.oneTimeIterator()

          if(deltaIndex==null){
            // initialize the delta index if it is not already there
            deltaIndex = new HashSet<Triple>();
          }
          // iterate through the solution and its query triples
          final Iterator<Bindings> itBindings = queryResult.oneTimeIterator();
          while(itBindings.hasNext()){
            final Bindings bindings = itBindings.next();
            for(final Triple triple: bindings.getTriples()){
              // Add the triple to the delta index and check if it is already in the delta index at the same time!
              // (Previously sent triples are eliminated as well as duplicates within the query triples of the same query result.)
View Full Code Here

Examples of lupos.datastructures.queryresult.QueryResult.oneTimeIterator()

        }
      }
    }
    final QueryResult finalQueryResult = queryResultParameter;
    final Iterator<Bindings> resultIterator = new ImmutableIterator<Bindings>() {
      final Iterator<Bindings> bindIt = finalQueryResult.oneTimeIterator();

      Bindings next = this.computeNext();

      @Override
      public boolean hasNext() {
View Full Code Here

Examples of lupos.datastructures.queryresult.QueryResult.oneTimeIterator()

    final QueryResult qr = this.join(this.root.dataset);
    if (qr == null) {
      this.setTriplePatterns(ztp);
      return null;
    }
    final Iterator<Bindings> itb = qr.oneTimeIterator();
    if (!itb.hasNext()) {
      this.setTriplePatterns(ztp);
      return null;
    }
    final Literal min = itb.next().get(v);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.