Package org.apache.arrow.flight.sql.impl
Class FlightSql.CommandStatementIngest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.apache.arrow.flight.sql.impl.FlightSql.CommandStatementIngest
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
,FlightSql.CommandStatementIngestOrBuilder
- Enclosing class:
- FlightSql
public static final class FlightSql.CommandStatementIngest
extends com.google.protobuf.GeneratedMessageV3
implements FlightSql.CommandStatementIngestOrBuilder
Represents a bulk ingestion request. Used in the command member of FlightDescriptor for the the RPC call DoPut to cause the server load the contents of the stream's FlightData into the target destination.Protobuf type
arrow.flight.protocol.sql.CommandStatementIngest
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Represents a bulk ingestion request.static final class
Options for table definition behaviorstatic interface
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,
BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsOptions
(String key) Backend-specific options.boolean
The catalog of the destination table to load data into.com.google.protobuf.ByteString
The catalog of the destination table to load data into.static final com.google.protobuf.Descriptors.Descriptor
Deprecated.int
Backend-specific options.Backend-specific options.getOptionsOrDefault
(String key, String defaultValue) Backend-specific options.getOptionsOrThrow
(String key) Backend-specific options.com.google.protobuf.Parser<FlightSql.CommandStatementIngest>
The db_schema of the destination table to load data into.com.google.protobuf.ByteString
The db_schema of the destination table to load data into.int
getTable()
The table to load data into.com.google.protobuf.ByteString
The table to load data into.The behavior for handling the table definition.The behavior for handling the table definition.boolean
Store ingested data in a temporary table.com.google.protobuf.ByteString
Perform the ingestion as part of this transaction.boolean
The catalog of the destination table to load data into.int
hashCode()
boolean
The db_schema of the destination table to load data into.boolean
The behavior for handling the table definition.boolean
Perform the ingestion as part of this transaction.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMapFieldReflection
(int number) final boolean
newBuilder
(FlightSql.CommandStatementIngest prototype) protected FlightSql.CommandStatementIngest.Builder
newBuilderForType
(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected Object
newInstance
(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) parseDelimitedFrom
(InputStream input) parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom
(byte[] data) parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom
(com.google.protobuf.ByteString data) parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom
(com.google.protobuf.CodedInputStream input) parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom
(InputStream input) parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom
(ByteBuffer data) parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<FlightSql.CommandStatementIngest>
parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TABLE_DEFINITION_OPTIONS_FIELD_NUMBER
public static final int TABLE_DEFINITION_OPTIONS_FIELD_NUMBER- See Also:
-
TABLE_FIELD_NUMBER
public static final int TABLE_FIELD_NUMBER- See Also:
-
SCHEMA_FIELD_NUMBER
public static final int SCHEMA_FIELD_NUMBER- See Also:
-
CATALOG_FIELD_NUMBER
public static final int CATALOG_FIELD_NUMBER- See Also:
-
TEMPORARY_FIELD_NUMBER
public static final int TEMPORARY_FIELD_NUMBER- See Also:
-
TRANSACTION_ID_FIELD_NUMBER
public static final int TRANSACTION_ID_FIELD_NUMBER- See Also:
-
OPTIONS_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflection
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
hasTableDefinitionOptions
public boolean hasTableDefinitionOptions()The behavior for handling the table definition.
.arrow.flight.protocol.sql.CommandStatementIngest.TableDefinitionOptions table_definition_options = 1;
- Specified by:
hasTableDefinitionOptions
in interfaceFlightSql.CommandStatementIngestOrBuilder
- Returns:
- Whether the tableDefinitionOptions field is set.
-
getTableDefinitionOptions
The behavior for handling the table definition.
.arrow.flight.protocol.sql.CommandStatementIngest.TableDefinitionOptions table_definition_options = 1;
- Specified by:
getTableDefinitionOptions
in interfaceFlightSql.CommandStatementIngestOrBuilder
- Returns:
- The tableDefinitionOptions.
-
getTableDefinitionOptionsOrBuilder
public FlightSql.CommandStatementIngest.TableDefinitionOptionsOrBuilder getTableDefinitionOptionsOrBuilder()The behavior for handling the table definition.
.arrow.flight.protocol.sql.CommandStatementIngest.TableDefinitionOptions table_definition_options = 1;
- Specified by:
getTableDefinitionOptionsOrBuilder
in interfaceFlightSql.CommandStatementIngestOrBuilder
-
getTable
The table to load data into.
string table = 2;
- Specified by:
getTable
in interfaceFlightSql.CommandStatementIngestOrBuilder
- Returns:
- The table.
-
getTableBytes
public com.google.protobuf.ByteString getTableBytes()The table to load data into.
string table = 2;
- Specified by:
getTableBytes
in interfaceFlightSql.CommandStatementIngestOrBuilder
- Returns:
- The bytes for table.
-
hasSchema
public boolean hasSchema()The db_schema of the destination table to load data into. If unset, a backend-specific default may be used.
optional string schema = 3;
- Specified by:
hasSchema
in interfaceFlightSql.CommandStatementIngestOrBuilder
- Returns:
- Whether the schema field is set.
-
getSchema
The db_schema of the destination table to load data into. If unset, a backend-specific default may be used.
optional string schema = 3;
- Specified by:
getSchema
in interfaceFlightSql.CommandStatementIngestOrBuilder
- Returns:
- The schema.
-
getSchemaBytes
public com.google.protobuf.ByteString getSchemaBytes()The db_schema of the destination table to load data into. If unset, a backend-specific default may be used.
optional string schema = 3;
- Specified by:
getSchemaBytes
in interfaceFlightSql.CommandStatementIngestOrBuilder
- Returns:
- The bytes for schema.
-
hasCatalog
public boolean hasCatalog()The catalog of the destination table to load data into. If unset, a backend-specific default may be used.
optional string catalog = 4;
- Specified by:
hasCatalog
in interfaceFlightSql.CommandStatementIngestOrBuilder
- Returns:
- Whether the catalog field is set.
-
getCatalog
The catalog of the destination table to load data into. If unset, a backend-specific default may be used.
optional string catalog = 4;
- Specified by:
getCatalog
in interfaceFlightSql.CommandStatementIngestOrBuilder
- Returns:
- The catalog.
-
getCatalogBytes
public com.google.protobuf.ByteString getCatalogBytes()The catalog of the destination table to load data into. If unset, a backend-specific default may be used.
optional string catalog = 4;
- Specified by:
getCatalogBytes
in interfaceFlightSql.CommandStatementIngestOrBuilder
- Returns:
- The bytes for catalog.
-
getTemporary
public boolean getTemporary()Store ingested data in a temporary table. The effect of setting temporary is to place the table in a backend-defined namespace, and to drop the table at the end of the session. The namespacing may make use of a backend-specific schema and/or catalog. The server should return an error if an explicit choice of schema or catalog is incompatible with the server's namespacing decision.
bool temporary = 5;
- Specified by:
getTemporary
in interfaceFlightSql.CommandStatementIngestOrBuilder
- Returns:
- The temporary.
-
hasTransactionId
public boolean hasTransactionId()Perform the ingestion as part of this transaction. If specified, results should not be committed in the event of an error/cancellation.
optional bytes transaction_id = 6;
- Specified by:
hasTransactionId
in interfaceFlightSql.CommandStatementIngestOrBuilder
- Returns:
- Whether the transactionId field is set.
-
getTransactionId
public com.google.protobuf.ByteString getTransactionId()Perform the ingestion as part of this transaction. If specified, results should not be committed in the event of an error/cancellation.
optional bytes transaction_id = 6;
- Specified by:
getTransactionId
in interfaceFlightSql.CommandStatementIngestOrBuilder
- Returns:
- The transactionId.
-
getOptionsCount
public int getOptionsCount()Description copied from interface:FlightSql.CommandStatementIngestOrBuilder
Backend-specific options.
map<string, string> options = 1000;
- Specified by:
getOptionsCount
in interfaceFlightSql.CommandStatementIngestOrBuilder
-
containsOptions
Backend-specific options.
map<string, string> options = 1000;
- Specified by:
containsOptions
in interfaceFlightSql.CommandStatementIngestOrBuilder
-
getOptions
Deprecated.UsegetOptionsMap()
instead.- Specified by:
getOptions
in interfaceFlightSql.CommandStatementIngestOrBuilder
-
getOptionsMap
Backend-specific options.
map<string, string> options = 1000;
- Specified by:
getOptionsMap
in interfaceFlightSql.CommandStatementIngestOrBuilder
-
getOptionsOrDefault
Backend-specific options.
map<string, string> options = 1000;
- Specified by:
getOptionsOrDefault
in interfaceFlightSql.CommandStatementIngestOrBuilder
-
getOptionsOrThrow
Backend-specific options.
map<string, string> options = 1000;
- Specified by:
getOptionsOrThrow
in interfaceFlightSql.CommandStatementIngestOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static FlightSql.CommandStatementIngest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FlightSql.CommandStatementIngest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FlightSql.CommandStatementIngest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FlightSql.CommandStatementIngest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FlightSql.CommandStatementIngest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FlightSql.CommandStatementIngest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FlightSql.CommandStatementIngest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static FlightSql.CommandStatementIngest parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static FlightSql.CommandStatementIngest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static FlightSql.CommandStatementIngest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static FlightSql.CommandStatementIngest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static FlightSql.CommandStatementIngest.Builder newBuilder(FlightSql.CommandStatementIngest prototype) -
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FlightSql.CommandStatementIngest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-