public final class ConnectionFinishTupleQueryResult extends Object implements SelectQueryResult
TupleQueryResult implementation that on close will also close its parent connection.
ConnectionFinishQueryResult| Constructor and Description |
|---|
ConnectionFinishTupleQueryResult(SelectQueryResult theResult,
com.complexible.stardog.db.DatabaseConnection theConn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the query results and return any resources in use back to the system.
|
protected QueryResult<T> |
getResult() |
boolean |
hasNext() |
T |
next() |
ConnectionFinishTupleQueryResult |
onClose(Runnable theRunnable) |
void |
remove() |
List<String> |
variables()
Return the list of projected variables from the query
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, hasNext, metadata, next, streamforEachRemaining, removepublic ConnectionFinishTupleQueryResult(SelectQueryResult theResult, com.complexible.stardog.db.DatabaseConnection theConn)
public ConnectionFinishTupleQueryResult onClose(Runnable theRunnable)
public List<String> variables() throws QueryExecutionFailure
variables in interface SelectQueryResultQueryExecutionFailureprotected QueryResult<T> getResult()
public boolean hasNext()
throws QueryExecutionFailure
hasNext in interface QueryResult<T>hasNext in interface Iterator<T>QueryExecutionFailurepublic final T next()
throws QueryExecutionFailure
next in interface QueryResult<T>next in interface Iterator<T>QueryExecutionFailurepublic void remove()
throws QueryExecutionFailure
remove in interface Iterator<T>QueryExecutionFailurepublic final void close()
throws QueryExecutionFailure
close in interface QueryResult<T>close in interface AutoCloseableQueryExecutionFailureCopyright © 2010-2016 Stardog Union. All Rights Reserved.