Enum DateTimeComponent

java.lang.Object
java.lang.Enum<DateTimeComponent>
ai.rapids.cudf.DateTimeComponent
All Implemented Interfaces:
Serializable, Comparable<DateTimeComponent>, java.lang.constant.Constable

public enum DateTimeComponent extends Enum<DateTimeComponent>
Types of datetime components that may be extracted.
  • Enum Constant Details

    • YEAR

      public static final DateTimeComponent YEAR
      year as an INT16
    • MONTH

      public static final DateTimeComponent MONTH
      month 1 - jan, as an INT16
    • DAY

      public static final DateTimeComponent DAY
      Day of the month as an INT16
    • WEEKDAY

      public static final DateTimeComponent WEEKDAY
      day of the week, Monday=1, ..., Sunday=7 as an INT16
    • HOUR

      public static final DateTimeComponent HOUR
      hour of the day 24-hour clock as an INT16
    • MINUTE

      public static final DateTimeComponent MINUTE
      minutes past the hour as an INT16
    • SECOND

      public static final DateTimeComponent SECOND
      seconds past the minute as an INT16
    • MILLISECOND

      public static final DateTimeComponent MILLISECOND
      milliseconds past the seconds as an INT16
    • MICROSECOND

      public static final DateTimeComponent MICROSECOND
      microseconds past the millisecond as an INT16
    • NANOSECOND

      public static final DateTimeComponent NANOSECOND
      nanoseconds past the microsecond as an INT16
  • Method Details

    • values

      public static DateTimeComponent[] 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

      public static DateTimeComponent 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 name
      NullPointerException - if the argument is null
    • getNativeId

      public int getNativeId()