@Test public void test() throws Exception { jjJobRunner.run(runTimeProperties); }
@Override public int run(final Configuration config, final PropertyManagement runTimeProperties) throws Exception { final Partitioner<?> partitioner = runTimeProperties.getClassInstance( Partition.PARTITIONER_CLASS, Partitioner.class, OrthodromicDistancePartitioner.class); final Partitioner<?> secondaryPartitioner = runTimeProperties.getClassInstance( Partition.SECONDARY_PARTITIONER_CLASS, Partitioner.class, PassthruPartitioner.class); partitioner.setup(runTimeProperties, getScope(), config); if (secondaryPartitioner.getClass() != partitioner.getClass()) { secondaryPartitioner.setup(runTimeProperties, getScope(), config); } runTimeProperties.setConfig( new ParameterEnum[] { Partition.PARTITIONER_CLASS, Partition.SECONDARY_PARTITIONER_CLASS, Partition.MAX_DISTANCE, Partition.MAX_MEMBER_SELECTION, Partition.GEOMETRIC_DISTANCE_UNIT, Partition.DISTANCE_THRESHOLDS, CommonParameters.Common.DISTANCE_FUNCTION_CLASS}, config, getScope()); return super.run(config, runTimeProperties); }
NNJobRunner extends GeoWaveAnalyticJobRunner { @Override public int run(final Configuration config, final PropertyManagement runTimeProperties) throws Exception { final Partitioner<?> partitioner = runTimeProperties.getClassInstance( Partition.PARTITIONER_CLASS, Partitioner.class, OrthodromicDistancePartitioner.class); final Partitioner<?> secondaryPartitioner = runTimeProperties.getClassInstance( Partition.SECONDARY_PARTITIONER_CLASS, Partitioner.class, PassthruPartitioner.class); partitioner.setup(runTimeProperties, getScope(), config); if (secondaryPartitioner.getClass() != partitioner.getClass()) { secondaryPartitioner.setup(runTimeProperties, getScope(), config); } runTimeProperties.setConfig( new ParameterEnum[] { Partition.PARTITIONER_CLASS, Partition.SECONDARY_PARTITIONER_CLASS, Partition.MAX_DISTANCE, Partition.MAX_MEMBER_SELECTION, Partition.GEOMETRIC_DISTANCE_UNIT, Partition.DISTANCE_THRESHOLDS, CommonParameters.Common.DISTANCE_FUNCTION_CLASS}, config, getScope()); return super.run(config, runTimeProperties); } }
NNJobRunner extends GeoWaveAnalyticJobRunner { @Override public int run(final Configuration config, final PropertyManagement runTimeProperties) throws Exception { final Partitioner<?> partitioner = runTimeProperties.getClassInstance( Partition.PARTITIONER_CLASS, Partitioner.class, OrthodromicDistancePartitioner.class); final Partitioner<?> secondaryPartitioner = runTimeProperties.getClassInstance( Partition.SECONDARY_PARTITIONER_CLASS, Partitioner.class, PassthruPartitioner.class); partitioner.setup(runTimeProperties, getScope(), config); if (secondaryPartitioner.getClass() != partitioner.getClass()) { secondaryPartitioner.setup(runTimeProperties, getScope(), config); } runTimeProperties.setConfig( new ParameterEnum[] { Partition.PARTITIONER_CLASS, Partition.SECONDARY_PARTITIONER_CLASS, Partition.MAX_DISTANCE, Partition.MAX_MEMBER_SELECTION, Partition.GEOMETRIC_DISTANCE_UNIT, Partition.DISTANCE_THRESHOLDS, CommonParameters.Common.DISTANCE_FUNCTION_CLASS}, config, getScope()); return super.run(config, runTimeProperties); }  }
NNJobRunner extends GeoWaveAnalyticJobRunner { @Override public int run(final Configuration config, final PropertyManagement runTimeProperties) throws Exception { final Partitioner<?> partitioner = runTimeProperties.getClassInstance( Partition.PARTITIONER_CLASS, Partitioner.class, OrthodromicDistancePartitioner.class); final Partitioner<?> secondaryPartitioner = runTimeProperties.getClassInstance( Partition.SECONDARY_PARTITIONER_CLASS, Partitioner.class, PassthruPartitioner.class); partitioner.setup(runTimeProperties, getScope(), config); if (secondaryPartitioner.getClass() != partitioner.getClass()) { secondaryPartitioner.setup(runTimeProperties, getScope(), config); } runTimeProperties.setConfig( new ParameterEnum[] { Partition.PARTITIONER_CLASS, Partition.SECONDARY_PARTITIONER_CLASS, Partition.MAX_DISTANCE, Partition.MAX_MEMBER_SELECTION, Partition.GEOMETRIC_DISTANCE_UNIT, Partition.DISTANCE_THRESHOLDS, CommonParameters.Common.DISTANCE_FUNCTION_CLASS}, config, getScope()); return super.run(config, runTimeProperties); }  @Override void configure(final Job job); @Override Class<?> getScope(); @Override int run(final Configuration config, final PropertyManagement runTimeProperties); @Override Collection<ParameterEnum<?>> getParameters(); }
NNJobRunner extends GeoWaveAnalyticJobRunner { @Override public int run(final Configuration config, final PropertyManagement runTimeProperties) throws Exception { final Partitioner<?> partitioner = runTimeProperties.getClassInstance( Partition.PARTITIONER_CLASS, Partitioner.class, OrthodromicDistancePartitioner.class); final Partitioner<?> secondaryPartitioner = runTimeProperties.getClassInstance( Partition.SECONDARY_PARTITIONER_CLASS, Partitioner.class, PassthruPartitioner.class); partitioner.setup(runTimeProperties, getScope(), config); if (secondaryPartitioner.getClass() != partitioner.getClass()) { secondaryPartitioner.setup(runTimeProperties, getScope(), config); } runTimeProperties.setConfig( new ParameterEnum[] { Partition.PARTITIONER_CLASS, Partition.SECONDARY_PARTITIONER_CLASS, Partition.MAX_DISTANCE, Partition.MAX_MEMBER_SELECTION, Partition.GEOMETRIC_DISTANCE_UNIT, Partition.DISTANCE_THRESHOLDS, CommonParameters.Common.DISTANCE_FUNCTION_CLASS}, config, getScope()); return super.run(config, runTimeProperties); }  @Override void configure(final Job job); @Override Class<?> getScope(); @Override int run(final Configuration config, final PropertyManagement runTimeProperties); @Override Collection<ParameterEnum<?>> getParameters();  }