T
- public class FedXQueueCursor<T> extends QueueCursor<CloseableIteration<T,QueryEvaluationException>>
QueueCursor
which avoids converting any exception if it is already of
typeQueryEvaluationException
.Modifier and Type | Method and Description |
---|---|
protected QueryEvaluationException |
convert(Exception e)
Converts an exception from the underlying iteration to an exception of type X.
|
static <T> FedXQueueCursor<T> |
create(int capacity) |
void |
handleClose()
Called by
AbstractCloseableIteration.close() when it is called for the first time. |
checkException, done, getNextElement, put, toss
hasNext, next, remove
close, isClosed
public static <T> FedXQueueCursor<T> create(int capacity)
protected QueryEvaluationException convert(Exception e)
QueueIteration
convert
in class QueueCursor<CloseableIteration<T,QueryEvaluationException>>
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 QueueIteration<CloseableIteration<T,QueryEvaluationException>,QueryEvaluationException>
QueryEvaluationException
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.