ZSearchAttributeMeta

zio.temporal.ZSearchAttributeMeta
See theZSearchAttributeMeta companion object
sealed trait ZSearchAttributeMeta[A, Tag]

Encapsulates description & recipe for a Scala type stored as Temporal Search attribute.

Type parameters

A

Scala type

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class KeywordListMeta[V]
class KeywordMeta[V]
Self type

Members list

Type members

Types

type Repr

Representation supported by Temporal

Representation supported by Temporal

Attributes

Value members

Abstract methods

def attributeKey(name: String): SearchAttributeKey[Repr]

Construct a typed SearchAttributeKey

Construct a typed SearchAttributeKey

Value parameters

name

the key name

Attributes

Returns

search attribute key

def decode(value: Repr): A

Decodes the attribute value from its representation type

Decodes the attribute value from its representation type

Value parameters

value

representation of the value supported by Temporal

Attributes

Returns

Scala representation of the search attribute

def encode(value: A): Repr

Encodes the attribute value to its representation type

Encodes the attribute value to its representation type

Value parameters

value

Scala representation of the search attribute

Attributes

Returns

representation of the value supported by Temporal

Concrete methods

def convert[B](project: A => B)(reverse: B => A): Of[B, Tag, Repr]

Creates a new ZSearchAttributeMeta by converting this type to a new type.

Creates a new ZSearchAttributeMeta by converting this type to a new type.

Type parameters

B

the new search attribute type

Value parameters

project

direct conversion A => B

reverse

reverse conversion B => A

Attributes

Returns

a new meta

def downcastTag: Of[A, Any, Repr]