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
- Alphabetic
- By Inheritance
- DateParam
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val dateOffset: Option[String]
- val endDate: Option[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val numDays: Option[String]
- val startDate: Option[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()