Uses of Enum
org.apache.lucene.document.DateTools.Resolution
-
Uses of DateTools.Resolution in org.apache.lucene.document
Modifier and TypeMethodDescriptionstatic DateTools.Resolution
Returns the enum constant of this type with the specified name.static DateTools.Resolution[]
DateTools.Resolution.values()
Returns an array containing the constants of this enum type, in the order they are declared.Modifier and TypeMethodDescriptionstatic String
DateTools.dateToString
(Date date, DateTools.Resolution resolution) Converts a Date to a string suitable for indexing.static long
DateTools.round
(long time, DateTools.Resolution resolution) Limit a date's resolution.static Date
DateTools.round
(Date date, DateTools.Resolution resolution) Limit a date's resolution.static String
DateTools.timeToString
(long time, DateTools.Resolution resolution) Converts a millisecond time to a string suitable for indexing.