Package org.apache.arrow.flight.sql.impl
Enum FlightSql.CommandStatementIngest.TableDefinitionOptions.TableNotExistOption
java.lang.Object
java.lang.Enum<FlightSql.CommandStatementIngest.TableDefinitionOptions.TableNotExistOption>
org.apache.arrow.flight.sql.impl.FlightSql.CommandStatementIngest.TableDefinitionOptions.TableNotExistOption
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<FlightSql.CommandStatementIngest.TableDefinitionOptions.TableNotExistOption>
,java.lang.constant.Constable
- Enclosing class:
- FlightSql.CommandStatementIngest.TableDefinitionOptions
public static enum FlightSql.CommandStatementIngest.TableDefinitionOptions.TableNotExistOption
extends Enum<FlightSql.CommandStatementIngest.TableDefinitionOptions.TableNotExistOption>
implements com.google.protobuf.ProtocolMessageEnum
The action to take if the target table does not existProtobuf enum
arrow.flight.protocol.sql.CommandStatementIngest.TableDefinitionOptions.TableNotExistOption
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCreate the table if it does not existFail if the table does not existDo not use. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Create the table if it does not existstatic final int
Fail if the table does not existstatic final int
Do not use. -
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.CommandStatementIngest.TableDefinitionOptions.TableNotExistOption>
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.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TABLE_NOT_EXIST_OPTION_UNSPECIFIED
public static final FlightSql.CommandStatementIngest.TableDefinitionOptions.TableNotExistOption TABLE_NOT_EXIST_OPTION_UNSPECIFIEDDo not use. Servers should error if this is specified by a client.
TABLE_NOT_EXIST_OPTION_UNSPECIFIED = 0;
-
TABLE_NOT_EXIST_OPTION_CREATE
public static final FlightSql.CommandStatementIngest.TableDefinitionOptions.TableNotExistOption TABLE_NOT_EXIST_OPTION_CREATECreate the table if it does not exist
TABLE_NOT_EXIST_OPTION_CREATE = 1;
-
TABLE_NOT_EXIST_OPTION_FAIL
public static final FlightSql.CommandStatementIngest.TableDefinitionOptions.TableNotExistOption TABLE_NOT_EXIST_OPTION_FAILFail if the table does not exist
TABLE_NOT_EXIST_OPTION_FAIL = 2;
-
UNRECOGNIZED
public static final FlightSql.CommandStatementIngest.TableDefinitionOptions.TableNotExistOption UNRECOGNIZED
-
-
Field Details
-
TABLE_NOT_EXIST_OPTION_UNSPECIFIED_VALUE
public static final int TABLE_NOT_EXIST_OPTION_UNSPECIFIED_VALUEDo not use. Servers should error if this is specified by a client.
TABLE_NOT_EXIST_OPTION_UNSPECIFIED = 0;
- See Also:
-
TABLE_NOT_EXIST_OPTION_CREATE_VALUE
public static final int TABLE_NOT_EXIST_OPTION_CREATE_VALUECreate the table if it does not exist
TABLE_NOT_EXIST_OPTION_CREATE = 1;
- See Also:
-
TABLE_NOT_EXIST_OPTION_FAIL_VALUE
public static final int TABLE_NOT_EXIST_OPTION_FAIL_VALUEFail if the table does not exist
TABLE_NOT_EXIST_OPTION_FAIL = 2;
- See Also:
-
-
Method Details
-
values
public static FlightSql.CommandStatementIngest.TableDefinitionOptions.TableNotExistOption[] 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 FlightSql.CommandStatementIngest.TableDefinitionOptions.TableNotExistOption 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
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static FlightSql.CommandStatementIngest.TableDefinitionOptions.TableNotExistOption valueOf(int value) 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
public static FlightSql.CommandStatementIngest.TableDefinitionOptions.TableNotExistOption forNumber(int value) - 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.CommandStatementIngest.TableDefinitionOptions.TableNotExistOption> 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.CommandStatementIngest.TableDefinitionOptions.TableNotExistOption 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
-