trait DateMatcherUtils extends Params
- Grouped
- Alphabetic
- By Inheritance
- DateMatcherUtils
- Params
- Serializable
- Serializable
- Identifiable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
$[T](param: Param[T]): T
- Attributes
- protected
- Definition Classes
- Params
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
EMPTY_INIT_ARRAY: Array[String]
- Attributes
- protected
-
val
SPACE_CHAR: String
- Attributes
- protected
-
val
aggressiveMatching: BooleanParam
Whether to aggressively attempt to find date matches, even in ambiguous or less common formats (Default:
false
) -
val
amDefinition: Regex
- Attributes
- protected
-
val
anchorDateDay: Param[Int]
Add an anchor day for the relative dates such as a day after tomorrow (Default:
-1
).Add an anchor day for the relative dates such as a day after tomorrow (Default:
-1
). By default it will use the current day. The first day of the month has value 1. -
val
anchorDateMonth: Param[Int]
Add an anchor month for the relative dates such as a day after tomorrow (Default:
-1
).Add an anchor month for the relative dates such as a day after tomorrow (Default:
-1
). By default it will use the current month. Month values start from1
, so1
stands for January. -
val
anchorDateYear: Param[Int]
Add an anchor year for the relative dates such as a day after tomorrow (Default:
-1
).Add an anchor year for the relative dates such as a day after tomorrow (Default:
-1
). If it is not set, the by default it will use the current year. Example: 2021 -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
calculateAnchorCalendar(): Calendar
- Attributes
- protected
-
final
def
clear(param: Param[_]): DateMatcherUtils.this.type
- Definition Classes
- Params
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
copyValues[T <: Params](to: T, extra: ParamMap): T
- Attributes
- protected
- Definition Classes
- Params
-
final
def
defaultCopy[T <: Params](extra: ParamMap): T
- Attributes
- protected
- Definition Classes
- Params
-
val
defaultDayWhenMissing: IntParam
Which day to set when it is missing from parsed input (Default:
1
) -
val
defaultMonthWhenMissing: Int
- Attributes
- protected
-
val
defaultYearWhenMissing: Int
- Attributes
- protected
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
explainParam(param: Param[_]): String
- Definition Classes
- Params
-
def
explainParams(): String
- Definition Classes
- Params
-
final
def
extractParamMap(): ParamMap
- Definition Classes
- Params
-
final
def
extractParamMap(extra: ParamMap): ParamMap
- Definition Classes
- Params
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formalDateContentParse(date: RuleMatch): MatchedDateTime
- Attributes
- protected
-
val
formalFactory: RuleFactory
Searches formal date by ordered rules Matching strategy is to find first match only, ignore additional matches from then Any 4 digit year will be assumed a year, any 2 digit year will be as part of XX Century e.g.
Searches formal date by ordered rules Matching strategy is to find first match only, ignore additional matches from then Any 4 digit year will be assumed a year, any 2 digit year will be as part of XX Century e.g. 1954
- Attributes
- protected
-
val
formalFactoryInputFormats: RuleFactory
- Attributes
- protected
-
val
formalInputFormats: Map[String, Regex]
- Attributes
- protected
-
final
def
get[T](param: Param[T]): Option[T]
- Definition Classes
- Params
-
def
getAggressiveMatching: Boolean
To get aggressive matching Strategy
- def getAnchorDateDay: Int
- def getAnchorDateMonth: Int
- def getAnchorDateYear: Int
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
getDefault[T](param: Param[T]): Option[T]
- Definition Classes
- Params
- def getDefaultDayWhenMissing: Int
- def getInputFormats: Array[String]
-
final
def
getOrDefault[T](param: Param[T]): T
- Definition Classes
- Params
- def getOutputFormat: String
-
def
getParam(paramName: String): Param[Any]
- Definition Classes
- Params
- def getReadMonthFirst: Boolean
-
def
getRelaxedFactoryStrategy: String
To get matched strategy to search relaxed dates by ordered rules by more exhaustive to less Strategy
-
def
getSourceLanguage: String
To get to use or not the multi-language translation.
-
final
def
hasDefault[T](param: Param[T]): Boolean
- Definition Classes
- Params
-
def
hasParam(paramName: String): Boolean
- Definition Classes
- Params
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
inputFormats: StringArrayParam
Date Matcher regex patterns.
-
final
def
isDefined(param: Param[_]): Boolean
- Definition Classes
- Params
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isSet(param: Param[_]): Boolean
- Definition Classes
- Params
-
val
months: Seq[String]
- Attributes
- protected
-
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
outputFormat: Param[String]
Output format of parsed date (Default:
"yyyy/MM/dd"
) -
lazy val
params: Array[Param[_]]
- Definition Classes
- Params
-
val
readMonthFirst: BooleanParam
Whether to interpret dates as MM/DD/YYYY instead of DD/MM/YYYY (Default:
true
) -
def
relativeDateContentParse(date: RuleMatch): MatchedDateTime
- Attributes
- protected
-
def
relativeDateFutureContentParse(date: RuleMatch): MatchedDateTime
- Attributes
- protected
-
def
relativeDatePastContentParse(date: RuleMatch): MatchedDateTime
- Attributes
- protected
- def relativeExactContentParse(possibleDate: RuleMatch): MatchedDateTime
-
val
relativeExactFactory: RuleFactory
Searches for exactly provided days of the week.
Searches for exactly provided days of the week. Always relative from current time at processing
- Attributes
- protected
-
val
relativeFactory: RuleFactory
extracts relative dates.
extracts relative dates. Strategy is to get only first match. Will always assume relative day from current time at processing ToDo: Support relative dates from input date
- Attributes
- protected
-
val
relativeFutureFactory: RuleFactory
- Attributes
- protected
- val relativeFuturePattern: String
-
val
relativePastFactory: RuleFactory
- Attributes
- protected
-
val
relativePastPattern: String
Used for past relative date matches
-
lazy val
relaxedFactory: RuleFactory
Searches relaxed dates by ordered rules by more exhaustive to less Strategy.
Searches relaxed dates by ordered rules by more exhaustive to less Strategy. Auto completes short versions of months. Any two digit year is considered to be XX century
- Attributes
- protected
-
val
relaxedFactoryStrategy: Param[String]
Matched strategy to search relaxed dates by ordered rules by more exhaustive to less Strategy
-
final
def
set(paramPair: ParamPair[_]): DateMatcherUtils.this.type
- Attributes
- protected
- Definition Classes
- Params
-
final
def
set(param: String, value: Any): DateMatcherUtils.this.type
- Attributes
- protected
- Definition Classes
- Params
-
final
def
set[T](param: Param[T], value: T): DateMatcherUtils.this.type
- Definition Classes
- Params
-
def
setAggressiveMatching(value: Boolean): DateMatcherUtils.this.type
To set aggressive matching Strategy
- def setAnchorDateDay(value: Int): DateMatcherUtils.this.type
- def setAnchorDateMonth(value: Int): DateMatcherUtils.this.type
- def setAnchorDateYear(value: Int): DateMatcherUtils.this.type
-
final
def
setDefault(paramPairs: ParamPair[_]*): DateMatcherUtils.this.type
- Attributes
- protected
- Definition Classes
- Params
-
final
def
setDefault[T](param: Param[T], value: T): DateMatcherUtils.this.type
- Attributes
- protected[org.apache.spark.ml]
- Definition Classes
- Params
- def setDefaultDayWhenMissing(value: Int): DateMatcherUtils.this.type
- def setInputFormats(value: Array[String]): DateMatcherUtils.this.type
- def setOutputFormat(value: String): DateMatcherUtils.this.type
- def setReadMonthFirst(value: Boolean): DateMatcherUtils.this.type
-
def
setRelaxedFactoryStrategy(matchStrategy: Format = MatchStrategy.MATCH_FIRST): DateMatcherUtils.this.type
To set matched strategy to search relaxed dates by ordered rules by more exhaustive to less Strategy
-
def
setSourceLanguage(value: String): DateMatcherUtils.this.type
To set or not the source language for explicit translation.
-
val
shortMonths: Seq[String]
- Attributes
- protected
-
val
sourceLanguage: Param[String]
Source language for explicit translation
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
timeFactory: RuleFactory
Searches for times of the day dateTime If any dates found previously, keep it as part of the final result text target document
Searches for times of the day dateTime If any dates found previously, keep it as part of the final result text target document
- returns
a final possible date if any found
- Attributes
- protected
-
def
toString(): String
- Definition Classes
- Identifiable → AnyRef → Any
- def tomorrowYesterdayContentParse(date: RuleMatch): MatchedDateTime
-
val
tyFactory: RuleFactory
Searches for relative informal dates such as today or the day after tomorrow
Searches for relative informal dates such as today or the day after tomorrow
- Attributes
- protected
-
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()