com.cloudera.sparkts

DateTimeIndex

trait DateTimeIndex extends Serializable

A DateTimeIndex maintains a bi-directional mapping between integers and an ordered collection of date-times. Multiple date-times may correspond to the same integer, implying multiple samples at the same date-time.

To avoid confusion between the meaning of "index" as it appears in "DateTimeIndex" and "index" as a location in an array, in the context of this class, we use "location", or "loc", to refer to the latter.

NOTE: In the sequence, index 0 represents the oldest point in time. The highest index is the most recent point.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DateTimeIndex
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def atZone(zone: ZoneId): DateTimeIndex

    Returns a new DateTimeIndex with instants at the specified zone

  2. abstract def dateTimeAtLoc(i: Int): ZonedDateTime

    The i-th date-time in the index.

  3. abstract def first: ZonedDateTime

    The first date-time in the index.

  4. abstract def insertionLoc(dt: Long): Int

    The location at which the given date-time, as milliseconds since the epoch, could be inserted.

    The location at which the given date-time, as milliseconds since the epoch, could be inserted. It is the location of the first date-time that is greater than the given date-time. If the given date-time is greater than or equal to the last date-time in the index, the index size is returned.

  5. abstract def insertionLoc(dt: ZonedDateTime): Int

    The location at which the given date-time could be inserted.

    The location at which the given date-time could be inserted. It is the location of the first date-time that is greater than the given date-time. If the given date-time is greater than or equal to the last date-time in the index, the index size is returned.

  6. abstract def islice(start: Int, end: Int): DateTimeIndex

    Returns a sub-slice of the index, starting and ending at the given indices.

    Returns a sub-slice of the index, starting and ending at the given indices.

    Unlike the slice methods, islice is exclusive at the top of the range, as is the norm with typical array indexing, meaning that dtIndex.slice(dateTimeAtLoc(0), dateTimeAtLoc(5)) will return an index including one more element than dtIndex.islice(0, 5).

  7. abstract def islice(range: Range): DateTimeIndex

    Returns a sub-slice of the index with the given range of indices.

  8. abstract def last: ZonedDateTime

    The last date-time in the index.

    The last date-time in the index. Inclusive.

  9. abstract def locAtDateTime(dt: Long): Int

    The location of the given date-time, as nanoseconds since the epoch.

    The location of the given date-time, as nanoseconds since the epoch. If the index contains the date-time more than once, returns its first appearance. If the given date-time does not appear in the index, returns -1.

  10. abstract def locAtDateTime(dt: ZonedDateTime): Int

    The location of the given date-time.

    The location of the given date-time. If the index contains the date-time more than once, returns its first appearance. If the given date-time does not appear in the index, returns -1.

  11. abstract def nanosIterator(): Iterator[Long]

    Returns an iterator over the contents of the DateTimeIndex as nanosecond values from the epoch.

  12. abstract def size: Int

    The number of date-times in the index.

  13. abstract def slice(start: Long, end: Long): DateTimeIndex

    Returns a sub-slice of the index, starting and ending at the given date-times in millis since the epoch (inclusive).

  14. abstract def slice(start: ZonedDateTime, end: ZonedDateTime): DateTimeIndex

    Returns a sub-slice of the index, starting and ending at the given date-times (inclusive).

  15. abstract def slice(interval: Interval): DateTimeIndex

    Returns a sub-slice of the index, confined to the given interval (inclusive).

  16. abstract def toNanosArray(): Array[Long]

    Returns the contents of the DateTimeIndex as an array of nanosecond values from the epoch.

  17. abstract def toZonedDateTimeArray(): Array[ZonedDateTime]

    Returns the contents of the DateTimeIndex as an array of ZonedDateTime

  18. abstract def zone: ZoneId

    The time zone of date-times in the index.

  19. abstract def zonedDateTimeIterator(): Iterator[ZonedDateTime]

    Returns an iterator over the contents of the DateTimeIndex as ZonedDateTime

Concrete 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. final def ==(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  18. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped