java.lang.Object
com.pervasive.datarush.matching.Classifier
Describes which classification methodology to use. Classification takes multiple comparison
results and generates a single value that summarizes the strength of the field comparisons.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstruct an empty classifier.Classifier(ClassifierType type, String[] fieldNames, String outputFieldName) Construct a classifier without any specific properties.Classifier(ClassifierType type, String[] fieldNames, String outputFieldName, Map<String, Object> properties) Construct a classifier with properties specific to the classifier type. -
Method Summary
Modifier and TypeMethodDescriptionString[]Get the input field names.Get the output field name.Get the classifier type specific properties.getType()Get the classifier type.voidSet the input field names.voidSet the output field name.voidsetProperties(Map<String, Object> properties) Set the classifier type specific properties.voidsetProperty(String name, Object value) Set a type specific property.voidsetType(ClassifierType type) Set the classifier type.
-
Field Details
-
DEFAULT_FIELD_NAME
The default name of the field generated by a classifier.- See Also:
-
PROP_WEIGHTS
Name of the property utilized by the weighted average classifier.- See Also:
-
-
Constructor Details
-
Classifier
public Classifier()Construct an empty classifier. -
Classifier
Construct a classifier without any specific properties.- Parameters:
type- the type of classifier wantedfieldNames- input field names of the classifieroutputFieldName- name of the output field containing the score
-
Classifier
public Classifier(ClassifierType type, String[] fieldNames, String outputFieldName, Map<String, Object> properties) Construct a classifier with properties specific to the classifier type.- Parameters:
type- the type of classifier wantedfieldNames- input field names of the classifieroutputFieldName- name of the output field containing the scoreproperties- properties specific to the classifier type
-
-
Method Details
-
getType
Get the classifier type.- Returns:
- classifier type
-
setType
Set the classifier type.- Parameters:
type- the classifier type
-
getProperties
Get the classifier type specific properties.- Returns:
- classifier type specific properties
-
setProperties
Set the classifier type specific properties. This sets the current properties, overriding all other settings.- Parameters:
properties- the classifier type specific properties
-
setProperty
Set a type specific property.- Parameters:
name- property namevalue- property value
-
getFields
Get the input field names.- Returns:
- input field names
-
setFields
Set the input field names.- Parameters:
fieldNames- input field names
-
getOutput
Get the output field name.- Returns:
- output field names
-
setOutput
Set the output field name.- Parameters:
outputFieldName- output field names
-