Package com.complexible.common.rdf.query
Class TuplesAsPathQueryResult
- java.lang.Object
-
- com.complexible.common.rdf.query.TuplesAsPathQueryResult
-
- All Implemented Interfaces:
CloseableIterator<Path>,PathQueryResult,QueryResult<Path>,java.lang.AutoCloseable,java.util.Iterator<Path>
public class TuplesAsPathQueryResult extends java.lang.Object implements PathQueryResult
A wrapper aroundtupleswith delimiters to restore paths.- 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>
-
-
Field Summary
-
Fields inherited from interface com.complexible.common.rdf.query.PathQueryResult
PATH_VAR
-
-
Constructor Summary
Constructors Constructor Description TuplesAsPathQueryResult(SelectQueryResult theTuples)
-
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.java.util.List<java.lang.String>getEdgeVariableNames()java.util.List<java.lang.String>getPathEndVariableNames()java.util.List<java.lang.String>getPathStartVariableNames()booleanhasNext()Pathnext()voidremove()-
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
-
TuplesAsPathQueryResult
public TuplesAsPathQueryResult(SelectQueryResult theTuples)
-
-
Method Detail
-
getPathStartVariableNames
public java.util.List<java.lang.String> getPathStartVariableNames()
- Specified by:
getPathStartVariableNamesin interfacePathQueryResult
-
getPathEndVariableNames
public java.util.List<java.lang.String> getPathEndVariableNames()
- Specified by:
getPathEndVariableNamesin interfacePathQueryResult
-
getEdgeVariableNames
public java.util.List<java.lang.String> getEdgeVariableNames()
- Specified by:
getEdgeVariableNamesin interfacePathQueryResult
-
close
public void close() throws QueryExecutionFailureClose 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<Path>- Specified by:
closein interfaceQueryResult<Path>- Throws:
QueryExecutionFailure
-
hasNext
public boolean hasNext() throws QueryExecutionFailure- Specified by:
hasNextin interfacejava.util.Iterator<Path>- Specified by:
hasNextin interfaceQueryResult<Path>- Throws:
QueryExecutionFailure
-
next
public Path next() throws QueryExecutionFailure
- Specified by:
nextin interfacejava.util.Iterator<Path>- Specified by:
nextin interfaceQueryResult<Path>- Throws:
QueryExecutionFailure
-
remove
public void remove() throws QueryExecutionFailure- Specified by:
removein interfacejava.util.Iterator<Path>- Throws:
QueryExecutionFailure
-
-