Package

scodec.protocols

time

Permalink

package time

Source
package.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. time
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type TimeSeries[F[_], +A] = Stream[F, TimeSeriesValue[A]]

    Permalink

    A stream of timestamped values or clock ticks.

    A stream of timestamped values or clock ticks.

    Values are represented as right values in a TimeStamped[Option[A]], whereas clock ticks are represented as nones. This encoding allows for an indication of time passage with no observed values.

    Generally, time series appear in increasing order, and many combinators that work with time series will rely on that. For streams that are globally ordered, but not locally ordered, i.e., near adjacent values might be out of order but values at great distance from each other are ordered, consider using TimeStamped.reorderLocally to adjust.

  2. type TimeSeriesTransducer[F[_], -A, +B] = (Stream[F, TimeSeriesValue[A]]) ⇒ Stream[F, TimeSeriesValue[B]]

    Permalink

    Alias for a stream transducer on time series values.

  3. type TimeSeriesValue[+A] = TimeStamped[Option[A]]

    Permalink

    A single value in a TimeSeries.

    A single value in a TimeSeries. Provides a timestamp along with either a value of type A or a clock tick (represented by a none).

  4. case class TimeStamped[+A](time: Instant, value: A) extends Product with Serializable

    Permalink

    Wrapper that associates a time with a value.

Value Members

  1. object TimeSeries

    Permalink

    Companion for TimeSeries.

  2. object TimeSeriesTransducer

    Permalink

    Companion for TimeSeriesTransducer.

  3. object TimeSeriesValue

    Permalink

    Companion for TimeSeriesValue.

  4. object TimeStamped extends Serializable

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped