Module org.apache.arrow.flight.core
Package org.apache.arrow.flight.sql.impl
Class FlightSql.CommandStatementIngest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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.GeneratedMessage
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
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a bulk ingestion request.static final classOptions for table definition behaviorstatic interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsOptions(String key) Backend-specific options.booleanThe catalog of the destination table to load data into.com.google.protobuf.ByteStringThe catalog of the destination table to load data into.static final com.google.protobuf.Descriptors.DescriptorDeprecated.intBackend-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.ByteStringThe db_schema of the destination table to load data into.intgetTable()The table to load data into.com.google.protobuf.ByteStringThe table to load data into.The behavior for handling the table definition.The behavior for handling the table definition.booleanStore ingested data in a temporary table.com.google.protobuf.ByteStringPerform the ingestion as part of this transaction.booleanThe catalog of the destination table to load data into.inthashCode()booleanThe db_schema of the destination table to load data into.booleanThe behavior for handling the table definition.booleanPerform the ingestion as part of this transaction.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleannewBuilder(FlightSql.CommandStatementIngest prototype) protected FlightSql.CommandStatementIngest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods 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
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasTableDefinitionOptions
public boolean hasTableDefinitionOptions()The behavior for handling the table definition.
.arrow.flight.protocol.sql.CommandStatementIngest.TableDefinitionOptions table_definition_options = 1;- Specified by:
hasTableDefinitionOptionsin 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:
getTableDefinitionOptionsin 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:
getTableDefinitionOptionsOrBuilderin interfaceFlightSql.CommandStatementIngestOrBuilder
-
getTable
The table to load data into.
string table = 2;- Specified by:
getTablein interfaceFlightSql.CommandStatementIngestOrBuilder- Returns:
- The table.
-
getTableBytes
public com.google.protobuf.ByteString getTableBytes()The table to load data into.
string table = 2;- Specified by:
getTableBytesin 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:
hasSchemain 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:
getSchemain 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:
getSchemaBytesin 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:
hasCatalogin 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:
getCatalogin 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:
getCatalogBytesin 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:
getTemporaryin 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:
hasTransactionIdin 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:
getTransactionIdin interfaceFlightSql.CommandStatementIngestOrBuilder- Returns:
- The transactionId.
-
getOptionsCount
public int getOptionsCount()Description copied from interface:FlightSql.CommandStatementIngestOrBuilderBackend-specific options.
map<string, string> options = 1000;- Specified by:
getOptionsCountin interfaceFlightSql.CommandStatementIngestOrBuilder
-
containsOptions
Backend-specific options.
map<string, string> options = 1000;- Specified by:
containsOptionsin interfaceFlightSql.CommandStatementIngestOrBuilder
-
getOptions
Deprecated.UsegetOptionsMap()instead.- Specified by:
getOptionsin interfaceFlightSql.CommandStatementIngestOrBuilder
-
getOptionsMap
Backend-specific options.
map<string, string> options = 1000;- Specified by:
getOptionsMapin interfaceFlightSql.CommandStatementIngestOrBuilder
-
getOptionsOrDefault
Backend-specific options.
map<string, string> options = 1000;- Specified by:
getOptionsOrDefaultin interfaceFlightSql.CommandStatementIngestOrBuilder
-
getOptionsOrThrow
Backend-specific options.
map<string, string> options = 1000;- Specified by:
getOptionsOrThrowin interfaceFlightSql.CommandStatementIngestOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static FlightSql.CommandStatementIngest.Builder newBuilder(FlightSql.CommandStatementIngest prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FlightSql.CommandStatementIngest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-