io.prediction.data.storage

DataMap

case class DataMap(fields: Map[String, JValue]) extends Serializable with Product

A DataMap stores properties of the event or entity. Internally it is a Map whose keys are property names and values are corresponding JSON values respectively. Use the get() method to retrieve the value of mandatory property or use getOpt() to retrieve the value of the optional property.

fields

Map of property name to JValue

Linear Supertypes
Product, Equals, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DataMap
  2. Product
  3. Equals
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DataMap(fields: Map[String, JValue])

    fields

    Map of property name to JValue

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def ++(that: DataMap): DataMap

    Return a new DataMap with elements containing elements from the left hand side operand followed by elements from the right hand side operand.

    Return a new DataMap with elements containing elements from the left hand side operand followed by elements from the right hand side operand.

    that

    Right hand side DataMap

    returns

    A new DataMap

  5. def --(that: GenTraversableOnce[String]): DataMap

    Creates a new DataMap from this DataMap by removing all elements of another collection.

    Creates a new DataMap from this DataMap by removing all elements of another collection.

    that

    A collection containing the removed property names

    returns

    A new DataMap

  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def contains(name: String): Boolean

    Check if this DataMap contains a specific property.

    Check if this DataMap contains a specific property.

    name

    The property name

    returns

    Return true if the property exists, else false.

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. val fields: Map[String, JValue]

    Map of property name to JValue

  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def get[T](name: String)(implicit arg0: Manifest[T]): T

    Get the value of a mandatory property.

    Get the value of a mandatory property. Exception is thrown if the property does not exist.

    T

    The type of the property value

    name

    The property name

    returns

    Return the property value of type T

  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def getOpt[T](name: String)(implicit arg0: Manifest[T]): Option[T]

    Get the value of an optional property.

    Get the value of an optional property. Return None if the property does not exist.

    T

    The type of the property value

    name

    The property name

    returns

    Return the property value of type Option[T]

  17. def getOrElse[T](name: String, default: T)(implicit arg0: Manifest[T]): T

    Get the value of an optional property.

    Get the value of an optional property. Return default value if the property does not exist.

    T

    The type of the property value

    name

    The property name

    default

    The default property value of type T

    returns

    Return the property value of type T

  18. def isEmpty: Boolean

    Tests whether the DataMap is empty.

    Tests whether the DataMap is empty.

    returns

    true if the DataMap is empty, false otherwise.

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def keySet: Set[String]

    Collects all property names of this DataMap in a set.

    Collects all property names of this DataMap in a set.

    returns

    a set containing all property names of this DataMap.

  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. def require(name: String): Unit

    Check the existence of a required property name.

    Check the existence of a required property name. Throw an exception if it does not exist.

    name

    The property name

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toJObject(): JObject

    Converts this DataMap to a JObject.

    Converts this DataMap to a JObject.

    returns

    the JObject initizalized by this DataMap.

  27. def toList(): List[(String, JValue)]

    Converts this DataMap to a List.

    Converts this DataMap to a List.

    returns

    a list of (property name, JSON value) tuples.

  28. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Product

Inherited from Equals

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped