Packages

case class DateParam(startDate: Option[String] = None, endDate: Option[String] = None, dateOffset: Option[String] = None, numDays: Option[String] = None) extends Product with Serializable

Date can be specified in two ways: 1. startTime plus endTime, or 2. dateOffset plus numDays in the case of 2, the startTime will be "today_in_pst - dateOffset - numDays + 1", endTime will be "today_in_pst - dateOffset" This case class is used both by feature and observation data.

startDate

in yyyyMMdd or yyyyMMddHH

endDate

in yyyyMMdd or yyyyMMddHH

dateOffset

non-negative integer (either in days or hours, resolution will determine if it is in days or hours). Used to calculate the endTime.

numDays

positive integer (either in days or hours, resolution will determine if it is in days or hours). Used together with dateOffset to calculate the startTime

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DateParam
  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 DateParam(startDate: Option[String] = None, endDate: Option[String] = None, dateOffset: Option[String] = None, numDays: Option[String] = None)

    startDate

    in yyyyMMdd or yyyyMMddHH

    endDate

    in yyyyMMdd or yyyyMMddHH

    dateOffset

    non-negative integer (either in days or hours, resolution will determine if it is in days or hours). Used to calculate the endTime.

    numDays

    positive integer (either in days or hours, resolution will determine if it is in days or hours). Used together with dateOffset to calculate the startTime

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. val dateOffset: Option[String]
  7. val endDate: Option[String]
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def getResolution: ChronoUnit

    Get the resolution of the DateParam class.

    Get the resolution of the DateParam class. If the startDate is defined, the allow formats are yyyyMMdd or yyyyMMddHH. In this case, we will just parse the date string for it's length and conclude if the hour field is also included. If the window field is defined, we parse the window string to determine if the resolution is daily or hourly. If neither, we will just return the default format of daily.

    returns

    ChronoUnit of DAYS or HOURS

  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. val numDays: Option[String]
  17. val startDate: Option[String]
  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  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( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped