org.openrdf.query.algebra.evaluation.iterator
Class SilentIteration

java.lang.Object
  extended by info.aduna.iteration.CloseableIterationBase<E,X>
      extended by info.aduna.iteration.LookAheadIteration<BindingSet,QueryEvaluationException>
          extended by org.openrdf.query.algebra.evaluation.iterator.SilentIteration
All Implemented Interfaces:
CloseableIteration<BindingSet,QueryEvaluationException>, Iteration<BindingSet,QueryEvaluationException>

public class SilentIteration
extends LookAheadIteration<BindingSet,QueryEvaluationException>

Wrap an inner iteration and suppress exceptions silently

Author:
Andreas Schwarte

Field Summary
protected  CloseableIteration<BindingSet,QueryEvaluationException> iter
           
 
Constructor Summary
SilentIteration(CloseableIteration<BindingSet,QueryEvaluationException> iter)
           
 
Method Summary
protected  BindingSet getNextElement()
          Gets the next element.
 
Methods inherited from class info.aduna.iteration.LookAheadIteration
handleClose, hasNext, next, remove
 
Methods inherited from class info.aduna.iteration.CloseableIterationBase
close, isClosed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iter

protected CloseableIteration<BindingSet,QueryEvaluationException> iter
Constructor Detail

SilentIteration

public SilentIteration(CloseableIteration<BindingSet,QueryEvaluationException> iter)
Method Detail

getNextElement

protected BindingSet getNextElement()
                             throws QueryEvaluationException
Description copied from class: LookAheadIteration
Gets the next element. Subclasses should implement this method so that it returns the next element.

Specified by:
getNextElement in class LookAheadIteration<BindingSet,QueryEvaluationException>
Returns:
The next element, or null if no more elements are available.
Throws:
QueryEvaluationException


Copyright © 2001-2012 Aduna. All Rights Reserved.