Class DateNowValue
java.lang.Object
de.elo.ix.client.esearch.query.data.FilterValue
de.elo.ix.client.esearch.query.data.DateValue
de.elo.ix.client.esearch.query.data.DateSingleValue
de.elo.ix.client.esearch.query.data.DateNowValue
- All Implemented Interfaces:
Serializable
Class to commit a time which refers to the current time.
Depending on the committed values, different searches are performed:
- If
roundTo == nullandrelative == null, a search for the exact current times is performed. - If
roundTo != nullandrelative == null, a range query is performed.
From is current time rounded down, To is current time rounded up, defined byroundTo. - If
relative != null: A range query relative to current time is performed.
- If the biggest relative value is negative, a range query into the past is performed.
Fromis current time -relative, rounded down ifroundTo != null.Tois current time, rounded up ifroundTo != null. - If the biggest relative value is positive, a range query into the future is performed.
Fromis current time, rounded down ifroundTo != null.Tois current time +relative, rounded to ifroundTo != null.
The delivered date is converted to the time zone submitted in ClientInfo
- If the biggest relative value is negative, a range query into the past is performed.
A time offset to UTC time can be delivered by diffToUtc.
SearchFieldE.X_DATE, SearchFieldE.I_DATE, SearchFieldE.DELETED_DATE and
SearchFieldE.TIMESTAMP are converted to UTC prior to saving them, index lines in date
format are not converted.
Therefore, a timezone should always be commited for these four.
- Since:
- 11.00.000.019
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DateRelativeRelative time differences to now.
Can be null.protected DateRoundEDefine to which time unit this date should be rounded.
If it is != null, a range query is performed. -
Constructor Summary
ConstructorsConstructorDescriptionDateNowValue(DateRelative relative) DateNowValue(DateRelative relative, DateRoundE roundto) DateNowValue(DateRoundE roundto) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetRelative(DateRelative relative) voidsetRoundTo(DateRoundE roundTo) toString()
-
Field Details
-
roundTo
Define to which time unit this date should be rounded.
If it is != null, a range query is performed. -
relative
Relative time differences to now.
Can be null.
-
-
Constructor Details
-
DateNowValue
public DateNowValue() -
DateNowValue
-
DateNowValue
-
DateNowValue
-
-
Method Details
-
getRoundTo
-
getRelative
-
setRoundTo
-
setRelative
-
toString
- Overrides:
toStringin classFilterValue
-