/** * @param method * @param partitionSchema */ public StepPartitioningMeta( String method, PartitionSchema partitionSchema ) throws KettlePluginException { setMethod( method ); this.partitionSchema = partitionSchema; hasChanged = false; }
public void updateMethod( String method ) throws KettlePluginException { stepMeta.getStepPartitioningMeta().setMethod( method ); }
public StepPartitioningMeta( Node partitioningMethodNode ) throws KettleException { this(); setMethod( getMethod( XMLHandler.getTagValue( partitioningMethodNode, "method" ) ) ); partitionSchemaName = XMLHandler.getTagValue( partitioningMethodNode, "schema_name" ); hasChanged = false; if ( partitioner != null ) { partitioner.loadXML( partitioningMethodNode ); } }
public StepPartitioningMeta loadStepPartitioningMeta( ObjectId id_step ) throws KettleException { StepPartitioningMeta stepPartitioningMeta = new StepPartitioningMeta(); stepPartitioningMeta.setPartitionSchemaName( repository .getStepAttributeString( id_step, "PARTITIONING_SCHEMA" ) ); String methodCode = repository.getStepAttributeString( id_step, "PARTITIONING_METHOD" ); stepPartitioningMeta.setMethod( StepPartitioningMeta.getMethod( methodCode ) ); if ( stepPartitioningMeta.getPartitioner() != null ) { stepPartitioningMeta.getPartitioner().loadRep( repository, id_step ); } stepPartitioningMeta.hasChanged( true ); return stepPartitioningMeta; }
stepPartitioningMeta.setMethod( StepPartitioningMeta.getMethod( methodCode ) ); if ( stepPartitioningMeta.getPartitioner() != null ) { proxy = new RepositoryProxy( stepNode.getNode( NODE_PARTITIONER_CUSTOM ) );