/** * {@inheritDoc} */ @Override public void connect(PipeTasks pipeTasks) { DatasetSource source; // Get the input task. A sink only has one input, this corresponds to // pipe index 0. source = (DatasetSource) getInputTask(pipeTasks, 0, DatasetSource.class); // Cast the input feed to the correct type. // Connect the tasks. source.setDatasetSink(task); // Register the task as an output. A source only has one output, this // corresponds to pipe index 0. setOutputTask(pipeTasks, task, 0); } }
/** * {@inheritDoc} */ @Override protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) { return new DatasetSinkSourceManager( taskConfig.getId(), new DumpDataset(), taskConfig.getPipeArgs() ); } }
/** * {@inheritDoc} */ @Override protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) { return new DatasetSinkSourceManager( taskConfig.getId(), new DumpDataset(), taskConfig.getPipeArgs() ); } }
/** * {@inheritDoc} */ @Override public void connect(PipeTasks pipeTasks) { DatasetSource source; // Get the input task. A sink only has one input, this corresponds to // pipe index 0. source = (DatasetSource) getInputTask(pipeTasks, 0, DatasetSource.class); // Cast the input feed to the correct type. // Connect the tasks. source.setDatasetSink(task); // Register the task as an output. A source only has one output, this // corresponds to pipe index 0. setOutputTask(pipeTasks, task, 0); } }
/** * {@inheritDoc} */ @Override protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) { double left; double right; double top; double bottom; boolean completeWays; // Get the task arguments. left = getDoubleArgument(taskConfig, ARG_LEFT, DEFAULT_LEFT); right = getDoubleArgument(taskConfig, ARG_RIGHT, DEFAULT_RIGHT); top = getDoubleArgument(taskConfig, ARG_TOP, DEFAULT_TOP); bottom = getDoubleArgument(taskConfig, ARG_BOTTOM, DEFAULT_BOTTOM); completeWays = getBooleanArgument(taskConfig, ARG_COMPLETE_WAYS, DEFAULT_COMPLETE_WAYS); return new DatasetSinkSourceManager( taskConfig.getId(), new DatasetBoundingBoxFilter(left, right, top, bottom, completeWays), taskConfig.getPipeArgs() ); } }
/** * {@inheritDoc} */ @Override protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) { double left; double right; double top; double bottom; boolean completeWays; // Get the task arguments. left = getDoubleArgument(taskConfig, ARG_LEFT, DEFAULT_LEFT); right = getDoubleArgument(taskConfig, ARG_RIGHT, DEFAULT_RIGHT); top = getDoubleArgument(taskConfig, ARG_TOP, DEFAULT_TOP); bottom = getDoubleArgument(taskConfig, ARG_BOTTOM, DEFAULT_BOTTOM); completeWays = getBooleanArgument(taskConfig, ARG_COMPLETE_WAYS, DEFAULT_COMPLETE_WAYS); return new DatasetSinkSourceManager( taskConfig.getId(), new DatasetBoundingBoxFilter(left, right, top, bottom, completeWays), taskConfig.getPipeArgs() ); } }