Package org.kie.pmml.pmml_4_2.model
Class PMML4UnitImpl
- java.lang.Object
-
- org.kie.pmml.pmml_4_2.model.PMML4UnitImpl
-
-
Constructor Summary
Constructors Constructor Description PMML4UnitImpl(String pmmlSourcePath)PMML4UnitImpl(org.dmg.pmml.pmml_4_2.descr.PMML rawPmml)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsMiningModel()PMMLDataFieldfindDataDictionaryEntry(String fieldName)Map<String,PMML4Model>getChildModels(String parentModelId)Retrieves a Map whose entries consist of key -> a model identifier value -> the PMML4Model object that the key refers to where the PMML4Model indicates that itList<PMMLDataField>getDataDictionaryFields()Map<String,PMMLDataField>getDataDictionaryMap()Map<String,List<org.dmg.pmml.pmml_4_2.descr.MiningField>>getMiningFields()Retrieves a Map with entries that consist of key -> a model identifier value -> the List of raw MiningField objects belonging to the model referenced by the keyList<org.dmg.pmml.pmml_4_2.descr.MiningField>getMiningFieldsForModel(String modelId)Retrieves a List of the raw MiningField objects for a given modelStringgetModelExternalMiningBeansRules(String modelName)Map<String,String>getModelPackageNames()List<PMML4Model>getModels()Map<String,PMML4Model>getModels(PMML4ModelType type, PMML4Model parent)Map<String,PMML4Model>getModelsMap()org.dmg.pmml.pmml_4_2.descr.PMMLgetRawPMML()MiningmodelgetRootMiningModel()PMML4ModelgetRootModel()Map<String,PMML4Model>getRootModels()Retrieves a Map with entries that consist of key -> a model identifier value -> the PMML4Model object that the key refers to where the PMML4Model does not indicate a parent model (i.e. the model is not a child model)StringgetRootPackage()
-
-
-
Constructor Detail
-
PMML4UnitImpl
public PMML4UnitImpl(org.dmg.pmml.pmml_4_2.descr.PMML rawPmml)
-
PMML4UnitImpl
public PMML4UnitImpl(String pmmlSourcePath)
-
-
Method Detail
-
getRawPMML
public org.dmg.pmml.pmml_4_2.descr.PMML getRawPMML()
- Specified by:
getRawPMMLin interfacePMML4Unit
-
getMiningFieldsForModel
public List<org.dmg.pmml.pmml_4_2.descr.MiningField> getMiningFieldsForModel(String modelId)
Retrieves a List of the raw MiningField objects for a given model- Parameters:
modelId- The identifier of the model for which the list of MiningField objects is retrieved- Returns:
- The list of MiningField objects belonging to the identified model
-
getMiningFields
public Map<String,List<org.dmg.pmml.pmml_4_2.descr.MiningField>> getMiningFields()
Retrieves a Map with entries that consist of key -> a model identifier value -> the List of raw MiningField objects belonging to the model referenced by the key- Returns:
- The Map of model identifiers and their corresponding list of raw MiningField objects
-
getModelsMap
public Map<String,PMML4Model> getModelsMap()
-
getRootModels
public Map<String,PMML4Model> getRootModels()
Retrieves a Map with entries that consist of key -> a model identifier value -> the PMML4Model object that the key refers to where the PMML4Model does not indicate a parent model (i.e. the model is not a child model)- Specified by:
getRootModelsin interfacePMML4Unit- Returns:
- The Map of model identifiers and their corresponding PMML4Model objects
-
getRootMiningModel
public Miningmodel getRootMiningModel()
- Specified by:
getRootMiningModelin interfacePMML4Unit
-
getChildModels
public Map<String,PMML4Model> getChildModels(String parentModelId)
Retrieves a Map whose entries consist of key -> a model identifier value -> the PMML4Model object that the key refers to where the PMML4Model indicates that it- Parameters:
parentModelId-- Returns:
-
getModels
public Map<String,PMML4Model> getModels(PMML4ModelType type, PMML4Model parent)
-
getRootModel
public PMML4Model getRootModel()
- Specified by:
getRootModelin interfacePMML4Unit
-
containsMiningModel
public boolean containsMiningModel()
- Specified by:
containsMiningModelin interfacePMML4Unit
-
getModels
public List<PMML4Model> getModels()
-
getDataDictionaryFields
public List<PMMLDataField> getDataDictionaryFields()
- Specified by:
getDataDictionaryFieldsin interfacePMML4Unit
-
getDataDictionaryMap
public Map<String,PMMLDataField> getDataDictionaryMap()
- Specified by:
getDataDictionaryMapin interfacePMML4Unit
-
getRootPackage
public String getRootPackage()
- Specified by:
getRootPackagein interfacePMML4Unit
-
getModelExternalMiningBeansRules
public String getModelExternalMiningBeansRules(String modelName)
- Specified by:
getModelExternalMiningBeansRulesin interfacePMML4Unit
-
findDataDictionaryEntry
public PMMLDataField findDataDictionaryEntry(String fieldName)
- Specified by:
findDataDictionaryEntryin interfacePMML4Unit
-
-