|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.pgsql.v0_6.PostgreSqlWriter
public class PostgreSqlWriter
An OSM data sink for storing all data to a database. This task is intended for writing to an empty database.
Constructor Summary | |
---|---|
PostgreSqlWriter(DatabaseLoginCredentials loginCredentials,
DatabasePreferences preferences,
boolean enableBboxBuilder,
boolean enableLinestringBuilder,
NodeLocationStoreType storeType)
Creates a new instance. |
Method Summary | |
---|---|
void |
complete()
Writes any buffered data to the database and commits. |
void |
process(BoundContainer bound)
Process the bound. |
void |
process(EntityContainer entityContainer)
Process the entity. |
void |
process(NodeContainer nodeContainer)
Process the node. |
void |
process(RelationContainer relationContainer)
Process the relation. |
void |
process(WayContainer wayContainer)
Process the way. |
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 PostgreSqlWriter(DatabaseLoginCredentials loginCredentials, DatabasePreferences preferences, boolean enableBboxBuilder, boolean enableLinestringBuilder, NodeLocationStoreType storeType)
loginCredentials
- Contains all information required to connect to the database.preferences
- Contains preferences configuring database behaviour.enableBboxBuilder
- If true, the way bbox geometry is built during processing
instead of relying on the database to build them after import.
This increases processing but is faster than relying on the
database.enableLinestringBuilder
- If true, the way linestring geometry is built during
processing instead of relying on the database to build them
after import. This increases processing but is faster than
relying on the database.storeType
- The node location storage type used by the geometry builders.Method Detail |
---|
public void complete()
complete
in interface Completable
public void process(EntityContainer entityContainer)
process
in interface Sink
entityContainer
- The entity to be processed.public void process(BoundContainer bound)
process
in interface EntityProcessor
bound
- The bound to be processed.public void process(NodeContainer nodeContainer)
process
in interface EntityProcessor
nodeContainer
- The node to be processed.public void process(WayContainer wayContainer)
process
in interface EntityProcessor
wayContainer
- The way to be processed.public void process(RelationContainer relationContainer)
process
in interface EntityProcessor
relationContainer
- The relation to be processed.public void release()
release
in interface Releasable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |