本文整理汇总了Java中org.pentaho.di.core.util.AbstractStepMeta类的典型用法代码示例。如果您正苦于以下问题:Java AbstractStepMeta类的具体用法?Java AbstractStepMeta怎么用?Java AbstractStepMeta使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AbstractStepMeta类属于org.pentaho.di.core.util包,在下文中一共展示了AbstractStepMeta类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createTestMeta
点赞 2
import org.pentaho.di.core.util.AbstractStepMeta; //导入依赖的package包/类
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;
}
开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:38,
代码来源:StepMetaTest.java