final case class Attributed[D](data: D)(metadata: AttributeMap) extends Product with Serializable
Associates a metadata
map with data
.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Attributed
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Attributed(data: D)(metadata: AttributeMap)
Value Members
- val data: D
-
def
get[T](key: AttributeKey[T]): Option[T]
Retrieves the associated value of
key
from the metadata. -
def
map[T](f: (D) ⇒ T): Attributed[T]
Transforms the data by applying
f
. - val metadata: AttributeMap
-
def
put[T](key: AttributeKey[T], value: T): Attributed[D]
Defines a mapping
key -> value
in the metadata.