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 long
serialVersionUID
-
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 FieldFilter
appendFilterRange(FieldFilterRange range)
Appends a filter clause to the current filter Applied to current target field Each clause if OR'ed.String
getFieldName()
the field name.int
getRangeCount()
The number of ranges used in this filter.List<FieldFilterRange>
getRanges()
String
toString()
String
toString(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
-
-