Class/Object

com.twitter.scalding

DateRange

Related Docs: object DateRange | package scalding

Permalink

case class DateRange(start: RichDate, end: RichDate) extends Product with Serializable

represents a closed interval of time.

TODO: This should be Range[RichDate, Duration] for an appropriate notion of Range

Source
DateRange.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DateRange
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DateRange(start: RichDate, end: RichDate)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(timespan: Duration): DateRange

    Permalink

    shift this by the given unit

  4. def -(timespan: Duration): DateRange

    Permalink
  5. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def contains(dr: DateRange): Boolean

    Permalink

    Is the given Date range a (non-strict) subset of the given range

  9. def contains(point: RichDate): Boolean

    Permalink
  10. def each(span: Duration): Iterable[DateRange]

    Permalink

    produce a contiguous non-overlapping set of DateRanges whose union is equivalent to this.

    produce a contiguous non-overlapping set of DateRanges whose union is equivalent to this. If it is passed an integral unit of time (not a DurationList), it stops at boundaries which are set by the start timezone, else break at start + k * span.

  11. def embiggen(delta: Duration): DateRange

    Permalink

    make the range wider by delta on each side.

    make the range wider by delta on each side. Good to catch events which might spill over.

  12. val end: RichDate

    Permalink
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def extend(delta: Duration): DateRange

    Permalink

    Extend the length by moving the end.

    Extend the length by moving the end. We can keep the party going, but we can't start it earlier.

  15. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def isAfter(d: RichDate): Boolean

    Permalink
  18. def isBefore(d: RichDate): Boolean

    Permalink
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def length: AbsoluteDuration

    Permalink
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. val start: RichDate

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

    Permalink
    Definition Classes
    AnyRef
  26. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped