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,java.lang.AutoCloseable,java.util.Iterator<BindingSet>
public class PathsAsTupleQueryResult extends java.lang.Object implements SelectQueryResult
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 Constructor Description PathsAsTupleQueryResult(PathQueryResult thePaths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the query results and return any resources in use back to the system.booleanhasNext()BindingSetnext()voidremove()java.util.List<java.lang.String>variables()Return the list of projected variables from the query-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.stardog.stark.query.QueryResult
metadata, stream
-
-
-
-
Constructor Detail
-
PathsAsTupleQueryResult
public PathsAsTupleQueryResult(PathQueryResult thePaths)
-
-
Method Detail
-
variables
@Nonnull public java.util.List<java.lang.String> 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 interfacejava.lang.AutoCloseable- Specified by:
closein interfaceCloseableIterator<BindingSet>- Specified by:
closein interfaceQueryResult<BindingSet>
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<BindingSet>- Specified by:
hasNextin interfaceQueryResult<BindingSet>
-
next
public BindingSet next()
- Specified by:
nextin interfacejava.util.Iterator<BindingSet>- Specified by:
nextin interfaceQueryResult<BindingSet>
-
remove
public void remove() throws QueryExecutionFailure- Specified by:
removein interfacejava.util.Iterator<BindingSet>- Throws:
QueryExecutionFailure
-
-