| java.lang.Object com.hp.hpl.jena.db.impl.ResultSetIterator com.hp.hpl.jena.db.impl.ResultSetTripleIterator
ResultSetTripleIterator | public class ResultSetTripleIterator extends ResultSetIterator (Code) | | Version of ResultSetIterator that extracts database rows as Triples.
author: hkuno. Based on ResultSetResource Iterator, by Dave Reynolds, HPLabs, Bristol Dave Reynolds version: $Revision: 1.12 $ on $Date: 2008/01/02 12:08:24 $ |
Method Summary | |
protected void | deleteRow() Delete the current row, which should have already been extracted. | protected void | extractRow() Extract the current row into a triple. | protected boolean | getHasType() Return the current row, which should have already been extracted. | protected Object | getRow() Return the current row, which should have already been extracted. | protected Node | getStmtURI() Return the current row, which should have already been extracted. | public void | remove() Remove the current triple from the data store. | public void | reset(ResultSet resultSet, PreparedStatement sourceStatement, SQLCache cache, String opname) Reset an existing iterator to scan a new result set. | public void | setGraphID(IDBID gid) Set m_graphID. |
logger | protected static Log logger(Code) | | |
m_graphID | protected IDBID m_graphID(Code) | | The rdf model in which to instantiate any resources
|
m_hasType | protected boolean m_hasType(Code) | | HasType flag if iterating over reified statements
|
m_isReif | protected boolean m_isReif(Code) | | True if iterating over reified statements
|
m_pset | protected IPSet m_pset(Code) | | The database driver, used to access namespace and resource caches
|
m_stmtURI | protected Node m_stmtURI(Code) | | Statement URI if iterating over reified statements
|
m_triple | protected Triple m_triple(Code) | | Holds the current row as a triple
|
ResultSetTripleIterator | public ResultSetTripleIterator(IPSet p, IDBID graphID)(Code) | | |
ResultSetTripleIterator | public ResultSetTripleIterator(IPSet p, boolean isReif, IDBID graphID)(Code) | | |
deleteRow | protected void deleteRow()(Code) | | Delete the current row, which should have already been extracted.
Should only be used (carefully and) internally by db layer.
|
extractRow | protected void extractRow() throws SQLException(Code) | | Extract the current row into a triple.
Requires the row to be of the form:
subject URI (String)
predicate URI (String)
object URI (String)
object value (String)
Object literal id (Object)
The object of the triple can be either a URI, a simple literal (in
which case it will just have an object value, or a complex literal
(in which case both the object value and the object literal id
columns may be populated.
|
getHasType | protected boolean getHasType()(Code) | | Return the current row, which should have already been extracted.
|
getRow | protected Object getRow()(Code) | | Return the current row, which should have already been extracted.
|
getStmtURI | protected Node getStmtURI()(Code) | | Return the current row, which should have already been extracted.
|
remove | public void remove()(Code) | | Remove the current triple from the data store.
|
reset | public void reset(ResultSet resultSet, PreparedStatement sourceStatement, SQLCache cache, String opname)(Code) | | Reset an existing iterator to scan a new result set.
Parameters: resultSet - the result set being iterated over Parameters: sourceStatement - The source Statement to be cleaned up when the iterator finishes - return it to cache or close it if no cache Parameters: cache - The originating SQLcache to return the statement to, can be null Parameters: opname - The name of the original operation that lead to this statement, can be null if SQLCache is null |
setGraphID | public void setGraphID(IDBID gid)(Code) | | Set m_graphID.
Parameters: gid - is the id of the graph associated with this iterator. |
|
|