org.openrdf.sesame.sailimpl.nativerdf
Class NativeStatementIterator

java.lang.Object
  extended byorg.openrdf.sesame.sailimpl.nativerdf.NativeStatementIterator
All Implemented Interfaces:
StatementIterator

public class NativeStatementIterator
extends Object
implements StatementIterator

An implementation of the RdfRepository interface from the RDF Sail API that stores its data in, and queries it from files on disk.

Version:
$Revision: 1.6.4.2 $
Author:
Arjohn Kampman

Constructor Summary
NativeStatementIterator(TripleStore tripleStore, ValueStore valueStore, ValueFactory valueFactory, Resource subj, URI pred, Value obj, int subjID, int predID, int objID)
          Creates a new NativeStatementIterator.
 
Method Summary
 void close()
          Closes the iterator and frees any resources that it uses (e.g.
 boolean hasNext()
          Checks whether there are any more statements available.
 Statement next()
          Gets the next statement.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeStatementIterator

public NativeStatementIterator(TripleStore tripleStore,
                               ValueStore valueStore,
                               ValueFactory valueFactory,
                               Resource subj,
                               URI pred,
                               Value obj,
                               int subjID,
                               int predID,
                               int objID)
                        throws IOException
Creates a new NativeStatementIterator.

Method Detail

hasNext

public boolean hasNext()
Description copied from interface: StatementIterator
Checks whether there are any more statements available.

Specified by:
hasNext in interface StatementIterator
Returns:
true if there are more statements available, false otherwise.

next

public Statement next()
Description copied from interface: StatementIterator
Gets the next statement.

Specified by:
next in interface StatementIterator
Returns:
the next statement.

close

public void close()
Description copied from interface: StatementIterator
Closes the iterator and frees any resources that it uses (e.g. connections to databases). Every StatementIterator should be properly closed when it has returned all of its statements, or when it is no longer needed.

Specified by:
close in interface StatementIterator


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.