|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A SimplePredicate consists of a
single comparison between an attribute name and a
constant. The constant can be of any JDM-accepted
datatype.
Examples include age < 20 and gender == Male.
If the comparison function is in or notIn the value could be a set rather than a single constant. For example, marital_status IN { Single, Separated } is a simple predicate.
Predicate| Method Summary | |
java.lang.String |
getAttributeName()
Returns the name of the attribute associated with the predicate. |
java.lang.Object[] |
getCategoryValues()
Returns an array of categorical values associated with the predicate if the type is categorical. |
ComparisonOperator |
getComparisonOperator()
Returns the type of comparison associated with the predicate. |
java.lang.Double |
getNumericalValue()
Returns the numerical constant value of the predicate. |
boolean |
isNumericalValue()
Returns true if the constant associated with the predicate is a number. |
| Method Detail |
public java.lang.String getAttributeName()
public java.lang.Object[] getCategoryValues()
public ComparisonOperator getComparisonOperator()
public java.lang.Double getNumericalValue()
public boolean isNumericalValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||