Package com.complexible.common.rdf.query
Class PathsAsTupleQueryResult
java.lang.Object
com.complexible.common.rdf.query.PathsAsTupleQueryResult
- All Implemented Interfaces:
CloseableIterator<BindingSet>,QueryResult<BindingSet>,SelectQueryResult,AutoCloseable,Iterator<BindingSet>
Represents a result set of a path query as tuples. Each edge is a set of tuples (solutions).
Paths are separated by special tuple delimiters in which the start and the end variables are unbound.
- Since:
- 5.0.4
- Version:
- 6.0
- Author:
- Pavel Klinov
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.complexible.common.base.CloseableIterator
CloseableIterator.AbstractCloseableIterator<T>, CloseableIterator.DelegatingCloseableIterator<T>, CloseableIterator.EmptyCloseableIterator<T> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemainingMethods inherited from interface com.stardog.stark.query.QueryResult
metadata, stream
-
Constructor Details
-
PathsAsTupleQueryResult
-
-
Method Details
-
variables
Return the list of projected variables from the query- Specified by:
variablesin interfaceSelectQueryResult- Returns:
- the projection
-
close
public void close()Close the query results and return any resources in use back to the system. This *must* be called on all result sets to avoid resource leaks.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableIterator<BindingSet>- Specified by:
closein interfaceQueryResult<BindingSet>
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<BindingSet>- Specified by:
hasNextin interfaceQueryResult<BindingSet>
-
next
- Specified by:
nextin interfaceIterator<BindingSet>- Specified by:
nextin interfaceQueryResult<BindingSet>
-
remove
- Specified by:
removein interfaceIterator<BindingSet>- Throws:
QueryExecutionFailure
-