Enum DateFunctions.DatePartExt
java.lang.Object
java.lang.Enum<DateFunctions.DatePartExt>
com.couchbase.client.java.query.dsl.functions.DateFunctions.DatePartExt
- All Implemented Interfaces:
Serializable
,Comparable<DateFunctions.DatePartExt>
,java.lang.constant.Constable
- Enclosing class:
- DateFunctions
public static enum DateFunctions.DatePartExt extends Enum<DateFunctions.DatePartExt>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description century
day
Valid values: 1 to 31day_of_week
Valid values: 0 to 6day_of_year
Valid values: 1 to 366decade
Floor(year / 10)hour
Valid values: 0 to 23iso_dow
Valid values: 1 to 7iso_week
Valid values: 1 to 53.iso_year
Use with "iso_week"millenium
millisecond
Valid values: 0 to 999minute
Valid values: 0 to 59month
Valid values: 1 to 12quarter
Valid values: 1 to 4second
Valid values: 0 to 59timezone
Offset from UTC in secondstimezone_hour
Hour component of timezone offsettimezone_minute
Minute component of timezone offset.week
Valid values: 1 to 53; ceil(day_of_year / 7.0)year
-
Method Summary
Modifier and Type Method Description static DateFunctions.DatePartExt
valueOf(String name)
Returns the enum constant of this type with the specified name.static DateFunctions.DatePartExt[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
millenium
-
century
-
decade
Floor(year / 10) -
year
-
quarter
Valid values: 1 to 4 -
month
Valid values: 1 to 12 -
week
Valid values: 1 to 53; ceil(day_of_year / 7.0) -
day
Valid values: 1 to 31 -
hour
Valid values: 0 to 23 -
minute
Valid values: 0 to 59 -
second
Valid values: 0 to 59 -
millisecond
Valid values: 0 to 999 -
day_of_year
Valid values: 1 to 366 -
day_of_week
Valid values: 0 to 6 -
iso_week
Valid values: 1 to 53. Use with "iso_year" -
iso_year
Use with "iso_week" -
iso_dow
Valid values: 1 to 7 -
timezone
Offset from UTC in seconds -
timezone_hour
Hour component of timezone offset -
timezone_minute
Minute component of timezone offset. Valid values: 0 to 59
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-