Package org.apache.arrow.flight.sql.impl
Enum FlightSql.CommandStatementIngest.TableDefinitionOptions.TableExistsOption
java.lang.Object
java.lang.Enum<FlightSql.CommandStatementIngest.TableDefinitionOptions.TableExistsOption>
org.apache.arrow.flight.sql.impl.FlightSql.CommandStatementIngest.TableDefinitionOptions.TableExistsOption
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<FlightSql.CommandStatementIngest.TableDefinitionOptions.TableExistsOption>
,java.lang.constant.Constable
- Enclosing class:
- FlightSql.CommandStatementIngest.TableDefinitionOptions
public static enum FlightSql.CommandStatementIngest.TableDefinitionOptions.TableExistsOption
extends Enum<FlightSql.CommandStatementIngest.TableDefinitionOptions.TableExistsOption>
implements com.google.protobuf.ProtocolMessageEnum
The action to take if the target table already existsProtobuf enum
arrow.flight.protocol.sql.CommandStatementIngest.TableDefinitionOptions.TableExistsOption
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAppend to the table if it already existsFail if the table already existsDrop and recreate the table if it already existsDo not use. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Append to the table if it already existsstatic final int
Fail if the table already existsstatic final int
Drop and recreate the table if it already existsstatic 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.TableExistsOption>
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_EXISTS_OPTION_UNSPECIFIED
public static final FlightSql.CommandStatementIngest.TableDefinitionOptions.TableExistsOption TABLE_EXISTS_OPTION_UNSPECIFIEDDo not use. Servers should error if this is specified by a client.
TABLE_EXISTS_OPTION_UNSPECIFIED = 0;
-
TABLE_EXISTS_OPTION_FAIL
public static final FlightSql.CommandStatementIngest.TableDefinitionOptions.TableExistsOption TABLE_EXISTS_OPTION_FAILFail if the table already exists
TABLE_EXISTS_OPTION_FAIL = 1;
-
TABLE_EXISTS_OPTION_APPEND
public static final FlightSql.CommandStatementIngest.TableDefinitionOptions.TableExistsOption TABLE_EXISTS_OPTION_APPENDAppend to the table if it already exists
TABLE_EXISTS_OPTION_APPEND = 2;
-
TABLE_EXISTS_OPTION_REPLACE
public static final FlightSql.CommandStatementIngest.TableDefinitionOptions.TableExistsOption TABLE_EXISTS_OPTION_REPLACEDrop and recreate the table if it already exists
TABLE_EXISTS_OPTION_REPLACE = 3;
-
UNRECOGNIZED
public static final FlightSql.CommandStatementIngest.TableDefinitionOptions.TableExistsOption UNRECOGNIZED
-
-
Field Details
-
TABLE_EXISTS_OPTION_UNSPECIFIED_VALUE
public static final int TABLE_EXISTS_OPTION_UNSPECIFIED_VALUEDo not use. Servers should error if this is specified by a client.
TABLE_EXISTS_OPTION_UNSPECIFIED = 0;
- See Also:
-
TABLE_EXISTS_OPTION_FAIL_VALUE
public static final int TABLE_EXISTS_OPTION_FAIL_VALUEFail if the table already exists
TABLE_EXISTS_OPTION_FAIL = 1;
- See Also:
-
TABLE_EXISTS_OPTION_APPEND_VALUE
public static final int TABLE_EXISTS_OPTION_APPEND_VALUEAppend to the table if it already exists
TABLE_EXISTS_OPTION_APPEND = 2;
- See Also:
-
TABLE_EXISTS_OPTION_REPLACE_VALUE
public static final int TABLE_EXISTS_OPTION_REPLACE_VALUEDrop and recreate the table if it already exists
TABLE_EXISTS_OPTION_REPLACE = 3;
- 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
public static FlightSql.CommandStatementIngest.TableDefinitionOptions.TableExistsOption 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.TableExistsOption 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.TableExistsOption 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.TableExistsOption> 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.TableExistsOption 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
-