Package com.complexible.common.rdf.query
Class IteratorAsPathQueryResult
- java.lang.Object
-
- com.google.common.collect.UnmodifiableIterator<T>
-
- com.google.common.collect.AbstractIterator<T>
-
- com.complexible.common.rdf.query.IteratorAsPathQueryResult
-
- All Implemented Interfaces:
CloseableIterator<Path>
,PathQueryResult
,QueryResult<Path>
,java.lang.AutoCloseable
,java.util.Iterator<Path>
public final class IteratorAsPathQueryResult extends com.google.common.collect.AbstractIterator<T> implements PathQueryResult
Adapter class for using a BindingSetIteration as a
PathQueryResult
- Since:
- 0.4
-
-
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 IteratorAsPathQueryResult(CloseableIterator<Path> theIter, java.util.List<java.lang.String> theStartVars, java.util.List<java.lang.String> theEndVars, java.util.List<java.lang.String> theEdgeVars, java.lang.Runnable theOnClose, java.lang.Runnable theOnSuccess, java.util.function.Function<java.lang.Exception,java.lang.RuntimeException> theOnError)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected T
computeNext()
java.util.List<java.lang.String>
getEdgeVariableNames()
java.util.List<java.lang.String>
getPathEndVariableNames()
java.util.List<java.lang.String>
getPathStartVariableNames()
-
Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peek
-
-
-
-
Constructor Detail
-
IteratorAsPathQueryResult
public IteratorAsPathQueryResult(CloseableIterator<Path> theIter, java.util.List<java.lang.String> theStartVars, java.util.List<java.lang.String> theEndVars, java.util.List<java.lang.String> theEdgeVars, java.lang.Runnable theOnClose, java.lang.Runnable theOnSuccess, java.util.function.Function<java.lang.Exception,java.lang.RuntimeException> theOnError)
-
-
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
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceCloseableIterator<T>
- Throws:
QueryExecutionFailure
-
computeNext
protected T computeNext()
- Specified by:
computeNext
in classcom.google.common.collect.AbstractIterator<T>
-
-