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 aroundtuples
with 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 void
close()
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()
boolean
hasNext()
Path
next()
void
remove()
-
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:
getPathStartVariableNames
in interfacePathQueryResult
-
getPathEndVariableNames
public java.util.List<java.lang.String> getPathEndVariableNames()
- Specified by:
getPathEndVariableNames
in interfacePathQueryResult
-
getEdgeVariableNames
public java.util.List<java.lang.String> getEdgeVariableNames()
- Specified by:
getEdgeVariableNames
in interfacePathQueryResult
-
close
public void close() throws QueryExecutionFailure
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<Path>
- Specified by:
close
in interfaceQueryResult<Path>
- Throws:
QueryExecutionFailure
-
hasNext
public boolean hasNext() throws QueryExecutionFailure
- Specified by:
hasNext
in interfacejava.util.Iterator<Path>
- Specified by:
hasNext
in interfaceQueryResult<Path>
- Throws:
QueryExecutionFailure
-
next
public Path next() throws QueryExecutionFailure
- Specified by:
next
in interfacejava.util.Iterator<Path>
- Specified by:
next
in interfaceQueryResult<Path>
- Throws:
QueryExecutionFailure
-
remove
public void remove() throws QueryExecutionFailure
- Specified by:
remove
in interfacejava.util.Iterator<Path>
- Throws:
QueryExecutionFailure
-
-