net.ontopia.topicmaps.query.utils
Class SingleQueryResultIterator

java.lang.Object
  extended by net.ontopia.topicmaps.query.utils.SingleQueryResultIterator
All Implemented Interfaces:
Iterator

public class SingleQueryResultIterator
extends Object
implements Iterator

INTERNAL: Iterator that iterates over a QueryResultIF and returns an immutable Map instance for each query result row. Note that the Map instance is the same for each item, and that only the Map values change with each step. This means that this iterator must be used with care.


Field Summary
protected  boolean has_next
           
protected  QueryResultIF result
           
protected  ArrayMap rowmap
           
protected  Object[] values
           
 
Constructor Summary
SingleQueryResultIterator(QueryResultIF result)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

protected QueryResultIF result

rowmap

protected ArrayMap rowmap

values

protected Object[] values

has_next

protected boolean has_next
Constructor Detail

SingleQueryResultIterator

public SingleQueryResultIterator(QueryResultIF result)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator


Copyright © 2000-2012 Ontopia.