Class SearchAttributeKey<T>
java.lang.Object
io.temporal.common.SearchAttributeKey<T>
- All Implemented Interfaces:
Comparable<SearchAttributeKey<T>>
Representation of a typed search attribute key.
-
Method Summary
Modifier and TypeMethodDescriptionintbooleanstatic SearchAttributeKey<Boolean> forBoolean(String name) Create a search attribute key for a boolean attribute type.static SearchAttributeKey<Double> Create a search attribute key for a double attribute type.static SearchAttributeKey<String> forKeyword(String name) Create a search attribute key for a keyword attribute type.static SearchAttributeKey<List<String>> forKeywordList(String name) Create a search attribute key for a keyword list attribute type.static SearchAttributeKey<Long> Create a search attribute key for an int attribute type.static SearchAttributeKey<OffsetDateTime> forOffsetDateTime(String name) Create a search attribute key for a datetime attribute type.static SearchAttributeKey<String> Create a search attribute key for a text attribute type.static SearchAttributeKey<io.temporal.api.common.v1.Payload> forUntyped(String name) Create a search attribute key for an untyped attribute type.getName()Get the name of the search attribute.Get the class that the search attribute value will be.Get the reflect type that the search attribute will be.io.temporal.api.enums.v1.IndexedValueTypeGet the search attribute value type.inthashCode()Create an update that sets a value for this key.Create an update that unsets a value for this key.
-
Method Details
-
forText
Create a search attribute key for a text attribute type. -
forKeyword
Create a search attribute key for a keyword attribute type. -
forLong
Create a search attribute key for an int attribute type. -
forDouble
Create a search attribute key for a double attribute type. -
forBoolean
Create a search attribute key for a boolean attribute type. -
forOffsetDateTime
Create a search attribute key for a datetime attribute type. -
forKeywordList
Create a search attribute key for a keyword list attribute type. -
forUntyped
Create a search attribute key for an untyped attribute type.This should only be used when the server can return untyped search attributes, for example, when describing a schedule workflow action.
-
getName
Get the name of the search attribute. -
getValueType
public io.temporal.api.enums.v1.IndexedValueType getValueType()Get the search attribute value type. -
getValueClass
-
getValueReflectType
Get the reflect type that the search attribute will be. For all key types except keyword list, this is the same asgetValueType(). -
valueSet
Create an update that sets a value for this key. -
valueUnset
Create an update that unsets a value for this key. -
equals
-
hashCode
-
compareTo
- Specified by:
compareToin interfaceComparable<T>
-