Package io.trino.plugin.hive
Enum HiveTimestampPrecision
- java.lang.Object
-
- java.lang.Enum<HiveTimestampPrecision>
-
- io.trino.plugin.hive.HiveTimestampPrecision
-
- All Implemented Interfaces:
Serializable,Comparable<HiveTimestampPrecision>
public enum HiveTimestampPrecision extends Enum<HiveTimestampPrecision>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MICROSECONDSMILLISECONDSNANOSECONDS
-
Field Summary
Fields Modifier and Type Field Description static HiveTimestampPrecisionDEFAULT_PRECISIONstatic HiveTimestampPrecisionMAX
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPrecision()static HiveTimestampPrecisionvalueOf(String name)Returns the enum constant of this type with the specified name.static HiveTimestampPrecision[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MILLISECONDS
public static final HiveTimestampPrecision MILLISECONDS
-
MICROSECONDS
public static final HiveTimestampPrecision MICROSECONDS
-
NANOSECONDS
public static final HiveTimestampPrecision NANOSECONDS
-
-
Field Detail
-
DEFAULT_PRECISION
public static final HiveTimestampPrecision DEFAULT_PRECISION
-
MAX
public static final HiveTimestampPrecision MAX
-
-
Method Detail
-
values
public static HiveTimestampPrecision[] 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 (HiveTimestampPrecision c : HiveTimestampPrecision.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HiveTimestampPrecision 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
-
getPrecision
public int getPrecision()
-
-