Package org.dashbuilder.dataset.group
Enum GroupStrategy
- java.lang.Object
-
- java.lang.Enum<GroupStrategy>
-
- org.dashbuilder.dataset.group.GroupStrategy
-
- All Implemented Interfaces:
Serializable,Comparable<GroupStrategy>
public enum GroupStrategy extends Enum<GroupStrategy>
The strategy defines how to split a collection of values in a set of intervals.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUSTOMThe intervals are defined in a custom manner and are not bound to any specific generation algorithm.DYNAMICThe intervals depends on the underlying data plus some additional criteria such as the minimum interval size or the maximum number of intervals allowed.FIXEDThe intervals are fixed of an specific size and they don't depend on the underlying data.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GroupStrategygetByName(String strategy)booleanisColumnTypeSupported(ColumnType ct)Check if this strategy can be used with the specified column type.static GroupStrategyvalueOf(String name)Returns the enum constant of this type with the specified name.static GroupStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIXED
public static final GroupStrategy FIXED
The intervals are fixed of an specific size and they don't depend on the underlying data.
-
DYNAMIC
public static final GroupStrategy DYNAMIC
The intervals depends on the underlying data plus some additional criteria such as the minimum interval size or the maximum number of intervals allowed.
-
CUSTOM
public static final GroupStrategy CUSTOM
The intervals are defined in a custom manner and are not bound to any specific generation algorithm.
-
-
Method Detail
-
values
public static GroupStrategy[] 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 (GroupStrategy c : GroupStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GroupStrategy 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
-
isColumnTypeSupported
public boolean isColumnTypeSupported(ColumnType ct)
Check if this strategy can be used with the specified column type.
-
getByName
public static GroupStrategy getByName(String strategy)
-
-