com.sun.labs.minion.query
Class StringRelation
java.lang.Object
com.sun.labs.minion.query.Element
com.sun.labs.minion.query.Relation
com.sun.labs.minion.query.StringRelation
public class StringRelation
- extends Relation
A query element for the string operators, which includes all of the valid
operators from Relation, as well as substring,
matches, starts, ends.
- See Also:
Relation
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StringRelation
public StringRelation(java.lang.String field,
Relation.Operator operator,
java.lang.String value)
- Creates a relation for a string field.
- Parameters:
field - the field that the relation should operate on. This should be
a field that has the SAVED attribute and is of type STRING.
If either of these preconditions is violated, a warning will be issued when
the query is evaluated by the engine.operator - the operator to use for the relationvalue - the value that is being compared to the values in the
field