Package org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search
Enum Class PropertyComparisonOperator
java.lang.Object
java.lang.Enum<PropertyComparisonOperator>
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.PropertyComparisonOperator
- All Implemented Interfaces:
Serializable
,Comparable<PropertyComparisonOperator>
,Constable
public enum PropertyComparisonOperator
extends Enum<PropertyComparisonOperator>
implements Serializable
PropertyComparisonOperator is used for search requests against a metadata collection. It defines how the properties
should be compared to find a matching result.
The property comparison operator values are:
- EQUAL: when the property has a value that precisely equals the provided value. This is the default.
- NOT_EQUAL: when the property has a value that is not equal to the provided value.
- LESS_THAN: when the property has a value that is strictly less than the provided value.
- LESS_THAN_OR_EQUAL: when the property has a value that is less than, or equal to, the provided value.
- GREATER_THAN: when the property has a value that is strictly greater than the provided value.
- GREATER_THAN_OR_EQUAL: when the property has a value that is greater than, or equal to, the provided value.
- IN_LIST: when the property has a value that matches at least one element of the provided list of values.
- IS_NULL: when the property has no value.
- IS_NOT_NULL: when the property has any non-null value.
- LIKE: when the property has a value that matches the provided regular expression. This should only be applied to String properties, and should still be used even for exact matches for String properties.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturn the default description of the property comparison operator.getName()
Return the default name of the property comparison operator.int
Return the numeric representation of the property comparison operator.toString()
toString() JSON-stylestatic PropertyComparisonOperator
Returns the enum constant of this class with the specified name.static PropertyComparisonOperator[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EQ
-
NEQ
-
LT
-
LTE
-
GT
-
GTE
-
IN
-
IS_NULL
-
NOT_NULL
-
LIKE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getOrdinal
public int getOrdinal()Return the numeric representation of the property comparison operator.- Returns:
- int ordinal
-
getName
Return the default name of the property comparison operator.- Returns:
- String name
-
getDescription
Return the default description of the property comparison operator.- Returns:
- String description
-
toString
toString() JSON-style- Overrides:
toString
in classEnum<PropertyComparisonOperator>
- Returns:
- string description
-