org.openstreetmap.osmosis.core.pgsql.v0_6.impl
Class NodeReader

java.lang.Object
  extended by org.openstreetmap.osmosis.core.pgsql.v0_6.impl.EntityReader<Node>
      extended by org.openstreetmap.osmosis.core.pgsql.v0_6.impl.NodeReader
All Implemented Interfaces:
java.util.Iterator<Node>, Releasable, ReleasableIterator<Node>

public class NodeReader
extends EntityReader<Node>

Reads all nodes from a database ordered by their identifier. It combines the output of the node table readers to produce fully configured node objects.

Author:
Brett Henderson

Constructor Summary
NodeReader(DatabaseContext dbCtx)
          Creates a new instance.
NodeReader(DatabaseContext dbCtx, java.lang.String constraintTable)
          Creates a new instance.
 
Method Summary
 
Methods inherited from class org.openstreetmap.osmosis.core.pgsql.v0_6.impl.EntityReader
hasNext, next, populateEntityFeatures, release, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeReader

public NodeReader(DatabaseContext dbCtx)
Creates a new instance.

Parameters:
dbCtx - The database context to use for accessing the database.

NodeReader

public NodeReader(DatabaseContext dbCtx,
                  java.lang.String constraintTable)
Creates a new instance.

Parameters:
dbCtx - The database context to use for accessing the database.
constraintTable - The table containing a column named id defining the list of entities to be returned.