|
|||||||||
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.ApidbChangeWriter
public class ApidbChangeWriter
A change sink writing to database tables. This aims to be suitable for running at regular intervals with database overhead proportional to changeset size.
Constructor Summary | |
---|---|
ApidbChangeWriter(DatabaseLoginCredentials loginCredentials,
DatabasePreferences preferences,
boolean populateCurrentTables)
Creates a new instance. |
Method Summary | |
---|---|
void |
complete()
Ensures that all information is fully persisted. |
void |
process(ChangeContainer change)
Process the change. |
void |
release()
Performs resource cleanup tasks such as closing files, or database connections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApidbChangeWriter(DatabaseLoginCredentials loginCredentials, DatabasePreferences preferences, boolean populateCurrentTables)
loginCredentials
- Contains all information required to connect to the database.preferences
- Contains preferences configuring database behaviour.populateCurrentTables
- If true, the current tables will be populated as well as history
tables.Method Detail |
---|
public void process(ChangeContainer change)
process
in interface ChangeSink
change
- The change to be processed.public void complete()
complete
in interface Completable
public void release()
release
in interface Releasable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |