use of org.pentaho.di.trans.steps.mongodbinput.MongoDbInputMeta in project pdi-dataservice-server-plugin by pentaho.
the class MongodbInputParameterGeneration method getFieldMappings.
protected Map<String, String> getFieldMappings(StepInterface stepInterface) {
Map<String, String> fieldMap = new HashMap<String, String>();
MongoDbInput mongoDbInput = (MongoDbInput) stepInterface;
MongoDbInputMeta mongoDbInputMeta = (MongoDbInputMeta) mongoDbInput.getStepMeta().getStepMetaInterface();
for (MongoField mongoField : mongoDbInputMeta.getMongoFields()) {
fieldMap.put(mongoField.getName(), mongoField.getPath());
}
return fieldMap;
}
use of org.pentaho.di.trans.steps.mongodbinput.MongoDbInputMeta in project pdi-dataservice-server-plugin by pentaho.
the class MongoDbBasicValidation method checkStep.
@Override
public void checkStep(CheckStepsExtension checkStepExtension, DataServiceMeta dataServiceMeta, LogChannelInterface log) {
StepMeta stepMeta = checkStepExtension.getStepMetas()[0];
List<CheckResultInterface> remarks = checkStepExtension.getRemarks();
MongoDbInputMeta mongoDbMeta = (MongoDbInputMeta) checkStepExtension.getStepMetas()[0].getStepMetaInterface();
VariableSpace space = checkStepExtension.getVariableSpace();
checkOutputJson(stepMeta, remarks, mongoDbMeta);
checkPushdownParameter(stepMeta, remarks, mongoDbMeta, space);
checkParameterGenerationOptimizedMeta(checkStepExtension, dataServiceMeta, log);
}
Aggregations