Package org.hpccsystems.commons.ecl
Class FieldFilter
- java.lang.Object
-
- org.hpccsystems.commons.ecl.FieldFilter
-
- All Implemented Interfaces:
Serializable
public class FieldFilter extends Object implements Serializable
A field filter. Consists of a field name and a list of one or more alternative value ranges.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description FieldFilter(String fieldName)A wild card field filter.FieldFilter(String fieldName, FieldFilterRange filterRange)A field filter.FieldFilter(String fieldName, FieldFilterRange[] filterRanges)A field filter that checks only a prefix of of the field.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldFilterappendFilterRange(FieldFilterRange range)Appends a filter clause to the current filter Applied to current target field Each clause if OR'ed.StringgetFieldName()the field name.intgetRangeCount()The number of ranges used in this filter.List<FieldFilterRange>getRanges()StringtoString()StringtoString(boolean outputfieldexpression)To string.
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FieldFilter
public FieldFilter(String fieldName, FieldFilterRange filterRange)
A field filter.- Parameters:
fieldName- the field namefilterRange- the filter range
-
FieldFilter
public FieldFilter(String fieldName, FieldFilterRange[] filterRanges)
A field filter that checks only a prefix of of the field.- Parameters:
fieldName- the name of a field, can be a compound name.filterRanges- the list of alternative values
-
FieldFilter
public FieldFilter(String fieldName)
A wild card field filter.- Parameters:
fieldName- the field name
-
-
Method Detail
-
appendFilterRange
public FieldFilter appendFilterRange(FieldFilterRange range)
Appends a filter clause to the current filter Applied to current target field Each clause if OR'ed.- Parameters:
range- the fieldfilter range to append (OR)- Returns:
- the field filter
-
getFieldName
public String getFieldName()
the field name.- Returns:
- the field name
-
getRanges
public List<FieldFilterRange> getRanges()
-
getRangeCount
public int getRangeCount()
The number of ranges used in this filter.- Returns:
- the range count
-
toString
public String toString(boolean outputfieldexpression)
To string.- Parameters:
outputfieldexpression- the outputfieldexpression- Returns:
- the string
-
-