com.iobeam.spark.streams.model

TimeRecord

case class TimeRecord(time: Long, data: Map[Key, Any] = ...) extends Serializable with Product

A TimeRecord represents a collection of data for one time-point. The data is stored as a key-value map.

For data imported to Iobeam, each TimeRecord represents a collection of measurements taken at a single time-point. Thus the data is a map of seriesName (as the key) to measurement value. Data imported via the table format has a guarantee that each row will be represented by a single record which contains all of the series in the row. For the series-centric input format, each record will contain a single seriesName and value (there will be no join on time across series).

time

The time at which the measurement was taken

data

A collection of measurements

Linear Supertypes
Product, Equals, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TimeRecord
  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 TimeRecord(time: Long, data: Map[Key, Any] = ...)

    time

    The time at which the measurement was taken

    data

    A collection of measurements

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 ++(other: Map[Key, Any]): TimeRecord

    Returns a new record with additional data.

    Returns a new record with additional data.

    other

    data to add

    returns

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

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

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

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val data: Map[Key, Any]

    A collection of measurements

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

    Definition Classes
    AnyRef
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def getBoolean(key: Key): Option[Boolean]

    Returns an option for a Boolean value corresponding to a key.

    Returns an option for a Boolean value corresponding to a key. The option is None if the key does not exist or the value cannot be converted to a Boolean.

    key
    returns

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

    Definition Classes
    AnyRef → Any
  14. def getData: Map[Key, Any]

    Returns a map of all key-value pairs stored in the record

    Returns a map of all key-value pairs stored in the record

    returns

  15. def getDouble(key: Key): Option[Double]

    Returns an option for a Double value corresponding to a key.

    Returns an option for a Double value corresponding to a key. The option is None if the key does not exist or the value cannot be converted to a Double.

    key
    returns

  16. def getLong(key: Key): Option[Long]

    Returns an option for a Double value corresponding to a key.

    Returns an option for a Double value corresponding to a key. The option is None if the key does not exist or the value cannot be converted to a Double.

    key
    returns

  17. def getString(key: Key): Option[String]

    Returns an option for a String value corresponding to a key.

    Returns an option for a String value corresponding to a key. The option is None if the key does not exist or the value cannot be converted to a String.

    key
    returns

  18. def has(keys: Key*): Boolean

    Returns whether or not all the keys are present.

    Returns whether or not all the keys are present.

    keys
    returns

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  23. def requireAny(key: Key): Any

    Return the value (as a any) for a key, throwing an error if the key is missing or cannot be converted to a Double.

    Return the value (as a any) for a key, throwing an error if the key is missing or cannot be converted to a Double.

    key
    returns

  24. def requireBoolean(key: Key): Boolean

    Return the value (as a Boolean) for a key, throwing an error if the key is missing or cannot be converted to a Double.

    Return the value (as a Boolean) for a key, throwing an error if the key is missing or cannot be converted to a Double.

    key
    returns

  25. def requireDouble(key: Key): Double

    Return the value (as a Double) for a key, throwing an error if the key is missing or cannot be converted to a Double.

    Return the value (as a Double) for a key, throwing an error if the key is missing or cannot be converted to a Double.

    key
    returns

  26. def requireLong(key: Key): Long

    Return the value (as a Long) for a key, throwing an error if the key is missing or cannot be converted to a Double.

    Return the value (as a Long) for a key, throwing an error if the key is missing or cannot be converted to a Double.

    key
    returns

  27. def requireString(key: Key): String

    Return the value (as a String) for a key, throwing an error if the key is missing or cannot be converted to a String.

    Return the value (as a String) for a key, throwing an error if the key is missing or cannot be converted to a String.

    key
    returns

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

    Definition Classes
    AnyRef
  29. val time: Long

    The time at which the measurement was taken

  30. final def wait(): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. 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