Enum GroupBy.GroupByType
- java.lang.Object
-
- java.lang.Enum<GroupBy.GroupByType>
-
- lumis.service.analytics.eventanalytics.bean.GroupBy.GroupByType
-
- All Implemented Interfaces:
Serializable
,Comparable<GroupBy.GroupByType>
,IGroupingType
- Enclosing class:
- GroupBy
public static enum GroupBy.GroupByType extends Enum<GroupBy.GroupByType> implements IGroupingType
The grouping by types.- Since:
- 14.0.0
- Version:
- $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAY_OF_MONTH
DAY_OF_WEEK
HOUR_OF_DAY
MONTH
QUARTER
TERM
YEAR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getKey()
Returns the (JSON) key.boolean
isTargetFieldRequired()
Returns whether a target field is required.static GroupBy.GroupByType
valueOf(String name)
Returns the enum constant of this type with the specified name.static GroupBy.GroupByType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HOUR_OF_DAY
public static final GroupBy.GroupByType HOUR_OF_DAY
-
DAY_OF_WEEK
public static final GroupBy.GroupByType DAY_OF_WEEK
-
DAY_OF_MONTH
public static final GroupBy.GroupByType DAY_OF_MONTH
-
MONTH
public static final GroupBy.GroupByType MONTH
-
QUARTER
public static final GroupBy.GroupByType QUARTER
-
YEAR
public static final GroupBy.GroupByType YEAR
-
TERM
public static final GroupBy.GroupByType TERM
-
-
Method Detail
-
values
public static GroupBy.GroupByType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GroupBy.GroupByType c : GroupBy.GroupByType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GroupBy.GroupByType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getKey
public String getKey()
Description copied from interface:IGroupingType
Returns the (JSON) key.- Specified by:
getKey
in interfaceIGroupingType
- Returns:
- the (JSON) key.
-
isTargetFieldRequired
public boolean isTargetFieldRequired()
Description copied from interface:IGroupingType
Returns whether a target field is required.- Specified by:
isTargetFieldRequired
in interfaceIGroupingType
- Returns:
- whether a target field is required.
-
-