org.openrdf.repository.object.result
Class ObjectCursor

java.lang.Object
  extended by info.aduna.iteration.CloseableIterationBase<E,X>
      extended by info.aduna.iteration.LookAheadIteration<java.lang.Object,QueryEvaluationException>
          extended by org.openrdf.repository.object.result.ObjectCursor
All Implemented Interfaces:
CloseableIteration<java.lang.Object,QueryEvaluationException>, Iteration<java.lang.Object,QueryEvaluationException>

public class ObjectCursor
extends LookAheadIteration<java.lang.Object,QueryEvaluationException>

Converts a tuple cursor into an object cursor.

Author:
James Leigh

Constructor Summary
ObjectCursor(ObjectConnection manager, CloseableIteration<BindingSet,QueryEvaluationException> result, java.lang.String binding)
           
 
Method Summary
 java.lang.Object getNextElement()
           
 void handleClose()
           
 
Methods inherited from class info.aduna.iteration.LookAheadIteration
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
 

Constructor Detail

ObjectCursor

public ObjectCursor(ObjectConnection manager,
                    CloseableIteration<BindingSet,QueryEvaluationException> result,
                    java.lang.String binding)
             throws QueryEvaluationException
Throws:
QueryEvaluationException
Method Detail

getNextElement

public java.lang.Object getNextElement()
                                throws QueryEvaluationException
Specified by:
getNextElement in class LookAheadIteration<java.lang.Object,QueryEvaluationException>
Throws:
QueryEvaluationException

handleClose

public void handleClose()
                 throws QueryEvaluationException
Overrides:
handleClose in class LookAheadIteration<java.lang.Object,QueryEvaluationException>
Throws:
QueryEvaluationException


Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.