|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.pgsql.v0_5.PostgreSqlChangeWriter
public class PostgreSqlChangeWriter
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 | |
|---|---|
PostgreSqlChangeWriter(DatabaseLoginCredentials loginCredentials,
DatabasePreferences preferences)
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 PostgreSqlChangeWriter(DatabaseLoginCredentials loginCredentials,
DatabasePreferences preferences)
loginCredentials - Contains all information required to connect to the database.preferences - Contains preferences configuring database behaviour.| Method Detail |
|---|
public void process(ChangeContainer change)
process in interface ChangeSinkchange - The change to be processed.public void complete()
complete in interface Completablepublic void release()
release in interface Releasable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||