ZSearchAttributes

zio.temporal.ZSearchAttributes
See theZSearchAttributes companion object
final class ZSearchAttributes

Immutable collection of typed search attributes.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def containsKey[T, Tag](name: String)(implicit meta: ZSearchAttributeMeta[T, Tag]): Boolean

Get whether the search attribute key exists.

Get whether the search attribute key exists.

Type parameters

T

Scala type for the attribute

Tag

either ZSearchAttribute.Plain or ZSearchAttribute.Keyword

Attributes

def get[T, Tag](name: String)(implicit meta: ZSearchAttributeMeta[T, Tag]): Option[T]

Get a search attribute value by its key or null if not present.

Get a search attribute value by its key or null if not present.

Type parameters

T

Scala type for the attribute

Tag

either ZSearchAttribute.Plain or ZSearchAttribute.Keyword

Attributes

Throws
ClassCastException

If the search attribute is not of the proper type for the key.

def size: Int

Get the size of the collection.

Get the size of the collection.

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
def untypedValues: Map[SearchAttributeKey[_], AnyRef]

Get the immutable, untyped values map.

Get the immutable, untyped values map.

Attributes

Note

values are encoded (e.g., UUID is represented as String). Java collections are converted to Scala collections

Concrete fields

val toJava: SearchAttributes