@Override public void run() { stepMeta.setDistributes( false ); } };
@Override public void run() { stepMeta.setRowDistribution( null ); // default stepMeta.setDistributes( true ); } };
public void setRowDistribution( RowDistributionInterface rowDistribution ) { this.rowDistribution = rowDistribution; if ( rowDistribution != null ) { setDistributes( true ); } setChanged( true ); }
public void setCopies() { getCurrentStep().setDistributes( false ); spoon.refreshGraph(); spoon.refreshTree(); }
public void setDistributes() { getCurrentStep().setDistributes( true ); getCurrentStep().setRowDistribution( null ); spoon.refreshGraph(); spoon.refreshTree(); }
public void setCustomRowDistribution() { // TODO: ask user which row distribution is needed... // RowDistributionInterface rowDistribution = askUserForCustomDistributionMethod(); getCurrentStep().setDistributes( true ); getCurrentStep().setRowDistribution( rowDistribution ); spoon.refreshGraph(); spoon.refreshTree(); }
fr.setDistributes( true ); fr.setRowDistribution( null ); } else if ( customDistribution ) { fr.setDistributes( true ); fr.setRowDistribution( rowDistribution ); } else { fr.setDistributes( false ); fr.setDistributes( false );
private static StepMeta createTestMeta() throws Exception { StepMetaInterface stepMetaInterface = mock( AbstractStepMeta.class ); when( stepMetaInterface.clone() ).thenReturn( stepMetaInterface ); StepMeta meta = new StepMeta( STEP_ID, "stepname", stepMetaInterface ); meta.setSelected( true ); meta.setDistributes( false ); meta.setCopiesString( "2" ); meta.setLocation( 1, 2 ); meta.setDraw( true ); meta.setDescription( "description" ); meta.setTerminator( true ); meta.setClusterSchemaName( "clusterSchemaName" ); boolean shouldDistribute = rand.nextBoolean(); meta.setDistributes( shouldDistribute ); if ( shouldDistribute ) { meta.setRowDistribution( selectRowDistribution() ); } Map<String, Map<String, String>> attributes = new HashMap<String, Map<String, String>>(); Map<String, String> map1 = new HashMap<String, String>(); map1.put( "1", "1" ); Map<String, String> map2 = new HashMap<String, String>(); map2.put( "2", "2" ); attributes.put( "qwerty", map1 ); attributes.put( "asdfg", map2 ); meta.setAttributesMap( attributes ); meta.setStepPartitioningMeta( createStepPartitioningMeta( "stepMethod", "stepSchema" ) ); meta.setTargetStepPartitioningMeta( createStepPartitioningMeta( "targetMethod", "targetSchema" ) ); meta.setClusterSchema( new ClusterSchema( "cluster_schema", Collections.<SlaveServer>emptyList() ) ); return meta; }
stepMeta.setDistributes( false );
stepMeta.setDistributes( r.getBoolean( KettleDatabaseRepository.FIELD_STEP_DISTRIBUTE, true ) ); int copies = (int) r.getInteger( KettleDatabaseRepository.FIELD_STEP_COPIES, 1 ); String copiesString = r.getString( KettleDatabaseRepository.FIELD_STEP_COPIES_STRING, null );
stepMeta.setDescription( getString( stepNode, PROP_DESCRIPTION ) ); stepMeta.setDistributes( stepNode.getProperty( PROP_STEP_DISTRIBUTE ).getBoolean() ); DataProperty rowDistributionProperty = stepNode.getProperty( PROP_STEP_ROW_DISTRIBUTION ); String rowDistributionCode = rowDistributionProperty == null ? null : rowDistributionProperty.getString();