public class Filter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FIELD_NAME
The default field name used by a filter.
|
static String |
PROPS_MINVALUE
The threshold value property for a greater-than-or-equal filter
|
| Constructor and Description |
|---|
Filter()
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,
Map<String,Object> properties)
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.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getField()
Get the input field name to the filter.
|
Map<String,Object> |
getProperties()
Get the implementation specific properties of the filter.
|
FilterType |
getType()
Get the filter type.
|
void |
setField(String fieldName)
Set the input field name to the filter.
|
void |
setProperties(Map<String,Object> properties)
Set the implementation specific properties of the filter.
|
void |
setProperty(String name,
Object value)
Set an implementation specific property on a filter.
|
void |
setType(FilterType type)
Set the filter type.
|
public static final String DEFAULT_FIELD_NAME
public static final String PROPS_MINVALUE
public Filter()
public Filter(FilterType type)
type - the type of filterpublic Filter(FilterType type, String fieldName)
type - type the type of filterfieldName - input field namepublic Filter(FilterType type, String fieldName, Map<String,Object> properties)
type - type the type of filterfieldName - input field nameproperties - implementation specific propertiespublic Filter(FilterType type, String fieldName, String propertyName, Object propertyValue)
type - type the type of filterfieldName - input field namepropertyName - property namepropertyValue - property valuepublic FilterType getType()
public void setType(FilterType type)
type - filter typepublic String getField()
public void setField(String fieldName)
fieldName - input field namepublic Map<String,Object> getProperties()
public void setProperties(Map<String,Object> properties)
properties - implementation specific propertiesCopyright © 2016 Actian Corporation. All rights reserved.