本文整理汇总了Java中org.pentaho.di.trans.step.StepMetaInjectionInterface类的典型用法代码示例。如果您正苦于以下问题:Java StepMetaInjectionInterface类的具体用法?Java StepMetaInjectionInterface怎么用?Java StepMetaInjectionInterface使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StepMetaInjectionInterface类属于org.pentaho.di.trans.step包,在下文中一共展示了StepMetaInjectionInterface类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: init
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
public boolean init(StepMetaInterface smi, StepDataInterface sdi) {
meta = (MetaInjectMeta) smi;
data = (MetaInjectData) sdi;
if (super.init(smi, sdi)) {
try {
data.transMeta = MetaInjectMeta.loadTransformationMeta(meta, getTrans().getRepository(), this);
// Get a mapping between the step name and the injection...
//
data.stepInjectionMap = new HashMap<String, StepMetaInjectionInterface>();
for (StepMeta stepMeta : data.transMeta.getUsedSteps()) {
StepMetaInjectionInterface injectionInterface = stepMeta.getStepMetaInterface().getStepMetaInjectionInterface();
if (injectionInterface != null) {
data.stepInjectionMap.put(stepMeta.getName(), injectionInterface);
}
}
return true;
} catch (Exception e) {
logError(BaseMessages.getString(PKG, "MetaInject.BadEncoding.Message"), e); //$NON-NLS-1$
return false;
}
}
return false;
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:28,代码来源:MetaInject.java
示例2: init
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
public boolean init(StepMetaInterface smi, StepDataInterface sdi) {
meta = (MetaInjectMeta) smi;
data = (MetaInjectData) sdi;
if (super.init(smi, sdi)) {
try {
data.transMeta = MetaInjectMeta.loadTransformationMeta(meta, getTrans().getRepository(), this);
data.transMeta.copyVariablesFrom(this);
// Get a mapping between the step name and the injection...
//
data.stepInjectionMap = new HashMap<String, StepMetaInjectionInterface>();
for (StepMeta stepMeta : data.transMeta.getUsedSteps()) {
StepMetaInjectionInterface injectionInterface = stepMeta.getStepMetaInterface().getStepMetaInjectionInterface();
if (injectionInterface != null) {
data.stepInjectionMap.put(stepMeta.getName(), injectionInterface);
}
}
return true;
} catch (Exception e) {
logError(BaseMessages.getString(PKG, "MetaInject.BadEncoding.Message"), e); //$NON-NLS-1$
return false;
}
}
return false;
}
开发者ID:bsspirit,项目名称:kettle-4.4.0-stable,代码行数:29,代码来源:MetaInject.java
示例3: before
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Before
public void before() throws Exception {
repository = PowerMockito.mock( Repository.class );
transMeta = PowerMockito.spy( new TransMeta() );
meta = new MetaInjectMeta();
data = new MetaInjectData();
data.transMeta = transMeta;
metaInject = StepMockUtil.getStep( MetaInject.class, MetaInjectMeta.class, "MetaInjectTest" );
metaInject = PowerMockito.spy( metaInject );
metaInject.init( meta, data );
metaStore = mock( IMetaStore.class );
metaInject.setMetaStore( metaStore );
doReturn( transMeta ).when( metaInject ).getTransMeta();
TransMeta internalTransMeta = mock( TransMeta.class );
StepMeta stepMeta = mock( StepMeta.class );
trans = mock( Trans.class );
doReturn( trans ).when( metaInject ).getTrans();
doReturn( INJECTOR_STEP_NAME ).when( stepMeta ).getName();
doReturn( Collections.singletonList( stepMeta ) ).when( internalTransMeta ).getUsedSteps();
StepMetaInterface stepMetaInterface = mock( StepMetaInterface.class );
doReturn( stepMetaInterface ).when( stepMeta ).getStepMetaInterface();
metaInjectionInterface = mock( StepMetaInjectionInterface.class );
doReturn( metaInjectionInterface ).when( stepMetaInterface ).getStepMetaInjectionInterface();
doReturn( internalTransMeta ).when( metaInject ).loadTransformationMeta();
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:28,代码来源:MetaInjectTest.java
示例4: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new TokenReplacementMetaInjection( this );
}
开发者ID:cdeptula,项目名称:TokenReplacementPlugin,代码行数:5,代码来源:TokenReplacementMeta.java
示例5: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new ParquetOutputMetaInjection( this );
}
开发者ID:inquidia,项目名称:ParquetPlugin,代码行数:5,代码来源:ParquetOutputMeta.java
示例6: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return super.getStepMetaInjectionInterface();
}
开发者ID:mattyb149,项目名称:pdi-pojo,代码行数:4,代码来源:StepPluginPOJO.java
示例7: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new FixedInputMetaInjection(this);
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:4,代码来源:FixedInputMeta.java
示例8: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return this;
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:4,代码来源:SelectValuesMeta.java
示例9: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new DenormaliserMetaInjection(this);
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:5,代码来源:DenormaliserMeta.java
示例10: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new ExcelInputMetaInjection(this);
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:4,代码来源:ExcelInputMeta.java
示例11: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new NormaliserMetaInjection(this);
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:5,代码来源:NormaliserMeta.java
示例12: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new FieldSplitterMetaInjection(this);
}
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:5,代码来源:FieldSplitterMeta.java
示例13: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new AccessInputMetaInjection(this);
}
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:5,代码来源:AccessInputMeta.java
示例14: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new GroupByMetaInjection(this);
}
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:5,代码来源:GroupByMeta.java
示例15: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new SortRowsMetaInjection(this);
}
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:5,代码来源:SortRowsMeta.java
示例16: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new ParGzipCsvInputMetaInjection(this);
}
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:5,代码来源:ParGzipCsvInputMeta.java
示例17: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new TextFileInputMetaInjection(this);
}
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:5,代码来源:TextFileInputMeta.java
示例18: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new PushNotificationMetaInjection(this);
}
开发者ID:latinojoel,项目名称:pdi-apple-pushnotifications,代码行数:7,代码来源:PushNotificationMeta.java
示例19: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new TDEOutputMetaInjection( this );
}
开发者ID:cdeptula,项目名称:tdeoutputplugin,代码行数:5,代码来源:TDEOutputMeta.java
示例20: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new FixedInputMetaInjection( this );
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:4,代码来源:FixedInputMeta.java
注:本文中的org.pentaho.di.trans.step.StepMetaInjectionInterface类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论