org.openrdf.elmo.sesame
Class ElmoSingleQueryResult

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

public class ElmoSingleQueryResult
extends ElmoIteration<BindingSet,Object>

Converts the repository result into a single Bean.

Author:
James Leigh

Constructor Summary
ElmoSingleQueryResult(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

ElmoSingleQueryResult

public ElmoSingleQueryResult(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.