Class SearchAttributes
java.lang.Object
io.temporal.common.SearchAttributes
Immutable collection of typed search attributes. Use
SearchAttributes.Builder to create this collection.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creating a search attribute collection. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SearchAttributesAn empty search attribute collection. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(SearchAttributeKey<?> key) Get whether the search attribute key exists.boolean<T> Tget(SearchAttributeKey<T> key) Get a search attribute value by its key or null if not present.Get the immutable, untyped sorted map.inthashCode()static SearchAttributes.BuilderCreate a new builder to create a search attribute collection.static SearchAttributes.BuildernewBuilder(SearchAttributes copyFrom) Create a new builder to create a search attribute collection, copying from an existing collection.intsize()Get the size of the collection.
-
Field Details
-
EMPTY
An empty search attribute collection.
-
-
Method Details
-
newBuilder
Create a new builder to create a search attribute collection. -
newBuilder
Create a new builder to create a search attribute collection, copying from an existing collection. -
get
Get a search attribute value by its key or null if not present.- Throws:
ClassCastException- If the search attribute is not of the proper type for the key.
-
containsKey
Get whether the search attribute key exists. -
size
public int size()Get the size of the collection. -
getUntypedValues
Get the immutable, untyped sorted map. -
equals
-
hashCode
-