|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.apidb.v0_6.ApidbChangeReader
public class ApidbChangeReader
A change source reading from database history tables. This aims to be suitable for running at regular intervals with database overhead proportional to changeset size.
Constructor Summary | |
---|---|
ApidbChangeReader(DatabaseLoginCredentials loginCredentials,
DatabasePreferences preferences,
java.util.Date intervalBegin,
java.util.Date intervalEnd,
boolean fullHistory)
Creates a new instance. |
Method Summary | |
---|---|
void |
run()
Reads all data from the database and send it to the sink. |
protected void |
runImpl(DatabaseContext2 dbCtx)
Runs the task implementation. |
void |
setChangeSink(ChangeSink changeSink)
Sets the change 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 ApidbChangeReader(DatabaseLoginCredentials loginCredentials, DatabasePreferences preferences, java.util.Date intervalBegin, java.util.Date intervalEnd, boolean fullHistory)
loginCredentials
- Contains all information required to connect to the database.preferences
- Contains preferences configuring database behaviour.intervalBegin
- Marks the beginning (inclusive) of the time interval to be checked.intervalEnd
- Marks the end (exclusive) of the time interval to be checked.fullHistory
- Specifies if full version history should be returned, or just a single change per
entity for the interval.Method Detail |
---|
public void setChangeSink(ChangeSink changeSink)
setChangeSink
in interface ChangeSource
changeSink
- The sink for receiving all produced data.protected void runImpl(DatabaseContext2 dbCtx)
dbCtx
- Used to access the database.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 |