vSphere Web Services API


Enum - SearchIndexPredicateComparisonOperator(vim.SearchIndex.Predicate.ComparisonOperator)

Since
2.0


Enum Description

Enum Constants

NameDescription
Equal Equality operator.
Greater Greater than operator.

Applicable to numerical properties only, e.g. {@code long}, {@code double}. Cannot apply to {@code String} or {@code boolean}.

GreaterOrEqual Greater than or equal to operator.

Applicable to numerical properties only, e.g. {@code long}, {@code double}. Cannot apply to {@code String} or {@code boolean}.

In Checks for equality with at least one of a list of values.

Must be used either with Predicate#comparableList or with Predicate#comparableQueryIndex. In the second case the query result set is used as comparableList.

Less Less than operator.

Applicable to numerical properties only, e.g. {@code long}, {@code double}. Cannot apply to {@code String} or {@code boolean}.

LessOrEqual Less than or equal to operator.

Applicable to numerical properties only, e.g. {@code long}, {@code double}. Cannot apply to {@code String} or {@code boolean}.

Like Pattern matching operator applicable to {@code String} properties.

The {@code *} character is used to define wildcard, i.e. substitute for zero or more missing letters) before or after a given sequence of characters. If used at the end, it is interpreted as search for all properties whose value starts with the given characters. If used at the beginning, it is interpreted as search for all properties whose value ends with the given characters.

For instance, if the input pattern is *vm it will match property with value linux-vm, but not vm-linux. If the input pattern is vm* it will match property with value vm-linux, but not linux-vm.

The wildcard character cannot be used in between other characters, i.e. in the middle of a pattern. It can be use more than once in a single pattern only in case it surrounds the pattern, i.e. both in the beginning and at the end of the pattern to perform substring (infix) search.

For instance, if the input pattern is *vm* it will match property with value linux-vm-1, linux-vm, old-vm-linux, vm-linux and vm.

The backslash character {@code \} is used for escaping. Hence, wildcard is escaped with the sequence \* and the escape character itself with the sequence \\.

NotEqual Inequality operator.
NotIn Checks for inequality with all values in a list. If the property is equal to any of the values in the list, evaluates to {@code false}. Otherwise, evaluates to {@code true} and the property is matched.

Must be used either with Predicate#comparableList or with Predicate#comparableQueryIndex. In the second case the query result set is used as comparableList.

NotLike Opposite of {@code Like}. The resource will be matched if the property does NOT contain the provided pattern.

Show WSDL type definition