Class MemStatementIterator<X extends Exception>

All Implemented Interfaces:
AutoCloseable, CloseableIteration<MemStatement,X>, Iteration<MemStatement,X>

public class MemStatementIterator<X extends Exception> extends LookAheadIteration<MemStatement,X>
A StatementIterator that can iterate over a list of Statement objects. This iterator compares Resource and Literal objects using the '==' operator, which is possible thanks to the extensive sharing of these objects in the MemoryStore.
  • Constructor Details

    • MemStatementIterator

      public MemStatementIterator(MemStatementList statementList, MemResource subject, MemIRI predicate, MemValue object, Boolean explicit, int snapshot, MemResource... contexts)
      Creates a new MemStatementIterator that will iterate over the statements contained in the supplied MemStatementList searching for statements that match the specified pattern of subject, predicate, object and context(s).
      statementList - the statements over which to iterate.
      subject - subject of pattern.
      predicate - predicate of pattern.
      object - object of pattern.
      contexts - context(s) of pattern.
  • Method Details