org.openrdf.elmo.sesame
Class ElmoTupleQueryResult

java.lang.Object
  extended by org.openrdf.elmo.sesame.iterators.ElmoIteration<BindingSet,Object[]>
      extended by org.openrdf.elmo.sesame.ElmoTupleQueryResult
All Implemented Interfaces:
CloseableIteration<Object[],ElmoException>, Iteration<Object[],ElmoException>, Closeable, Iterator<Object[]>

public class ElmoTupleQueryResult
extends ElmoIteration<BindingSet,Object[]>

Converts the repository result into an array of Objects.

Author:
James Leigh

Constructor Summary
ElmoTupleQueryResult(SesameManager manager, TupleQueryResult result, int maxResults)
           
 
Method Summary
protected  Object[] convert(BindingSet sol)
           
 boolean hasNext()
           
 Object[] next()
           
 
Methods inherited from class org.openrdf.elmo.sesame.iterators.ElmoIteration
close, close, remove, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElmoTupleQueryResult

public ElmoTupleQueryResult(SesameManager manager,
                            TupleQueryResult result,
                            int maxResults)
Method Detail

convert

protected Object[] convert(BindingSet sol)
Specified by:
convert in class ElmoIteration<BindingSet,Object[]>

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iteration<Object[],ElmoException>
Specified by:
hasNext in interface Iterator<Object[]>
Overrides:
hasNext in class ElmoIteration<BindingSet,Object[]>

next

public Object[] next()
Specified by:
next in interface Iteration<Object[],ElmoException>
Specified by:
next in interface Iterator<Object[]>
Overrides:
next in class ElmoIteration<BindingSet,Object[]>


Copyright © 2004-2008 Aduna. All Rights Reserved.