org.openrdf.sesame.sailimpl.rdbms.iterators
Class RdbmsResourceIterator

java.lang.Object
  extended byorg.openrdf.sesame.sailimpl.rdbms.iterators.RdbmsValueIterator
      extended byorg.openrdf.sesame.sailimpl.rdbms.iterators.RdbmsResourceIterator
All Implemented Interfaces:
ResourceIterator, ValueIterator

public class RdbmsResourceIterator
extends RdbmsValueIterator
implements ResourceIterator

An implementation of RdbmsValueIterator that iterates rdfs:Resources. It implements getResult() which creates a new Resource. The ResultSet should contain the following columns: id (int), namespace ID (int) and localname (String).

Version:
$Revision: 1.9.4.2 $
Author:
Peter van 't Hof, Arjohn Kampman

Constructor Summary
RdbmsResourceIterator(RdfSource source, String[] namespaceNames, Connection databaseCon, String query)
          Constructor.
 
Method Summary
 Resource nextResource()
          Gets the next Resource.
 
Methods inherited from class org.openrdf.sesame.sailimpl.rdbms.iterators.RdbmsValueIterator
close, hasNext, next
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.sesame.sail.ValueIterator
close, hasNext, next
 

Constructor Detail

RdbmsResourceIterator

public RdbmsResourceIterator(RdfSource source,
                             String[] namespaceNames,
                             Connection databaseCon,
                             String query)
Constructor.

Parameters:
databaseCon - connection with the repository
query - query to execute
Method Detail

nextResource

public Resource nextResource()
Description copied from interface: ResourceIterator
Gets the next Resource.

Specified by:
nextResource in interface ResourceIterator
Returns:
the next Resource
See Also:
ValueIterator.next()


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