Class BucketRangeDate
- java.lang.Object
-
- org.nuxeo.ecm.platform.query.core.BucketRangeDate
-
- All Implemented Interfaces:
Bucket
public class BucketRangeDate extends Object implements Bucket
Immutable bucket for date range.- Since:
- 6.0
-
-
Constructor Summary
Constructors Constructor Description BucketRangeDate(String key, ZonedDateTime from, ZonedDateTime to, long docCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getDocCount()
Double
getFrom()
ZonedDateTime
getFromAsDate()
String
getKey()
Double
getTo()
ZonedDateTime
getToAsDate()
String
toString()
-
-
-
Constructor Detail
-
BucketRangeDate
public BucketRangeDate(String key, ZonedDateTime from, ZonedDateTime to, long docCount)
-
-
Method Detail
-
getDocCount
public long getDocCount()
- Specified by:
getDocCount
in interfaceBucket
-
getFromAsDate
public ZonedDateTime getFromAsDate()
- Returns:
- null if there are no minimal limit
-
getToAsDate
public ZonedDateTime getToAsDate()
- Returns:
- null if there are no maximal limit
-
-