Examples of SinkManager


Examples of org.openstreetmap.osmosis.core.pipeline.v0_6.SinkManager

        taskConfig, ARG_ENABLE_LINESTRING_BUILDER, DEFAULT_ENABLE_LINESTRING_BUILDER);
    storeType = Enum.valueOf(
        NodeLocationStoreType.class,
        getStringArgument(taskConfig, ARG_NODE_LOCATION_STORE_TYPE, DEFAULT_NODE_LOCATION_STORE_TYPE));
   
    return new SinkManager(
      taskConfig.getId(),
      new PostgreSqlWriter(loginCredentials, preferences, enableBboxBuilder, enableLinestringBuilder, storeType),
      taskConfig.getPipeArgs()
    );
  }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.pipeline.v0_6.SinkManager

    preferences = getDatabasePreferences(taskConfig);
    storeType = Enum.valueOf(
        NodeLocationStoreType.class,
        getStringArgument(taskConfig, ARG_NODE_LOCATION_STORE_TYPE, DEFAULT_NODE_LOCATION_STORE_TYPE));
   
    return new SinkManager(
      taskConfig.getId(),
      new PostgreSqlCopyWriter(loginCredentials, preferences,  storeType),
      taskConfig.getPipeArgs()
    );
  }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.pipeline.v0_6.SinkManager

        getStringArgument(taskConfig, ARG_NODE_LOCATION_STORE_TYPE, DEFAULT_NODE_LOCATION_STORE_TYPE));
   
    // Create a file object representing the directory from the file name provided.
    filePrefix = new File(filePrefixString);
   
    return new SinkManager(
      taskConfig.getId(),
      new PostgreSqlDumpWriter(filePrefix, enableBboxBuilder, enableLinestringBuilder, storeType),
      taskConfig.getPipeArgs()
    );
  }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.pipeline.v0_6.SinkManager

    storeType = Enum.valueOf(
        NodeLocationStoreType.class,
        getStringArgument(taskConfig, ARG_NODE_LOCATION_STORE_TYPE, DEFAULT_NODE_LOCATION_STORE_TYPE));
    keepInvalidWays = getBooleanArgument(taskConfig, ARG_KEEP_INVALID_WAYS, DEFAULT_KEEP_INVALID_WAYS);
   
    return new SinkManager(
      taskConfig.getId(),
      new PostgreSqlCopyWriter(loginCredentials, preferences,  storeType, keepInvalidWays),
      taskConfig.getPipeArgs()
    );
  }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.pipeline.v0_6.SinkManager

        getStringArgument(taskConfig, ARG_NODE_LOCATION_STORE_TYPE, DEFAULT_NODE_LOCATION_STORE_TYPE));
   
    // Create a file object representing the directory from the file name provided.
    filePrefix = new File(filePrefixString);
   
    return new SinkManager(
      taskConfig.getId(),
      new PostgreSqlDumpWriter(
          filePrefix, enableBboxBuilder, enableLinestringBuilder, storeType, keepInvalidWays),
      taskConfig.getPipeArgs()
    );
View Full Code Here

Examples of org.openstreetmap.osmosis.core.pipeline.v0_6.SinkManager

        } catch (FileNotFoundException e) {
          throw new OsmosisRuntimeException("Failed to initialize Osmosis pbf serializer.", e);
        }

        return new SinkManager(taskConfig.getId(), task, taskConfig
                .getPipeArgs());
    }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.pipeline.v0_6.SinkManager

  /**
   * {@inheritDoc}
   */
  @Override
  protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) {
    return new SinkManager(taskConfig.getId(), new NullWriter(), taskConfig.getPipeArgs());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.