org.openstreetmap.osmosis.core.customdb.v0_6
Class ReadDataset

java.lang.Object
  extended by org.openstreetmap.osmosis.core.customdb.v0_6.ReadDataset
All Implemented Interfaces:
java.lang.Runnable, Task, DatasetSource, RunnableDatasetSource

public class ReadDataset
extends java.lang.Object
implements RunnableDatasetSource

An OSM dataset source exposing read-only access to a custom DB database.

Author:
Brett Henderson

Constructor Summary
ReadDataset(java.io.File directory, boolean enableWayTileIndex)
          Creates a new instance.
 
Method Summary
 void run()
          
 void setDatasetSink(DatasetSink datasetSink)
          Sets the dataset sink to send data to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadDataset

public ReadDataset(java.io.File directory,
                   boolean enableWayTileIndex)
Creates a new instance.

Parameters:
directory - The directory to store all data files in.
enableWayTileIndex - If true a tile index is created for ways, otherwise a node-way index is used.
Method Detail

setDatasetSink

public void setDatasetSink(DatasetSink datasetSink)
Sets the dataset sink to send data to.

Specified by:
setDatasetSink in interface DatasetSource
Parameters:
datasetSink - The sink for receiving all produced data.

run

public void run()

Specified by:
run in interface java.lang.Runnable