org.openstreetmap.osmosis.core.customdb.v0_6.impl
Class RelationalIndexValueIdIterator

java.lang.Object
  extended by org.openstreetmap.osmosis.core.customdb.v0_6.impl.RelationalIndexValueIdIterator
All Implemented Interfaces:
java.util.Iterator<java.lang.Long>, Releasable, ReleasableIterator<java.lang.Long>

public class RelationalIndexValueIdIterator
extends java.lang.Object
implements ReleasableIterator<java.lang.Long>

Iterates over a relational index iterator and returns all the id values stored against the index elements.

Author:
Brett Henderson

Constructor Summary
RelationalIndexValueIdIterator(java.util.Iterator<LongLongIndexElement> source)
          Creates a new instance.
 
Method Summary
 boolean hasNext()
          
 java.lang.Long next()
          
 void release()
          Performs resource cleanup tasks such as closing files, or database connections.
 void remove()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationalIndexValueIdIterator

public RelationalIndexValueIdIterator(java.util.Iterator<LongLongIndexElement> source)
Creates a new instance.

Parameters:
source - The input source.
Method Detail

hasNext

public boolean hasNext()

Specified by:
hasNext in interface java.util.Iterator<java.lang.Long>

next

public java.lang.Long next()

Specified by:
next in interface java.util.Iterator<java.lang.Long>

remove

public void remove()

Specified by:
remove in interface java.util.Iterator<java.lang.Long>

release

public void release()
Performs resource cleanup tasks such as closing files, or database connections. This must be called after all processing is complete and may be called multiple times. Implementations must call release on any nested Releasable objects. It should be called within a finally block to ensure it is called in exception scenarios.

Specified by:
release in interface Releasable