org.openrdf.repository.object.result
Class ObjectArrayCursor

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

public class ObjectArrayCursor
extends LookAheadIteration<Object[],QueryEvaluationException>

Converts the repository result into an array of Objects.

Author:
James Leigh

Constructor Summary
ObjectArrayCursor(ObjectConnection manager, TupleQueryResult result, List<String> bindings)
           
 
Method Summary
 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

ObjectArrayCursor

public ObjectArrayCursor(ObjectConnection manager,
                         TupleQueryResult result,
                         List<String> bindings)
                  throws QueryEvaluationException
Throws:
QueryEvaluationException
Method Detail

getNextElement

public Object[] getNextElement()
                        throws QueryEvaluationException
Specified by:
getNextElement in class LookAheadIteration<Object[],QueryEvaluationException>
Throws:
QueryEvaluationException

handleClose

public void handleClose()
                 throws QueryEvaluationException
Overrides:
handleClose in class LookAheadIteration<Object[],QueryEvaluationException>
Throws:
QueryEvaluationException


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