|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.mysql.v0_5.MysqlReader
public class MysqlReader
An OSM data source reading from a database. The entire contents of the database are read.
Constructor Summary | |
---|---|
MysqlReader(DatabaseLoginCredentials loginCredentials,
DatabasePreferences preferences,
java.util.Date snapshotInstant,
boolean readAllUsers)
Creates a new instance. |
Method Summary | |
---|---|
void |
run()
Reads all data from the database and send it to the sink. |
void |
setSink(Sink sink)
Sets the osm 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 |
---|
public MysqlReader(DatabaseLoginCredentials loginCredentials, DatabasePreferences preferences, java.util.Date snapshotInstant, boolean readAllUsers)
loginCredentials
- Contains all information required to connect to the database.preferences
- Contains preferences configuring database behaviour.snapshotInstant
- The state of the node table at this point in time will be
dumped. This ensures a consistent snapshot.readAllUsers
- If this flag is true, all users will be read from the database
regardless of their public edits flag.Method Detail |
---|
public void setSink(Sink sink)
setSink
in interface Source
sink
- The sink for receiving all produced data.public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |