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 void
close()
Close the query results and return any resources in use back to the system.boolean
hasNext()
BindingSet
next()
void
remove()
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:
variables
in 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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceCloseableIterator<BindingSet>
- Specified by:
close
in interfaceQueryResult<BindingSet>
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<BindingSet>
- Specified by:
hasNext
in interfaceQueryResult<BindingSet>
-
next
public BindingSet next()
- Specified by:
next
in interfacejava.util.Iterator<BindingSet>
- Specified by:
next
in interfaceQueryResult<BindingSet>
-
remove
public void remove() throws QueryExecutionFailure
- Specified by:
remove
in interfacejava.util.Iterator<BindingSet>
- Throws:
QueryExecutionFailure
-
-