Interface ModelImplementationProvider<T extends org.dmg.pmml.Model,E extends org.kie.pmml.commons.model.KiePMMLModel>
-
public interface ModelImplementationProvider<T extends org.dmg.pmml.Model,E extends org.kie.pmml.commons.model.KiePMMLModel>API for actual PMML model implementations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EgetKiePMMLModel(String packageName, List<org.dmg.pmml.Field<?>> fields, org.dmg.pmml.TransformationDictionary transformationDictionary, T model, org.kie.pmml.commons.model.HasClassLoader hasClassloader)Method to be called for a runtime compilationEgetKiePMMLModelWithSources(String packageName, List<org.dmg.pmml.Field<?>> fields, org.dmg.pmml.TransformationDictionary transformationDictionary, T model, org.kie.pmml.commons.model.HasClassLoader hasClassloader)Method to be called following a kie-maven-plugin invocationdefault EgetKiePMMLModelWithSourcesCompiled(String packageName, List<org.dmg.pmml.Field<?>> fields, org.dmg.pmml.TransformationDictionary transformationDictionary, T model, org.kie.pmml.commons.model.HasClassLoader hasClassloader)Method provided only to have drools models working when invoked by aMiningModelDefault implementation provided for not-drools models.org.kie.pmml.api.enums.PMML_MODELgetPMMLModelType()
-
-
-
Method Detail
-
getPMMLModelType
org.kie.pmml.api.enums.PMML_MODEL getPMMLModelType()
-
getKiePMMLModel
E getKiePMMLModel(String packageName, List<org.dmg.pmml.Field<?>> fields, org.dmg.pmml.TransformationDictionary transformationDictionary, T model, org.kie.pmml.commons.model.HasClassLoader hasClassloader)
Method to be called for a runtime compilation- Parameters:
packageName- the package into which put all the generated classes out of the givenModelfields- Should contain all fields retrieved from model, i.e. DataFields from DataDictionary, DerivedFields from Transformations/LocalTransformations, OutputFieldstransformationDictionary-model-hasClassloader- UsingHasClassloaderto avoid coupling with drools- Returns:
- Throws:
org.kie.pmml.api.exceptions.KiePMMLInternalException
-
getKiePMMLModelWithSources
E getKiePMMLModelWithSources(String packageName, List<org.dmg.pmml.Field<?>> fields, org.dmg.pmml.TransformationDictionary transformationDictionary, T model, org.kie.pmml.commons.model.HasClassLoader hasClassloader)
Method to be called following a kie-maven-plugin invocation- Parameters:
packageName-fields- Should contain all fields retrieved from model, i.e. DataFields from DataDictionary, DerivedFields from Transformations/LocalTransformations, OutputFieldstransformationDictionary-model-hasClassloader-- Returns:
- Throws:
org.kie.pmml.api.exceptions.KiePMMLInternalException
-
getKiePMMLModelWithSourcesCompiled
default E getKiePMMLModelWithSourcesCompiled(String packageName, List<org.dmg.pmml.Field<?>> fields, org.dmg.pmml.TransformationDictionary transformationDictionary, T model, org.kie.pmml.commons.model.HasClassLoader hasClassloader)
Method provided only to have drools models working when invoked by aMiningModelDefault implementation provided for not-drools models.- Parameters:
packageName- the package into which put all the generated classes out of the givenModelfields- Should contain all fields retrieved from model, i.e. DataFields from DataDictionary, * DerivedFields from Transformations/LocalTransformations, OutputFieldsmodel-hasClassloader- UsingHasClassloaderto avoid coupling with drools- Returns:
- Throws:
org.kie.pmml.api.exceptions.KiePMMLInternalException
-
-