com.cloudera.sparkts

IrregularDateTimeIndex

class IrregularDateTimeIndex extends DateTimeIndex

An implementation of DateTimeIndex that allows date-times to be spaced at uneven intervals. Lookups or slicing by date-time are O(log n) operations.

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

Instance Constructors

  1. new IrregularDateTimeIndex(instants: Array[Long], dateTimeZone: ZoneId = java.time.ZoneId.systemDefault())

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 atZone(zone: ZoneId): IrregularDateTimeIndex

    Returns a new DateTimeIndex with instants at the specified zone

    Returns a new DateTimeIndex with instants at the specified zone

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def dateTimeAtLoc(loc: Int): ZonedDateTime

    The i-th date-time in the index.

    The i-th date-time in the index.

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex
  10. val dateTimeZone: ZoneId

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def first: ZonedDateTime

    The first date-time in the index.

    The first date-time in the index.

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex
  15. final def getClass(): Class[_]

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

    Definition Classes
    IrregularDateTimeIndex → AnyRef → Any
  17. 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.

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex
  18. 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.

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex
  19. val instants: Array[Long]

  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. def islice(start: Int, end: Int): IrregularDateTimeIndex

    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).

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex
  22. def islice(range: Range): IrregularDateTimeIndex

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

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

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex
  23. def last: ZonedDateTime

    The last date-time in the index.

    The last date-time in the index. Inclusive.

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex
  24. 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.

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex
  25. 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.

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex
  26. def nanosIterator(): Iterator[Long]

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

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

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex
  27. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  30. def size: Int

    The number of date-times in the index.

    The number of date-times in the index.

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex
  31. def slice(start: Long, end: Long): IrregularDateTimeIndex

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

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

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex
  32. def slice(start: ZonedDateTime, end: ZonedDateTime): IrregularDateTimeIndex

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

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

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex
  33. def slice(interval: Interval): IrregularDateTimeIndex

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

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

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  35. def toNanosArray(): Array[Long]

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

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

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex
  36. def toString(): String

    Definition Classes
    IrregularDateTimeIndex → AnyRef → Any
  37. def toZonedDateTimeArray(): Array[ZonedDateTime]

    Returns the contents of the DateTimeIndex as an array of ZonedDateTime

    Returns the contents of the DateTimeIndex as an array of ZonedDateTime

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex
  38. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def zone: ZoneId

    The time zone of date-times in the index.

    The time zone of date-times in the index.

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex
  42. def zonedDateTimeIterator(): Iterator[ZonedDateTime]

    Returns an iterator over the contents of the DateTimeIndex as ZonedDateTime

    Returns an iterator over the contents of the DateTimeIndex as ZonedDateTime

    Definition Classes
    IrregularDateTimeIndexDateTimeIndex

Inherited from DateTimeIndex

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped