public static enum Searches.DateHistogramInterval extends Enum<Searches.DateHistogramInterval>
Enum Constant and Description |
---|
DAY |
HOUR |
MINUTE |
MONTH |
QUARTER |
WEEK |
YEAR |
Modifier and Type | Method and Description |
---|---|
org.joda.time.Period |
getPeriod() |
static Searches.DateHistogramInterval |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Searches.DateHistogramInterval[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Searches.DateHistogramInterval YEAR
public static final Searches.DateHistogramInterval QUARTER
public static final Searches.DateHistogramInterval MONTH
public static final Searches.DateHistogramInterval WEEK
public static final Searches.DateHistogramInterval DAY
public static final Searches.DateHistogramInterval HOUR
public static final Searches.DateHistogramInterval MINUTE
public static Searches.DateHistogramInterval[] values()
for (Searches.DateHistogramInterval c : Searches.DateHistogramInterval.values()) System.out.println(c);
public static Searches.DateHistogramInterval valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic org.joda.time.Period getPeriod()
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.