- CommonCodegenUtils - Class in org.kie.pmml.compiler.commons.utils
-
Class meant to provide helper methods to all code-generating classes
- CommonCodegenUtils.ReplacementTupla - Class in org.kie.pmml.compiler.commons.utils
-
- CONSTANT_VALUE - Static variable in class org.kie.pmml.compiler.commons.utils.ExpressionFunctionUtils
-
- convertToKieMiningField(MiningField, DataField) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Return a org.kie.pmml.api.models.MiningField out of a org.dmg.pmml.MiningField and
relative org.dmg.pmml.DataField ones
- convertToKieMiningFieldList(MiningSchema, DataDictionary) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Return a List<org.kie.pmml.api.models.MiningField&glt; out of a org.dmg.pmml
.MiningSchema one
- convertToKieOutputField(OutputField, DataField) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Return a org.kie.pmml.api.models.OutputField out of a org.dmg.pmml.OutputField one
- convertToKieOutputFieldList(Output, DataDictionary) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Return a List<org.kie.pmml.api.models.OutputField> out of a org.dmg.pmml
.Output one
- convertToKiePMMLApply(Apply) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
- convertToKiePMMLConstant(Constant) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
- convertToKiePMMLExpression(Expression) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
- convertToKiePMMLExpressions(List<Expression>) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
- convertToKiePMMLFieldRef(FieldRef) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
- convertToKiePMMLOutputField(OutputField) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Return a org.kie.pmml.commons.model.KiePMMLOutputField out of a org.dmg.pmml
.OutputField
- convertToKiePMMLOutputFieldList(Output) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Return a List<org.kie.pmml.commons.model.KiePMMLOutputField> out of a org.dmg.pmml
.Output
- convertToKiePMMLTarget(Target) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Return a org.kie.pmml.commons.model.KiePMMLTarget out of a org.dmg.pmml.Target
- convertToKiePMMLTargetList(Targets) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Return a List<org.kie.pmml.commons.model.KiePMMLTarget> out of a org.dmg.pmml
.Targets
- convertToKiePMMLTargetValue(TargetValue) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Return a org.kie.pmml.commons.model.KiePMMLTargetValue out of a org.dmg.pmml
.TargetValue
- convertToKiePMMLTargetValueList(List<TargetValue>) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Return a List<org.kie.pmml.commons.model.KiePMMLTargetValue> out of a
List<org.dmg.pmml.TargetValue>
- createArraysAsListExpression() - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Create an empty Arrays.asList() ExpressionStmt
- createArraysAsListFromList(List<?>) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Create a populated Arrays.asList(?...
- getActualValue(Object, DataType) - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLPredicateFactory
-
- getAssignExpression(BlockStmt, String) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Return an Optional<AssignExpr> with the given assignExpressionName from the given
BlockStmt
- getBoxedClassName(ParameterField) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Retrieve the mapped class name of the given ParameterField, eventually boxed (for
primitive ones)
It returns Object ParameterField.getDataType() is null
- getBoxedClassName(DataType) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Retrieve the mapped class name of the given DataType, eventually boxed (for
primitive ones).
- getCompoundPredicateBody(CompoundPredicate, DataDictionary, List<DerivedField>, List<MethodDeclaration>, String, String, AtomicInteger) - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLCompoundPredicateFactory
-
- getDataType(List<DerivedField>, DataDictionary, String) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
DataType of the given field, first looked upon derivedFields and then in
dataDictionary
- getDataType(DataDictionary, String) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
DATA_TYPE of the given field
- getDerivedFields(TransformationDictionary, LocalTransformations) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Return List<DerivedField>s from the given TransformationDictionary and
LocalTransformations
- getExplicitConstructorInvocationMethodReference(ExplicitConstructorInvocationStmt, String) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Return an Optional<MethodReferenceExpr> from the given
ExplicitConstructorInvocationStmt
- getExplicitConstructorInvocationParameter(ExplicitConstructorInvocationStmt, String) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Return an Optional<NameExpr> from the given ExplicitConstructorInvocationStmt
- getExplicitConstructorInvocationStmt(BlockStmt) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Return an Optional<ExplicitConstructorInvocationStmt> from the given BlockStmt
- getExpressionForObject(Object) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
- getExpressionMethodDeclarationWithKiePMMLNameValues(Expression, DataType, String) - Static method in class org.kie.pmml.compiler.commons.utils.ExpressionFunctionUtils
-
Return a MethodDeclaration with List<KiePMMLNameValue> param1 as parameter
e.g.
- getExpressionMethodDeclarationWithStringObjectMap(Expression, DataType, String) - Static method in class org.kie.pmml.compiler.commons.utils.ExpressionFunctionUtils
-
Return a MethodDeclaration with Map<String, Object> param1 as parameter
e.g.
- getExpressionMethodDeclarationWithVariableParameters(String, Expression, DataType, List<ParameterField>) - Static method in class org.kie.pmml.compiler.commons.utils.ExpressionFunctionUtils
-
Return a MethodDeclaration with parameters retrieved from parameterFields
e.g.
- getFactorySourceCode(String, String, Set<String>) - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLFactoryFactory
-
- getFalsePredicateBody() - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLFalsePredicateFactory
-
- getFilteredKiePMMLNameValueExpression(String, String, boolean) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Returns
Optional kiePMMLNameValue = (kiePMMLNameValueListParam)
.stream()
.filter((KiePMMLNameValue kpmmlnv) -> Objects.equals("(fieldNameToRef)", kpmmlnv.getName()))
.findFirst();
expression, where kiePMMLNameValueListParam is the name of the
List<KiePMMLNameValue> parameter, and
fieldNameToRef is the name of the field to find, in the containing method
- getFromCommonDataAndTransformationDictionaryAndModel(String, DataDictionary, TransformationDictionary, Model, HasClassLoader) - Static method in class org.kie.pmml.compiler.commons.implementations.KiePMMLModelRetriever
-
Read the given DataDictionary and Model> to return an Optional<
KiePMMLModel>
- getFromCommonDataAndTransformationDictionaryAndModelWithSources(String, DataDictionary, TransformationDictionary, Model, HasClassLoader) - Static method in class org.kie.pmml.compiler.commons.implementations.KiePMMLModelRetriever
-
Read the given DataDictionary and Model> to return an Optional<
KiePMMLModel>
- getFromCommonDataAndTransformationDictionaryAndModelWithSourcesCompiled(String, DataDictionary, TransformationDictionary, Model, HasClassLoader) - Static method in class org.kie.pmml.compiler.commons.implementations.KiePMMLModelRetriever
-
Read the given DataDictionary and Model> to return an Optional<
KiePMMLModel>
Method provided only to have drools models working when invoked by a KiePMMLMiningModel
- getFromFileName(String) - Static method in class org.kie.pmml.compiler.commons.utils.JavaParserUtils
-
- getFromSource(String) - Static method in class org.kie.pmml.compiler.commons.utils.JavaParserUtils
-
- getFullClassName(CompilationUnit) - Static method in class org.kie.pmml.compiler.commons.utils.JavaParserUtils
-
Return the fully qualified name of the generated class.
- getImplementations(boolean) - Method in class org.kie.pmml.compiler.commons.implementations.ModelImplementationProviderFinderImpl
-
- getInitializerBlockStmt(ClassOrInterfaceDeclaration) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Return an BlockStmt from the given ClassOrInterfaceDeclaration
- getInitializerDeclaration(ClassOrInterfaceDeclaration) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Return an InitializerDeclaration from the given ClassOrInterfaceDeclaration
- getKiePMMLCompoundPredicate(CompoundPredicate, DataDictionary) - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLPredicateFactory
-
- getKiePMMLExtension(Extension) - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLExtensionFactory
-
- getKiePMMLExtensions(List<Extension>) - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLExtensionFactory
-
- getKiePMMLFalsePredicate() - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLPredicateFactory
-
- getKiePMMLFieldRef(FieldRef) - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLFieldRefFactory
-
- getKiePMMLFieldRefs(List<FieldRef>) - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLFieldRefFactory
-
- getKiePMMLModelCompilationUnit(String, String, String, String) - Static method in class org.kie.pmml.compiler.commons.utils.JavaParserUtils
-
- getKiePMMLModels() - Method in interface org.kie.pmml.compiler.commons.factories.KiePMMLModelFactory
-
- getKiePMMLOutputField(OutputField) - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLOutputFieldFactory
-
- getKiePMMLSimplePredicate(SimplePredicate, DataType) - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLPredicateFactory
-
- getKiePMMLSimpleSetPredicate(SimpleSetPredicate) - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLPredicateFactory
-
- getKiePMMLTruePredicate() - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLPredicateFactory
-
- getMethodDeclaration(String, Map<String, ClassOrInterfaceType>) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Returns
empty (methodName)((list of parameterType parameter name)) {
}
a multi-parameters MethodDeclaration whose names are the keys of the given
Map
and methodArity, and whose parameters types are the values
The
- getMethodDeclaration(String) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Returns
empty (methodName)() {
}
A no-parameter MethodDeclaration whose name is derived from given methodName
and methodArity
- getMethodDeclaration(ClassOrInterfaceDeclaration, String) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Return an Optional<MethodDeclaration> with the first method methodName from
the given ClassOrInterfaceDeclaration
- getMethodDeclarationBlockStmt(ClassOrInterfaceDeclaration, String) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Return an BlockStmt for the method methodName from the given ClassOrInterfaceDeclaration
- getNameExprsFromBlock(BlockStmt, String) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Return a lit<NameExpr> with all the instances of the given exprName
- getOptionalVariableInitializer(MethodDeclaration, String) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Retrieve the initializer of the given variableName from the given MethodDeclaration
- getOpType(DataDictionary, Model, String) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
OP_TYPE may be defined inside DataField, MiningField or both.
- getOpTypeFromDataDictionary(DataDictionary, String) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Return Optional<OP_TYPE> of field with given fieldName from DataDictionary
- getOpTypeFromMiningFields(MiningSchema, String) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Return Optional<OP_TYPE> of field with given fieldName from MiningSchema
- getOpTypeFromTargets(Targets, String) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Return Optional<OP_TYPE> of field with given fieldName from Targets
- getOutputFields(Model) - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLOutputFieldFactory
-
- getPredicate(Predicate, DataDictionary) - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLPredicateFactory
-
- getPredicateBody(Predicate, DataDictionary, List<DerivedField>, List<MethodDeclaration>, String, String, AtomicInteger) - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLPredicateFactory
-
- getPredicates(List<Predicate>, DataDictionary) - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLPredicateFactory
-
- getPredicateSourcesMap(KiePMMLPredicate, String) - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLPredicateFactory
-
- getReturnStmt(String) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Returns
return (returnedVariableName);
e.g
return varOne;
- getSimplePredicateBody(SimplePredicate, DataType) - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLSimplePredicateFactory
-
- getSimpleSetPredicateBody(SimpleSetPredicate) - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLSimpleSetPredicateFactory
-
- getTargetFieldName(DataDictionary, Model) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Return an Optional with the name of the field whose usageType is TARGET or
PREDICTED
While the xsd schema does not strictly enforce this, it seems that by convention majority of models has
only one target.
- getTargetFields(DataDictionary, Model) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Return a List<KiePMMLNameOpType> of target fields
Please note that only predicted/target
MiningField are considered.
- getTargetFieldsTypeMap(DataDictionary, Model) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Returns a Map<String, DATA_TYPE> of target fields, where the key is the name of the field,
and the value is the type of the field
Please note that only predicted/target
MiningField are considered.
- getTargetFieldType(DataDictionary, Model) - Static method in class org.kie.pmml.compiler.commons.utils.ModelUtils
-
Return the DATA_TYPE> of the field whose usageType is TARGET or
PREDICTED.
- getTruePredicateBody() - Static method in class org.kie.pmml.compiler.commons.factories.KiePMMLTruePredicateFactory
-
- getTypedClassOrInterfaceType(String, List<String>) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Returns
(className)<(comma-separated list of types)>
e.g
CLASS_NAME
a typed ClassOrInterfaceType
- getVariableDeclarator(MethodDeclaration, String) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Return an Optional<VariableDeclarator> with the first variable variableName
from the given MethodDeclaration
- getVariableDeclarator(BlockStmt, String) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Return an Optional<VariableDeclarator> with the first variable variableName
from the given BlockStmt
- getVariableInitializer(MethodDeclaration, String) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Retrieve the initializer of the given variableName from the given MethodDeclaration
- getVariableInitializer(BlockStmt, String) - Static method in class org.kie.pmml.compiler.commons.utils.CommonCodegenUtils
-
Retrieve the initializer of the given variableName from the given MethodDeclaration