com.ontotext.ordi.iterator
Class ConvertingIteratorImpl<X>

java.lang.Object
  extended by com.ontotext.ordi.iterator.ConvertingIteratorImpl<X>
Type Parameters:
X -
All Implemented Interfaces:
info.aduna.iteration.CloseableIteration<X,QueryEvaluationException>, info.aduna.iteration.Iteration<X,QueryEvaluationException>

public class ConvertingIteratorImpl<X>
extends Object
implements info.aduna.iteration.CloseableIteration<X,QueryEvaluationException>

This class converts the ORDI's result iterator to Sesame's CloseableIteration.

Author:
vassil

Constructor Summary
ConvertingIteratorImpl(CloseableIterator<? extends TStatement> iterator)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 X next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertingIteratorImpl

public ConvertingIteratorImpl(CloseableIterator<? extends TStatement> iterator)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface info.aduna.iteration.Iteration<X,QueryEvaluationException>

remove

public void remove()
Specified by:
remove in interface info.aduna.iteration.Iteration<X,QueryEvaluationException>

close

public void close()
Specified by:
close in interface info.aduna.iteration.CloseableIteration<X,QueryEvaluationException>

next

public X next()
       throws QueryEvaluationException
Specified by:
next in interface info.aduna.iteration.Iteration<X,QueryEvaluationException>
Throws:
QueryEvaluationException


Copyright © 2008. All Rights Reserved.