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

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

public class RdbmsLiteralIterator
extends RdbmsValueIterator
implements LiteralIterator

An implementation of SQLValueIterator that iterates over literals. It implements getResult() which creates a new Literal. The ResultSet should contain the following columns: id (int), datatypeId (int), datatype namespace ID (int), datatype localname (String), language (String) and label (String).

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

Constructor Summary
RdbmsLiteralIterator(RdfSource source, String[] namespaceNames, Connection databaseCon, String query)
          Constructor.
 
Method Summary
 Literal nextLiteral()
          Gets the next Literal.
 
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

RdbmsLiteralIterator

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

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

nextLiteral

public Literal nextLiteral()
Description copied from interface: LiteralIterator
Gets the next Literal.

Specified by:
nextLiteral in interface LiteralIterator
Returns:
the next Literal
See Also:
ValueIterator.next()


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