Module org.apache.arrow.flight.core
Package org.apache.arrow.flight.sql.impl
Enum FlightSql.XdbcDatetimeSubcode
java.lang.Object
java.lang.Enum<FlightSql.XdbcDatetimeSubcode>
org.apache.arrow.flight.sql.impl.FlightSql.XdbcDatetimeSubcode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<FlightSql.XdbcDatetimeSubcode>
- Enclosing class:
- FlightSql
public static enum FlightSql.XdbcDatetimeSubcode
extends Enum<FlightSql.XdbcDatetimeSubcode>
implements com.google.protobuf.ProtocolMessageEnum
Detailed subtype information for XDBC_TYPE_DATETIME and XDBC_TYPE_INTERVAL.Protobuf enum
arrow.flight.protocol.sql.XdbcDatetimeSubcode
-
Enum Constant Summary
Enum ConstantDescriptionXDBC_SUBCODE_DAY_TO_HOUR = 8;
XDBC_SUBCODE_DAY_TO_MINUTE = 9;
XDBC_SUBCODE_DAY_TO_SECOND = 10;
XDBC_SUBCODE_HOUR_TO_MINUTE = 11;
XDBC_SUBCODE_HOUR_TO_SECOND = 12;
XDBC_SUBCODE_INTERVAL_DAY = 103;
XDBC_SUBCODE_INTERVAL_DAY_TO_HOUR = 108;
XDBC_SUBCODE_INTERVAL_DAY_TO_MINUTE = 109;
XDBC_SUBCODE_INTERVAL_DAY_TO_SECOND = 110;
XDBC_SUBCODE_INTERVAL_HOUR = 104;
XDBC_SUBCODE_INTERVAL_HOUR_TO_MINUTE = 111;
XDBC_SUBCODE_INTERVAL_HOUR_TO_SECOND = 112;
XDBC_SUBCODE_INTERVAL_MINUTE = 105;
XDBC_SUBCODE_INTERVAL_MINUTE_TO_SECOND = 113;
XDBC_SUBCODE_INTERVAL_MONTH = 102;
XDBC_SUBCODE_INTERVAL_SECOND = 106;
XDBC_SUBCODE_INTERVAL_YEAR = 101;
XDBC_SUBCODE_INTERVAL_YEAR_TO_MONTH = 107;
XDBC_SUBCODE_MINUTE_TO_SECOND = 13;
XDBC_SUBCODE_SECOND = 6;
XDBC_SUBCODE_TIME = 2;
XDBC_SUBCODE_TIME_WITH_TIMEZONE = 4;
XDBC_SUBCODE_TIMESTAMP = 3;
XDBC_SUBCODE_TIMESTAMP_WITH_TIMEZONE = 5;
XDBC_SUBCODE_UNKNOWN = 0;
XDBC_SUBCODE_YEAR = 1;
XDBC_SUBCODE_YEAR_TO_MONTH = 7;
-
Field Summary
Modifier and TypeFieldDescriptionstatic final FlightSql.XdbcDatetimeSubcode
XDBC_SUBCODE_DATE = 1;
static final int
XDBC_SUBCODE_DATE = 1;
static final FlightSql.XdbcDatetimeSubcode
XDBC_SUBCODE_DAY = 3;
static final int
XDBC_SUBCODE_DAY_TO_HOUR = 8;
static final int
XDBC_SUBCODE_DAY_TO_MINUTE = 9;
static final int
XDBC_SUBCODE_DAY_TO_SECOND = 10;
static final int
XDBC_SUBCODE_DAY = 3;
static final FlightSql.XdbcDatetimeSubcode
XDBC_SUBCODE_HOUR = 4;
static final int
XDBC_SUBCODE_HOUR_TO_MINUTE = 11;
static final int
XDBC_SUBCODE_HOUR_TO_SECOND = 12;
static final int
XDBC_SUBCODE_HOUR = 4;
static final int
XDBC_SUBCODE_INTERVAL_DAY_TO_HOUR = 108;
static final int
XDBC_SUBCODE_INTERVAL_DAY_TO_MINUTE = 109;
static final int
XDBC_SUBCODE_INTERVAL_DAY_TO_SECOND = 110;
static final int
XDBC_SUBCODE_INTERVAL_DAY = 103;
static final int
XDBC_SUBCODE_INTERVAL_HOUR_TO_MINUTE = 111;
static final int
XDBC_SUBCODE_INTERVAL_HOUR_TO_SECOND = 112;
static final int
XDBC_SUBCODE_INTERVAL_HOUR = 104;
static final int
XDBC_SUBCODE_INTERVAL_MINUTE_TO_SECOND = 113;
static final int
XDBC_SUBCODE_INTERVAL_MINUTE = 105;
static final int
XDBC_SUBCODE_INTERVAL_MONTH = 102;
static final int
XDBC_SUBCODE_INTERVAL_SECOND = 106;
static final int
XDBC_SUBCODE_INTERVAL_YEAR_TO_MONTH = 107;
static final int
XDBC_SUBCODE_INTERVAL_YEAR = 101;
static final FlightSql.XdbcDatetimeSubcode
XDBC_SUBCODE_MINUTE = 5;
static final int
XDBC_SUBCODE_MINUTE_TO_SECOND = 13;
static final int
XDBC_SUBCODE_MINUTE = 5;
static final FlightSql.XdbcDatetimeSubcode
XDBC_SUBCODE_MONTH = 2;
static final int
XDBC_SUBCODE_MONTH = 2;
static final int
XDBC_SUBCODE_SECOND = 6;
static final int
XDBC_SUBCODE_TIME = 2;
static final int
XDBC_SUBCODE_TIME_WITH_TIMEZONE = 4;
static final int
XDBC_SUBCODE_TIMESTAMP = 3;
static final int
XDBC_SUBCODE_TIMESTAMP_WITH_TIMEZONE = 5;
static final int
XDBC_SUBCODE_UNKNOWN = 0;
static final int
XDBC_SUBCODE_YEAR_TO_MONTH = 7;
static final int
XDBC_SUBCODE_YEAR = 1;
-
Method Summary
Modifier and TypeMethodDescriptionforNumber
(int value) static final com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap<FlightSql.XdbcDatetimeSubcode>
valueOf
(int value) Deprecated.valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.static FlightSql.XdbcDatetimeSubcode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
XDBC_SUBCODE_UNKNOWN
XDBC_SUBCODE_UNKNOWN = 0;
-
XDBC_SUBCODE_YEAR
XDBC_SUBCODE_YEAR = 1;
-
XDBC_SUBCODE_TIME
XDBC_SUBCODE_TIME = 2;
-
XDBC_SUBCODE_TIMESTAMP
XDBC_SUBCODE_TIMESTAMP = 3;
-
XDBC_SUBCODE_TIME_WITH_TIMEZONE
XDBC_SUBCODE_TIME_WITH_TIMEZONE = 4;
-
XDBC_SUBCODE_TIMESTAMP_WITH_TIMEZONE
XDBC_SUBCODE_TIMESTAMP_WITH_TIMEZONE = 5;
-
XDBC_SUBCODE_SECOND
XDBC_SUBCODE_SECOND = 6;
-
XDBC_SUBCODE_YEAR_TO_MONTH
XDBC_SUBCODE_YEAR_TO_MONTH = 7;
-
XDBC_SUBCODE_DAY_TO_HOUR
XDBC_SUBCODE_DAY_TO_HOUR = 8;
-
XDBC_SUBCODE_DAY_TO_MINUTE
XDBC_SUBCODE_DAY_TO_MINUTE = 9;
-
XDBC_SUBCODE_DAY_TO_SECOND
XDBC_SUBCODE_DAY_TO_SECOND = 10;
-
XDBC_SUBCODE_HOUR_TO_MINUTE
XDBC_SUBCODE_HOUR_TO_MINUTE = 11;
-
XDBC_SUBCODE_HOUR_TO_SECOND
XDBC_SUBCODE_HOUR_TO_SECOND = 12;
-
XDBC_SUBCODE_MINUTE_TO_SECOND
XDBC_SUBCODE_MINUTE_TO_SECOND = 13;
-
XDBC_SUBCODE_INTERVAL_YEAR
XDBC_SUBCODE_INTERVAL_YEAR = 101;
-
XDBC_SUBCODE_INTERVAL_MONTH
XDBC_SUBCODE_INTERVAL_MONTH = 102;
-
XDBC_SUBCODE_INTERVAL_DAY
XDBC_SUBCODE_INTERVAL_DAY = 103;
-
XDBC_SUBCODE_INTERVAL_HOUR
XDBC_SUBCODE_INTERVAL_HOUR = 104;
-
XDBC_SUBCODE_INTERVAL_MINUTE
XDBC_SUBCODE_INTERVAL_MINUTE = 105;
-
XDBC_SUBCODE_INTERVAL_SECOND
XDBC_SUBCODE_INTERVAL_SECOND = 106;
-
XDBC_SUBCODE_INTERVAL_YEAR_TO_MONTH
XDBC_SUBCODE_INTERVAL_YEAR_TO_MONTH = 107;
-
XDBC_SUBCODE_INTERVAL_DAY_TO_HOUR
XDBC_SUBCODE_INTERVAL_DAY_TO_HOUR = 108;
-
XDBC_SUBCODE_INTERVAL_DAY_TO_MINUTE
XDBC_SUBCODE_INTERVAL_DAY_TO_MINUTE = 109;
-
XDBC_SUBCODE_INTERVAL_DAY_TO_SECOND
XDBC_SUBCODE_INTERVAL_DAY_TO_SECOND = 110;
-
XDBC_SUBCODE_INTERVAL_HOUR_TO_MINUTE
XDBC_SUBCODE_INTERVAL_HOUR_TO_MINUTE = 111;
-
XDBC_SUBCODE_INTERVAL_HOUR_TO_SECOND
XDBC_SUBCODE_INTERVAL_HOUR_TO_SECOND = 112;
-
XDBC_SUBCODE_INTERVAL_MINUTE_TO_SECOND
XDBC_SUBCODE_INTERVAL_MINUTE_TO_SECOND = 113;
-
UNRECOGNIZED
-
-
Field Details
-
XDBC_SUBCODE_DATE
XDBC_SUBCODE_DATE = 1;
-
XDBC_SUBCODE_MONTH
XDBC_SUBCODE_MONTH = 2;
-
XDBC_SUBCODE_DAY
XDBC_SUBCODE_DAY = 3;
-
XDBC_SUBCODE_HOUR
XDBC_SUBCODE_HOUR = 4;
-
XDBC_SUBCODE_MINUTE
XDBC_SUBCODE_MINUTE = 5;
-
XDBC_SUBCODE_UNKNOWN_VALUE
public static final int XDBC_SUBCODE_UNKNOWN_VALUEXDBC_SUBCODE_UNKNOWN = 0;
- See Also:
-
XDBC_SUBCODE_YEAR_VALUE
public static final int XDBC_SUBCODE_YEAR_VALUEXDBC_SUBCODE_YEAR = 1;
- See Also:
-
XDBC_SUBCODE_DATE_VALUE
public static final int XDBC_SUBCODE_DATE_VALUEXDBC_SUBCODE_DATE = 1;
- See Also:
-
XDBC_SUBCODE_TIME_VALUE
public static final int XDBC_SUBCODE_TIME_VALUEXDBC_SUBCODE_TIME = 2;
- See Also:
-
XDBC_SUBCODE_MONTH_VALUE
public static final int XDBC_SUBCODE_MONTH_VALUEXDBC_SUBCODE_MONTH = 2;
- See Also:
-
XDBC_SUBCODE_TIMESTAMP_VALUE
public static final int XDBC_SUBCODE_TIMESTAMP_VALUEXDBC_SUBCODE_TIMESTAMP = 3;
- See Also:
-
XDBC_SUBCODE_DAY_VALUE
public static final int XDBC_SUBCODE_DAY_VALUEXDBC_SUBCODE_DAY = 3;
- See Also:
-
XDBC_SUBCODE_TIME_WITH_TIMEZONE_VALUE
public static final int XDBC_SUBCODE_TIME_WITH_TIMEZONE_VALUEXDBC_SUBCODE_TIME_WITH_TIMEZONE = 4;
- See Also:
-
XDBC_SUBCODE_HOUR_VALUE
public static final int XDBC_SUBCODE_HOUR_VALUEXDBC_SUBCODE_HOUR = 4;
- See Also:
-
XDBC_SUBCODE_TIMESTAMP_WITH_TIMEZONE_VALUE
public static final int XDBC_SUBCODE_TIMESTAMP_WITH_TIMEZONE_VALUEXDBC_SUBCODE_TIMESTAMP_WITH_TIMEZONE = 5;
- See Also:
-
XDBC_SUBCODE_MINUTE_VALUE
public static final int XDBC_SUBCODE_MINUTE_VALUEXDBC_SUBCODE_MINUTE = 5;
- See Also:
-
XDBC_SUBCODE_SECOND_VALUE
public static final int XDBC_SUBCODE_SECOND_VALUEXDBC_SUBCODE_SECOND = 6;
- See Also:
-
XDBC_SUBCODE_YEAR_TO_MONTH_VALUE
public static final int XDBC_SUBCODE_YEAR_TO_MONTH_VALUEXDBC_SUBCODE_YEAR_TO_MONTH = 7;
- See Also:
-
XDBC_SUBCODE_DAY_TO_HOUR_VALUE
public static final int XDBC_SUBCODE_DAY_TO_HOUR_VALUEXDBC_SUBCODE_DAY_TO_HOUR = 8;
- See Also:
-
XDBC_SUBCODE_DAY_TO_MINUTE_VALUE
public static final int XDBC_SUBCODE_DAY_TO_MINUTE_VALUEXDBC_SUBCODE_DAY_TO_MINUTE = 9;
- See Also:
-
XDBC_SUBCODE_DAY_TO_SECOND_VALUE
public static final int XDBC_SUBCODE_DAY_TO_SECOND_VALUEXDBC_SUBCODE_DAY_TO_SECOND = 10;
- See Also:
-
XDBC_SUBCODE_HOUR_TO_MINUTE_VALUE
public static final int XDBC_SUBCODE_HOUR_TO_MINUTE_VALUEXDBC_SUBCODE_HOUR_TO_MINUTE = 11;
- See Also:
-
XDBC_SUBCODE_HOUR_TO_SECOND_VALUE
public static final int XDBC_SUBCODE_HOUR_TO_SECOND_VALUEXDBC_SUBCODE_HOUR_TO_SECOND = 12;
- See Also:
-
XDBC_SUBCODE_MINUTE_TO_SECOND_VALUE
public static final int XDBC_SUBCODE_MINUTE_TO_SECOND_VALUEXDBC_SUBCODE_MINUTE_TO_SECOND = 13;
- See Also:
-
XDBC_SUBCODE_INTERVAL_YEAR_VALUE
public static final int XDBC_SUBCODE_INTERVAL_YEAR_VALUEXDBC_SUBCODE_INTERVAL_YEAR = 101;
- See Also:
-
XDBC_SUBCODE_INTERVAL_MONTH_VALUE
public static final int XDBC_SUBCODE_INTERVAL_MONTH_VALUEXDBC_SUBCODE_INTERVAL_MONTH = 102;
- See Also:
-
XDBC_SUBCODE_INTERVAL_DAY_VALUE
public static final int XDBC_SUBCODE_INTERVAL_DAY_VALUEXDBC_SUBCODE_INTERVAL_DAY = 103;
- See Also:
-
XDBC_SUBCODE_INTERVAL_HOUR_VALUE
public static final int XDBC_SUBCODE_INTERVAL_HOUR_VALUEXDBC_SUBCODE_INTERVAL_HOUR = 104;
- See Also:
-
XDBC_SUBCODE_INTERVAL_MINUTE_VALUE
public static final int XDBC_SUBCODE_INTERVAL_MINUTE_VALUEXDBC_SUBCODE_INTERVAL_MINUTE = 105;
- See Also:
-
XDBC_SUBCODE_INTERVAL_SECOND_VALUE
public static final int XDBC_SUBCODE_INTERVAL_SECOND_VALUEXDBC_SUBCODE_INTERVAL_SECOND = 106;
- See Also:
-
XDBC_SUBCODE_INTERVAL_YEAR_TO_MONTH_VALUE
public static final int XDBC_SUBCODE_INTERVAL_YEAR_TO_MONTH_VALUEXDBC_SUBCODE_INTERVAL_YEAR_TO_MONTH = 107;
- See Also:
-
XDBC_SUBCODE_INTERVAL_DAY_TO_HOUR_VALUE
public static final int XDBC_SUBCODE_INTERVAL_DAY_TO_HOUR_VALUEXDBC_SUBCODE_INTERVAL_DAY_TO_HOUR = 108;
- See Also:
-
XDBC_SUBCODE_INTERVAL_DAY_TO_MINUTE_VALUE
public static final int XDBC_SUBCODE_INTERVAL_DAY_TO_MINUTE_VALUEXDBC_SUBCODE_INTERVAL_DAY_TO_MINUTE = 109;
- See Also:
-
XDBC_SUBCODE_INTERVAL_DAY_TO_SECOND_VALUE
public static final int XDBC_SUBCODE_INTERVAL_DAY_TO_SECOND_VALUEXDBC_SUBCODE_INTERVAL_DAY_TO_SECOND = 110;
- See Also:
-
XDBC_SUBCODE_INTERVAL_HOUR_TO_MINUTE_VALUE
public static final int XDBC_SUBCODE_INTERVAL_HOUR_TO_MINUTE_VALUEXDBC_SUBCODE_INTERVAL_HOUR_TO_MINUTE = 111;
- See Also:
-
XDBC_SUBCODE_INTERVAL_HOUR_TO_SECOND_VALUE
public static final int XDBC_SUBCODE_INTERVAL_HOUR_TO_SECOND_VALUEXDBC_SUBCODE_INTERVAL_HOUR_TO_SECOND = 112;
- See Also:
-
XDBC_SUBCODE_INTERVAL_MINUTE_TO_SECOND_VALUE
public static final int XDBC_SUBCODE_INTERVAL_MINUTE_TO_SECOND_VALUEXDBC_SUBCODE_INTERVAL_MINUTE_TO_SECOND = 113;
- See Also:
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.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:
value
- 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
-
forNumber
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<FlightSql.XdbcDatetimeSubcode> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static FlightSql.XdbcDatetimeSubcode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) 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:
desc
- 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
-