org.openstreetmap.osmosis.pgsnapshot.PgSnapshotPluginLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of osmosis-pgsnapshot Show documentation
Show all versions of osmosis-pgsnapshot Show documentation
Osmosis is a Java application and library for processing OSM data.
The newest version!
// This software is released into the Public Domain. See copying.txt for details.
package org.openstreetmap.osmosis.pgsnapshot;
import java.util.HashMap;
import java.util.Map;
import org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory;
import org.openstreetmap.osmosis.core.plugin.PluginLoader;
import org.openstreetmap.osmosis.pgsnapshot.v0_6.PostgreSqlChangeWriterFactory;
import org.openstreetmap.osmosis.pgsnapshot.v0_6.PostgreSqlCopyWriterFactory;
import org.openstreetmap.osmosis.pgsnapshot.v0_6.PostgreSqlDatasetReaderFactory;
import org.openstreetmap.osmosis.pgsnapshot.v0_6.PostgreSqlDumpWriterFactory;
import org.openstreetmap.osmosis.pgsnapshot.v0_6.PostgreSqlTruncatorFactory;
/**
* The plugin loader for the PostgreSQL Snapshot Schema tasks.
*
* @author Brett Henderson
*/
public class PgSnapshotPluginLoader implements PluginLoader {
/**
* {@inheritDoc}
*/
@Override
public Map loadTaskFactories() {
Map factoryMap;
factoryMap = new HashMap();
factoryMap.put("write-pgsql", new PostgreSqlCopyWriterFactory());
factoryMap.put("wp", new PostgreSqlCopyWriterFactory());
factoryMap.put("truncate-pgsql", new PostgreSqlTruncatorFactory());
factoryMap.put("tp", new PostgreSqlTruncatorFactory());
factoryMap.put("write-pgsql-dump", new PostgreSqlDumpWriterFactory());
factoryMap.put("wpd", new PostgreSqlDumpWriterFactory());
factoryMap.put("read-pgsql", new PostgreSqlDatasetReaderFactory());
factoryMap.put("rp", new PostgreSqlDatasetReaderFactory());
factoryMap.put("write-pgsql-change", new PostgreSqlChangeWriterFactory());
factoryMap.put("wpc", new PostgreSqlChangeWriterFactory());
factoryMap.put("write-pgsql-0.6", new PostgreSqlCopyWriterFactory());
factoryMap.put("truncate-pgsql-0.6", new PostgreSqlTruncatorFactory());
factoryMap.put("write-pgsql-dump-0.6", new PostgreSqlDumpWriterFactory());
factoryMap.put("read-pgsql-0.6", new PostgreSqlDatasetReaderFactory());
factoryMap.put("write-pgsql-change-0.6", new PostgreSqlChangeWriterFactory());
return factoryMap;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy