use of org.pentaho.di.trans.steps.mongodbinput.MongoDbInput 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;
}
Aggregations