public class DateAggregate extends BaseAggregate
Modifier and Type | Field and Description |
---|---|
static DateAggregate |
DAY |
static DateAggregate |
HOUR |
static DateAggregate |
MINUTE |
static DateAggregate |
MONTH |
static DateAggregate |
QUARTER |
static DateAggregate |
SECOND |
static DateAggregate |
WEEK |
static DateAggregate |
YEAR |
Constructor and Description |
---|
DateAggregate(String field) |
DateAggregate(String field,
String interval) |
DateAggregate(String field,
String interval,
String format) |
Modifier and Type | Method and Description |
---|---|
static DateAggregate |
days(int days) |
String |
getFormat() |
String |
getInterval() |
static DateAggregate |
hours(int hours) |
static DateAggregate |
minutes(int min) |
static DateAggregate |
seconds(int sec) |
void |
setFormat(String format) |
static DateAggregate |
weeks(int weeks) |
getField
public static final DateAggregate SECOND
public static final DateAggregate MINUTE
public static final DateAggregate HOUR
public static final DateAggregate DAY
public static final DateAggregate WEEK
public static final DateAggregate MONTH
public static final DateAggregate QUARTER
public static final DateAggregate YEAR
public DateAggregate(String field)
public static DateAggregate seconds(int sec)
public static DateAggregate minutes(int min)
public static DateAggregate hours(int hours)
public static DateAggregate days(int days)
public static DateAggregate weeks(int weeks)
public String getInterval()
public String getFormat()
public void setFormat(String format)
Copyright © 2014–2022 Apache Software Foundation. All rights reserved.