@Test public void addSourceMap() { Map<String, String> retrieved = kiePMMLMiningModelWithSources.getSourcesMap(); assertTrue(retrieved.isEmpty()); kiePMMLMiningModelWithSources.addSourceMap("KEY", "VALUE"); retrieved = kiePMMLMiningModelWithSources.getSourcesMap(); assertTrue(retrieved.containsKey("KEY")); assertEquals("VALUE", retrieved.get("KEY")); }
@Override public void addSourceMap(String key, String value) { sourcesMap.put(key, value); }
KiePMMLMiningModelWithSources extends KiePMMLMiningModel implements HasSourcesMap { @Override public void addSourceMap(String key, String value) { sourcesMap.put(key, value); } }
KiePMMLMiningModelWithSources extends KiePMMLMiningModel implements HasSourcesMap { @Override public void addSourceMap(String key, String value) { sourcesMap.put(key, value); } KiePMMLMiningModelWithSources(String modelName, String kmodulePackageName, Map<String, String> sourcesMap,List<KiePMMLModel> nestedModels); }
KiePMMLMiningModelWithSources extends KiePMMLMiningModel implements HasSourcesMap { @Override public void addSourceMap(String key, String value) { sourcesMap.put(key, value); } KiePMMLMiningModelWithSources(String modelName, String kmodulePackageName, Map<String, String> sourcesMap,List<KiePMMLModel> nestedModels); @Override Object evaluate(final Object knowledgeBase, Map<String, Object> requestData); @Override Map<String, Object> getOutputFieldsMap(); @Override Map<String, String> getSourcesMap(); @Override void addSourceMap(String key, String value); @Override String getKModulePackageName(); @Override List<KiePMMLModel> getNestedModels(); }
KiePMMLMiningModelWithSources extends KiePMMLMiningModel implements HasSourcesMap { @Override public void addSourceMap(String key, String value) { sourcesMap.put(key, value); } KiePMMLMiningModelWithSources(String modelName, String kmodulePackageName, Map<String, String> sourcesMap,List<KiePMMLModel> nestedModels); @Override Object evaluate(final Object knowledgeBase, Map<String, Object> requestData); @Override Map<String, Object> getOutputFieldsMap(); @Override Map<String, String> getSourcesMap(); @Override void addSourceMap(String key, String value); @Override String getKModulePackageName(); @Override List<KiePMMLModel> getNestedModels();  }