本文整理汇总了Java中org.pentaho.di.trans.step.StepMetaInjectionInterface类的典型用法代码示例。如果您正苦于以下问题:Java StepMetaInjectionInterface类的具体用法?Java StepMetaInjectionInterface怎么用?Java StepMetaInjectionInterface使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StepMetaInjectionInterface类属于org.pentaho.di.trans.step包,在下文中一共展示了StepMetaInjectionInterface类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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;
}
示例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();
}
示例4: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new TokenReplacementMetaInjection( this );
}
示例5: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new ParquetOutputMetaInjection( this );
}
示例6: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return super.getStepMetaInjectionInterface();
}
示例7: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new FixedInputMetaInjection(this);
}
示例8: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return this;
}
示例9: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new DenormaliserMetaInjection(this);
}
示例10: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new ExcelInputMetaInjection(this);
}
示例11: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new NormaliserMetaInjection(this);
}
示例12: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new FieldSplitterMetaInjection(this);
}
示例13: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new AccessInputMetaInjection(this);
}
示例14: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new GroupByMetaInjection(this);
}
示例15: getStepMetaInjectionInterface
import org.pentaho.di.trans.step.StepMetaInjectionInterface; //导入依赖的package包/类
@Override
public StepMetaInjectionInterface getStepMetaInjectionInterface() {
return new SortRowsMetaInjection(this);
}