Package dev.morphia.query
Enum BucketAutoOptions.Granularity
- java.lang.Object
-
- java.lang.Enum<BucketAutoOptions.Granularity>
-
- dev.morphia.query.BucketAutoOptions.Granularity
-
- All Implemented Interfaces:
Serializable
,Comparable<BucketAutoOptions.Granularity>
- Enclosing class:
- BucketAutoOptions
public static enum BucketAutoOptions.Granularity extends Enum<BucketAutoOptions.Granularity>
A value that specifies the preferred number series to use to ensure that the calculated boundary edges end on preferred round numbers or their powers of 10. Available only if the all groupBy values are numeric and none of them are NaN.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getGranulality()
static BucketAutoOptions.Granularity
valueOf(String name)
Returns the enum constant of this type with the specified name.static BucketAutoOptions.Granularity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
R5
public static final BucketAutoOptions.Granularity R5
-
R10
public static final BucketAutoOptions.Granularity R10
-
R20
public static final BucketAutoOptions.Granularity R20
-
R40
public static final BucketAutoOptions.Granularity R40
-
R80
public static final BucketAutoOptions.Granularity R80
-
ONE_TWO_FIVE
public static final BucketAutoOptions.Granularity ONE_TWO_FIVE
-
E6
public static final BucketAutoOptions.Granularity E6
-
E12
public static final BucketAutoOptions.Granularity E12
-
E24
public static final BucketAutoOptions.Granularity E24
-
E48
public static final BucketAutoOptions.Granularity E48
-
E96
public static final BucketAutoOptions.Granularity E96
-
E192
public static final BucketAutoOptions.Granularity E192
-
POWERSOF2
public static final BucketAutoOptions.Granularity POWERSOF2
-
-
Method Detail
-
values
public static BucketAutoOptions.Granularity[] 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 (BucketAutoOptions.Granularity c : BucketAutoOptions.Granularity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BucketAutoOptions.Granularity 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
-
getGranulality
public String getGranulality()
- Returns:
- granurality string value
-
-