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>
- Enclosing class:
- DateFunctions
public static enum DateFunctions.DatePartExt extends Enum<DateFunctions.DatePartExt>
-
-
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
All Methods Static Methods Concrete Methods 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 Detail
-
millenium
public static final DateFunctions.DatePartExt millenium
-
century
public static final DateFunctions.DatePartExt century
-
decade
public static final DateFunctions.DatePartExt decade
Floor(year / 10)
-
year
public static final DateFunctions.DatePartExt year
-
quarter
public static final DateFunctions.DatePartExt quarter
Valid values: 1 to 4
-
month
public static final DateFunctions.DatePartExt month
Valid values: 1 to 12
-
week
public static final DateFunctions.DatePartExt week
Valid values: 1 to 53; ceil(day_of_year / 7.0)
-
day
public static final DateFunctions.DatePartExt day
Valid values: 1 to 31
-
hour
public static final DateFunctions.DatePartExt hour
Valid values: 0 to 23
-
minute
public static final DateFunctions.DatePartExt minute
Valid values: 0 to 59
-
second
public static final DateFunctions.DatePartExt second
Valid values: 0 to 59
-
millisecond
public static final DateFunctions.DatePartExt millisecond
Valid values: 0 to 999
-
day_of_year
public static final DateFunctions.DatePartExt day_of_year
Valid values: 1 to 366
-
day_of_week
public static final DateFunctions.DatePartExt day_of_week
Valid values: 0 to 6
-
iso_week
public static final DateFunctions.DatePartExt iso_week
Valid values: 1 to 53. Use with "iso_year"
-
iso_year
public static final DateFunctions.DatePartExt iso_year
Use with "iso_week"
-
iso_dow
public static final DateFunctions.DatePartExt iso_dow
Valid values: 1 to 7
-
timezone
public static final DateFunctions.DatePartExt timezone
Offset from UTC in seconds
-
timezone_hour
public static final DateFunctions.DatePartExt timezone_hour
Hour component of timezone offset
-
timezone_minute
public static final DateFunctions.DatePartExt timezone_minute
Minute component of timezone offset. Valid values: 0 to 59
-
-
Method Detail
-
values
public static DateFunctions.DatePartExt[] 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 (DateFunctions.DatePartExt c : DateFunctions.DatePartExt.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateFunctions.DatePartExt 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
-
-