Package com.complexible.common.rdf
Class MultiStatementIterator
- All Implemented Interfaces:
CloseableIterator<Statement>,StatementIterator,AutoCloseable,Iterator<Statement>
public final class MultiStatementIterator
extends com.google.common.collect.AbstractIterator<Statement>
implements StatementIterator
StatementIterator whose contents are the concatenation of multiple iterators.
- Since:
- 0.4.3
- Version:
- 6.0
- Author:
- Michael Grove, Evren Sirin
-
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
ConstructorsConstructorDescriptionMultiStatementIterator(List<StatementIterator> theIters) Create a new MultiStatementIteration -
Method Summary
Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peekMethods inherited from class com.google.common.collect.UnmodifiableIterator
removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, removeMethods inherited from interface com.complexible.common.rdf.StatementIterator
process, toGraph
-
Constructor Details
-
MultiStatementIterator
Create a new MultiStatementIteration- Parameters:
theIters- the list of iterations to iterate against
-
-
Method Details
-
computeNext
- Specified by:
computeNextin classcom.google.common.collect.AbstractIterator<Statement>
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableIterator<Statement>- Throws:
RuntimeException
-
namespaces
Returns namespaces associated with this statement iteration if any.- Specified by:
namespacesin interfaceStatementIterator- Returns:
- possibly empty namespaces but never
null
-