public class AlternativeCursor<E> extends LookAheadIteration<E,QueryEvaluationException>
Constructor and Description |
---|
AlternativeCursor(CloseableIteration<? extends E,QueryEvaluationException> primary,
CloseableIteration<? extends E,QueryEvaluationException> alternative) |
Modifier and Type | Method and Description |
---|---|
E |
getNextElement()
Gets the next element.
|
void |
handleClose()
Called by
AbstractCloseableIteration.close() when it is called for the first time. |
String |
toString() |
hasNext, next, remove
close, isClosed
public AlternativeCursor(CloseableIteration<? extends E,QueryEvaluationException> primary, CloseableIteration<? extends E,QueryEvaluationException> alternative)
public void handleClose() throws QueryEvaluationException
AbstractCloseableIteration
AbstractCloseableIteration.close()
when it is called for the first time. This method
is only called once on each iteration. By default, this method does
nothing.handleClose
in class LookAheadIteration<E,QueryEvaluationException>
QueryEvaluationException
public E getNextElement() throws QueryEvaluationException
LookAheadIteration
getNextElement
in class LookAheadIteration<E,QueryEvaluationException>
QueryEvaluationException
Copyright © 2001-2016 Aduna. All Rights Reserved.