org.openrdf.sail.memory.model
Class MemStatementIterator<X extends Exception>

java.lang.Object
  extended by info.aduna.iteration.CloseableIterationBase<MemStatement,X>
      extended by org.openrdf.sail.memory.model.MemStatementIterator<X>
All Implemented Interfaces:
CloseableIteration<MemStatement,X>, Iteration<MemStatement,X>

public class MemStatementIterator<X extends Exception>
extends CloseableIterationBase<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.


Field Summary
 
Fields inherited from class info.aduna.iteration.CloseableIterationBase
logger
 
Constructor Summary
MemStatementIterator(MemStatementList statementList, MemResource subject, MemURI predicate, MemValue object, boolean explicitOnly, int snapshot, ReadMode readMode, 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.
 
Method Summary
protected  void handleClose()
           
 boolean hasNext()
           
 MemStatement next()
           
 void remove()
          Throws an UnsupportedOperationException.
 
Methods inherited from class info.aduna.iteration.CloseableIterationBase
close, isClosed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemStatementIterator

public MemStatementIterator(MemStatementList statementList,
                            MemResource subject,
                            MemURI predicate,
                            MemValue object,
                            boolean explicitOnly,
                            int snapshot,
                            ReadMode readMode,
                            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.

Parameters:
statementList - the statements over which to iterate.
subject - subject of pattern.
predicate - predicate of pattern.
object - object of pattern.
context - context of pattern.
Method Detail

hasNext

public boolean hasNext()

next

public MemStatement next()

remove

public void remove()
Throws an UnsupportedOperationException.


handleClose

protected void handleClose()
                    throws X extends Exception
Overrides:
handleClose in class CloseableIterationBase<MemStatement,X extends Exception>
Throws:
X extends Exception


Copyright © 2001-2008 Aduna. All Rights Reserved.