Examples of RecordIterator


Examples of uk.ac.open.kmi.smartproducts.sesame.sail.btree.RecordIterator

      long size = 0L;

      for (int contextID : contextIDs) {
        // Iterate over all explicit statements
        RecordIterator iter = nativeStore.getTripleStore().getTriples(-1, -1, -1, contextID, true,
            transactionActive());
        try {
          while (iter.next() != null) {
            size++;
          }
        }
        finally {
          iter.close();
        }
      }

      return size;
    }
View Full Code Here

Examples of uk.ac.open.kmi.smartproducts.sesame.sail.btree.RecordIterator

        List<Statement> removedStatements = Collections.emptyList();

        if (hasConnectionListeners()) {
          // We need to iterate over all matching triples so that they can
          // be reported
          RecordIterator btreeIter = tripleStore.getTriples(subjID, predID, objID, contextID, explicit,
              true);

          NativeStatementIterator iter = new NativeStatementIterator(btreeIter, valueStore);

          removedStatements = Iterations.asList(iter);
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.