Module org.apache.arrow.flight.core
Package org.apache.arrow.flight.sql.impl
Class FlightSql.CommandStatementIngest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandStatementIngest.Builder>
org.apache.arrow.flight.sql.impl.FlightSql.CommandStatementIngest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,FlightSql.CommandStatementIngestOrBuilder
- Enclosing class:
- FlightSql.CommandStatementIngest
public static final class FlightSql.CommandStatementIngest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandStatementIngest.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The catalog of the destination table to load data into.The db_schema of the destination table to load data into.The table to load data into.The behavior for handling the table definition.Store ingested data in a temporary table.Perform the ingestion as part of this transaction.booleancontainsOptions(String key) Backend-specific options.The 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.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.Deprecated.intBackend-specific options.Backend-specific options.getOptionsOrDefault(String key, String defaultValue) Backend-specific options.getOptionsOrThrow(String key) Backend-specific options.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.getTable()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.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.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) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The behavior for handling the table definition.putAllOptions(Map<String, String> values) Backend-specific options.putOptions(String key, String value) Backend-specific options.removeOptions(String key) Backend-specific options.setCatalog(String value) The catalog of the destination table to load data into.setCatalogBytes(com.google.protobuf.ByteString value) The catalog of the destination table to load data into.The db_schema of the destination table to load data into.setSchemaBytes(com.google.protobuf.ByteString value) The db_schema of the destination table to load data into.The table to load data into.setTableBytes(com.google.protobuf.ByteString value) The table to load data into.The behavior for handling the table definition.setTableDefinitionOptions(FlightSql.CommandStatementIngest.TableDefinitionOptions.Builder builderForValue) The behavior for handling the table definition.setTemporary(boolean value) Store ingested data in a temporary table.setTransactionId(com.google.protobuf.ByteString value) Perform the ingestion as part of this transaction.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<FlightSql.CommandStatementIngest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandStatementIngest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandStatementIngest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandStatementIngest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandStatementIngest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FlightSql.CommandStatementIngest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandStatementIngest.Builder>
-
mergeFrom
public FlightSql.CommandStatementIngest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FlightSql.CommandStatementIngest.Builder>- Throws:
IOException
-
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.
-
setTableDefinitionOptions
public FlightSql.CommandStatementIngest.Builder setTableDefinitionOptions(FlightSql.CommandStatementIngest.TableDefinitionOptions value) The behavior for handling the table definition.
.arrow.flight.protocol.sql.CommandStatementIngest.TableDefinitionOptions table_definition_options = 1; -
setTableDefinitionOptions
public FlightSql.CommandStatementIngest.Builder setTableDefinitionOptions(FlightSql.CommandStatementIngest.TableDefinitionOptions.Builder builderForValue) The behavior for handling the table definition.
.arrow.flight.protocol.sql.CommandStatementIngest.TableDefinitionOptions table_definition_options = 1; -
mergeTableDefinitionOptions
public FlightSql.CommandStatementIngest.Builder mergeTableDefinitionOptions(FlightSql.CommandStatementIngest.TableDefinitionOptions value) The behavior for handling the table definition.
.arrow.flight.protocol.sql.CommandStatementIngest.TableDefinitionOptions table_definition_options = 1; -
clearTableDefinitionOptions
The behavior for handling the table definition.
.arrow.flight.protocol.sql.CommandStatementIngest.TableDefinitionOptions table_definition_options = 1; -
getTableDefinitionOptionsBuilder
public FlightSql.CommandStatementIngest.TableDefinitionOptions.Builder getTableDefinitionOptionsBuilder()The behavior for handling the table definition.
.arrow.flight.protocol.sql.CommandStatementIngest.TableDefinitionOptions table_definition_options = 1; -
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.
-
setTable
The table to load data into.
string table = 2;- Parameters:
value- The table to set.- Returns:
- This builder for chaining.
-
clearTable
The table to load data into.
string table = 2;- Returns:
- This builder for chaining.
-
setTableBytes
The table to load data into.
string table = 2;- Parameters:
value- The bytes for table to set.- Returns:
- This builder for chaining.
-
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.
-
setSchema
The db_schema of the destination table to load data into. If unset, a backend-specific default may be used.
optional string schema = 3;- Parameters:
value- The schema to set.- Returns:
- This builder for chaining.
-
clearSchema
The db_schema of the destination table to load data into. If unset, a backend-specific default may be used.
optional string schema = 3;- Returns:
- This builder for chaining.
-
setSchemaBytes
public FlightSql.CommandStatementIngest.Builder setSchemaBytes(com.google.protobuf.ByteString value) The db_schema of the destination table to load data into. If unset, a backend-specific default may be used.
optional string schema = 3;- Parameters:
value- The bytes for schema to set.- Returns:
- This builder for chaining.
-
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.
-
setCatalog
The catalog of the destination table to load data into. If unset, a backend-specific default may be used.
optional string catalog = 4;- Parameters:
value- The catalog to set.- Returns:
- This builder for chaining.
-
clearCatalog
The catalog of the destination table to load data into. If unset, a backend-specific default may be used.
optional string catalog = 4;- Returns:
- This builder for chaining.
-
setCatalogBytes
public FlightSql.CommandStatementIngest.Builder setCatalogBytes(com.google.protobuf.ByteString value) The catalog of the destination table to load data into. If unset, a backend-specific default may be used.
optional string catalog = 4;- Parameters:
value- The bytes for catalog to set.- Returns:
- This builder for chaining.
-
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.
-
setTemporary
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;- Parameters:
value- The temporary to set.- Returns:
- This builder for chaining.
-
clearTemporary
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;- Returns:
- This builder for chaining.
-
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.
-
setTransactionId
public FlightSql.CommandStatementIngest.Builder setTransactionId(com.google.protobuf.ByteString value) 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;- Parameters:
value- The transactionId to set.- Returns:
- This builder for chaining.
-
clearTransactionId
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;- Returns:
- This builder for chaining.
-
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
-
clearOptions
-
removeOptions
Backend-specific options.
map<string, string> options = 1000; -
getMutableOptions
Deprecated.Use alternate mutation accessors instead. -
putOptions
Backend-specific options.
map<string, string> options = 1000; -
putAllOptions
Backend-specific options.
map<string, string> options = 1000;
-