Class/Object

org.apache.predictionio.data.storage

PropertyMap

Related Docs: object PropertyMap | package storage

Permalink

class PropertyMap extends DataMap

A PropertyMap stores aggregated properties of the 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.

Linear Supertypes
DataMap, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PropertyMap
  2. DataMap
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PropertyMap(fields: Map[String, JValue], firstUpdated: DateTime, lastUpdated: DateTime)

    Permalink

    fields

    Map of property name to JValue

    firstUpdated

    first updated time of this PropertyMap

    lastUpdated

    last updated time of this PropertyMap

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink

    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

    Definition Classes
    DataMap
  4. def --(that: GenTraversableOnce[String]): DataMap

    Permalink

    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

    Definition Classes
    DataMap
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def canEqual(other: Any): Boolean

    Permalink
    Definition Classes
    PropertyMapDataMap
  8. def clone(): AnyRef

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

    Permalink

    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.

    Definition Classes
    DataMap
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    PropertyMapDataMap → AnyRef → Any
  12. def extract[T](implicit arg0: Manifest[T]): T

    Permalink

    Converts this DataMap to case class of type T.

    Converts this DataMap to case class of type T.

    returns

    the object of type T.

    Definition Classes
    DataMap
  13. val fields: Map[String, JValue]

    Permalink

    Map of property name to JValue

    Map of property name to JValue

    Definition Classes
    DataMap
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. val firstUpdated: DateTime

    Permalink

    first updated time of this PropertyMap

  16. def get[T](name: String, clazz: Class[T]): T

    Permalink

    Java-friendly method for getting the value of a property.

    Java-friendly method for getting the value of a property. Return null if the property does not exist.

    T

    The type of the property value

    name

    The property name

    clazz

    The class of the type of the property value

    returns

    Return the property value of type T

    Definition Classes
    DataMap
  17. def get[T](name: String)(implicit arg0: Manifest[T]): T

    Permalink

    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

    Definition Classes
    DataMap
  18. final def getClass(): Class[_]

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

    Permalink

    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]

    Definition Classes
    DataMap
  20. def getOrElse[T](name: String, default: T)(implicit arg0: Manifest[T]): T

    Permalink

    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

    Definition Classes
    DataMap
  21. def getStringList(name: String): List[String]

    Permalink

    Java-friendly method for getting a list of values of a property.

    Java-friendly method for getting a list of values of a property. Return null if the property does not exist.

    name

    The property name

    returns

    Return the list of property values

    Definition Classes
    DataMap
  22. def hashCode(): Int

    Permalink
    Definition Classes
    PropertyMapDataMap → AnyRef → Any
  23. def isEmpty: Boolean

    Permalink

    Tests whether the DataMap is empty.

    Tests whether the DataMap is empty.

    returns

    true if the DataMap is empty, false otherwise.

    Definition Classes
    DataMap
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def keySet: Set[String]

    Permalink

    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.

    Definition Classes
    DataMap
  26. val lastUpdated: DateTime

    Permalink

    last updated time of this PropertyMap

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

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

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

    Permalink

    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

    Definition Classes
    DataMap
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toJObject(): JObject

    Permalink

    Converts this DataMap to a JObject.

    Converts this DataMap to a JObject.

    returns

    the JObject initialized by this DataMap.

    Definition Classes
    DataMap
  33. def toList(): List[(String, JValue)]

    Permalink

    Converts this DataMap to a List.

    Converts this DataMap to a List.

    returns

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

    Definition Classes
    DataMap
  34. def toString(): String

    Permalink
    Definition Classes
    PropertyMapDataMap → AnyRef → Any
  35. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DataMap

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped