spark.timeseries

RunDetector

trait RunDetector [T] extends Serializable

trait for detecting periods/buckets/segments of activity in a data file. In case all lines are considered activity, use the default splitChanged() and ready() implementations, and make inRun() return false once to start a new period/bucket/segment.

Takes as parameter the type of data items on each line. Considers each line a scala.Array of the data type T.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. RunDetector
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. def inRun (): Boolean

    if ready(), returns true when a measurement run is detected, and false when not detected.

    if ready(), returns true when a measurement run is detected, and false when not detected.

    Attributes
    abstract
  2. def prepend (): Queue[Array[T]]

    Returns a portion of data to be prepended to the current detected run.

    Returns a portion of data to be prepended to the current detected run. Call this after the first time inRun() returns true, i.e., a new run is detected.

    returns

    a Queue of data items that are part of the beginning of the current run.

    Attributes
    abstract
  3. def reset (): Unit

    Call to re-use instance as a clean one.

    Call to re-use instance as a clean one.

    Attributes
    abstract
  4. def update (item: Array[T]): Unit

    Call to give each data element to the detector.

    Call to give each data element to the detector. Improves detection of runs. Enough update() calls should result in ready() returning true.

    item

    the next line of data.

    Attributes
    abstract

Concrete Value Members

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  9. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  12. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  13. def isInstanceOf [T0] : Boolean

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

    Attributes
    final
    Definition Classes
    AnyRef
  15. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  16. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  17. def ready (): Boolean

    Returns true when subsequent calls to inRun() will provide meaningful information.

    Returns true when subsequent calls to inRun() will provide meaningful information. Default implementation: always return true.

  18. def splitChanged (): Unit

    Call to inform the detector of moving to a new split of the RDD.

    Call to inform the detector of moving to a new split of the RDD. Causes the detector to return false for ready() until enough information is gathered from the new split via update(). Default implementation: no-op.

  19. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  20. def toString (): String

    Definition Classes
    AnyRef → Any
  21. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any