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
CloseableIterationBase.close() when it is called for the first time. |
String |
toString() |
hasNext, next, removeclose, isClosedpublic AlternativeCursor(CloseableIteration<? extends E,QueryEvaluationException> primary, CloseableIteration<? extends E,QueryEvaluationException> alternative)
public void handleClose()
throws QueryEvaluationException
CloseableIterationBaseCloseableIterationBase.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>QueryEvaluationExceptionpublic E getNextElement() throws QueryEvaluationException
LookAheadIterationgetNextElement in class LookAheadIteration<E,QueryEvaluationException>QueryEvaluationExceptionCopyright © 2001–2015 Aduna. All rights reserved.