- All Implemented Interfaces:
Serializable,Comparable<PMMLVersion>,java.lang.constant.Constable
Encapsulates version-specific PMML information. In general, we support reading from previous versions but write
to the latest version. We allow setting the current version to write via EngineConfig property.
At the moment, we are transitioning from KNIME 2.9 to KNIME 2.10 (and thus switching from PMML 4.1 to 4.2)
and so the KNIME client will set the engine config property based on which KNIME version is running.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EngineProperty<String>Property controlling PMML version to use when writing PMML -
Method Summary
Modifier and TypeMethodDescriptionstatic PMMLVersionfind(String version, PMMLVersion dflt) Finds the PMML version corresponding to the given string.static PMMLVersionget(EngineConfig config) Returns the PMML version to use based on the given DR engine configReturns the pmml namespace for this versionschema()Returns the schema that can be used for validating this PMML version.static PMMLVersionReturns the enum constant of this class with the specified name.static PMMLVersion[]values()Returns an array containing the constants of this enum class, in the order they are declared.version()Returns the version number (i.e.
-
Enum Constant Details
-
PMML_40
-
PMML_41
-
PMML_42
-
-
Field Details
-
PROPERTY
Property controlling PMML version to use when writing PMML
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
get
Returns the PMML version to use based on the given DR engine config- Parameters:
config- the engine config- Returns:
- the PMML version to use
-
version
Returns the version number (i.e. '4.2').- Returns:
- the pmml version number
-
namespace
Returns the pmml namespace for this version- Returns:
- the pmml namespace for this version
-
find
Finds the PMML version corresponding to the given string.- Parameters:
version- the version to finddflt- the default version to find if none can be found- Returns:
- the PMML version
-
schema
Returns the schema that can be used for validating this PMML version.- Returns:
- the schema
-