java.lang.Object
com.pervasive.datarush.matching.Filter
Configuration for a filter used during matching operations.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFilter()Construct an empty filter.Filter(FilterType type) Construct a filter of the given type.Filter(FilterType type, String fieldName) Construct a filter of the given type using the given input field name.Filter(FilterType type, String fieldName, String propertyName, Object propertyValue) Construct a filter of the given type using the given input field name.Construct a filter of the given type using the given input field name. -
Method Summary
Modifier and TypeMethodDescriptiongetField()Get the input field name to the filter.Get the implementation specific properties of the filter.getType()Get the filter type.voidSet the input field name to the filter.voidsetProperties(Map<String, Object> properties) Set the implementation specific properties of the filter.voidsetProperty(String name, Object value) Set an implementation specific property on a filter.voidsetType(FilterType type) Set the filter type.
-
Field Details
-
DEFAULT_FIELD_NAME
The default field name used by a filter.- See Also:
-
PROPS_MINVALUE
The threshold value property for a greater-than-or-equal filter- See Also:
-
-
Constructor Details
-
Filter
public Filter()Construct an empty filter. -
Filter
Construct a filter of the given type.- Parameters:
type- the type of filter
-
Filter
Construct a filter of the given type using the given input field name.- Parameters:
type- type the type of filterfieldName- input field name
-
Filter
Construct a filter of the given type using the given input field name. The properties are specific to an implementation of a filter.- Parameters:
type- type the type of filterfieldName- input field nameproperties- implementation specific properties
-
Filter
Construct a filter of the given type using the given input field name. Set the given property value for the filter. Properties are specific to filter implementations.- Parameters:
type- type the type of filterfieldName- input field namepropertyName- property namepropertyValue- property value
-
-
Method Details
-
getType
Get the filter type.- Returns:
- filter type
-
setType
Set the filter type.- Parameters:
type- filter type
-
getField
Get the input field name to the filter.- Returns:
- input field name
-
setField
Set the input field name to the filter.- Parameters:
fieldName- input field name
-
getProperties
Get the implementation specific properties of the filter.- Returns:
- implementation specific properties
-
setProperties
Set the implementation specific properties of the filter.- Parameters:
properties- implementation specific properties
-
setProperty
Set an implementation specific property on a filter.- Parameters:
name- name of the propertyvalue- value of the property
-