Package org.drools.core.util.index
Enum IndexUtil.ConstraintType
- java.lang.Object
-
- java.lang.Enum<IndexUtil.ConstraintType>
-
- org.drools.core.util.index.IndexUtil.ConstraintType
-
- All Implemented Interfaces:
Serializable
,Comparable<IndexUtil.ConstraintType>
- Enclosing class:
- IndexUtil
public static enum IndexUtil.ConstraintType extends Enum<IndexUtil.ConstraintType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUAL
GREATER_OR_EQUAL
GREATER_THAN
LESS_OR_EQUAL
LESS_THAN
NOT_EQUAL
RANGE
UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canInverse()
static IndexUtil.ConstraintType
decode(String operator)
static IndexUtil.ConstraintType
decode(String operator, boolean negated)
String
getOperator()
May be null.static IndexUtil.ConstraintType
getType(Constraint constraint)
IndexUtil.ConstraintType
inverse()
boolean
isAscending()
boolean
isComparison()
boolean
isDescending()
boolean
isEquality()
boolean
isIndexable()
boolean
isIndexableForNode(short nodeType, IndexableConstraint constraint, RuleBaseConfiguration config)
IndexUtil.ConstraintType
negate()
static IndexUtil.ConstraintType
valueOf(String name)
Returns the enum constant of this type with the specified name.static IndexUtil.ConstraintType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUAL
public static final IndexUtil.ConstraintType EQUAL
-
NOT_EQUAL
public static final IndexUtil.ConstraintType NOT_EQUAL
-
GREATER_THAN
public static final IndexUtil.ConstraintType GREATER_THAN
-
GREATER_OR_EQUAL
public static final IndexUtil.ConstraintType GREATER_OR_EQUAL
-
LESS_THAN
public static final IndexUtil.ConstraintType LESS_THAN
-
LESS_OR_EQUAL
public static final IndexUtil.ConstraintType LESS_OR_EQUAL
-
RANGE
public static final IndexUtil.ConstraintType RANGE
-
UNKNOWN
public static final IndexUtil.ConstraintType UNKNOWN
-
-
Method Detail
-
values
public static IndexUtil.ConstraintType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IndexUtil.ConstraintType c : IndexUtil.ConstraintType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IndexUtil.ConstraintType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isComparison
public boolean isComparison()
-
isEquality
public boolean isEquality()
-
isAscending
public boolean isAscending()
-
isDescending
public boolean isDescending()
-
isIndexable
public boolean isIndexable()
-
getOperator
public String getOperator()
May be null.- Returns:
- the operator string representation if does exists, null otherwise.
-
isIndexableForNode
public boolean isIndexableForNode(short nodeType, IndexableConstraint constraint, RuleBaseConfiguration config)
-
negate
public IndexUtil.ConstraintType negate()
-
canInverse
public boolean canInverse()
-
inverse
public IndexUtil.ConstraintType inverse()
-
decode
public static IndexUtil.ConstraintType decode(String operator)
-
decode
public static IndexUtil.ConstraintType decode(String operator, boolean negated)
-
getType
public static IndexUtil.ConstraintType getType(Constraint constraint)
-
-