&& partitioningMeta.getMethodType() != StepPartitioningMeta.PARTITIONING_METHOD_NONE && partitioningMeta.getPartitionSchema() != null ) {
continue; if ( stepPartitioningMeta.getMethodType() == StepPartitioningMeta.PARTITIONING_METHOD_NONE ) { continue;
public void createPartitioner( String method ) throws KettlePluginException { methodType = getMethodType( method ); switch ( methodType ) { case PARTITIONING_METHOD_SPECIAL: { PluginRegistry registry = PluginRegistry.getInstance(); PluginInterface plugin = registry.findPluginWithId( PartitionerPluginType.class, method ); partitioner = (Partitioner) registry.loadClass( plugin ); partitioner.setId( plugin.getIds()[0] ); break; } case PARTITIONING_METHOD_NONE: default: partitioner = null; } if ( partitioner != null ) { partitioner.setMeta( this ); } }
public void rollback( StepMeta before ) throws KettlePluginException { updateMethod( before.getStepPartitioningMeta().getMethod() ); updateMethodType( before.getStepPartitioningMeta().getMethodType() ); updateSchema( before.getStepPartitioningMeta().getPartitionSchema() ); }
baseStep.setRepartitioning( nextStepPartitioningMeta.getMethodType() ); baseStep.setRepartitioning( targetStepPartitioningMeta.getMethodType() );
if ( !StringUtil.isEmpty( partitionMethodDescription ) ) { String method = settings.getMethodByMethodDescription( partitionMethodDescription ); int methodType = StepPartitioningMeta.getMethodType( method );