Module org.apache.arrow.flight.core
Package org.apache.arrow.flight.sql.impl
Class FlightSql.CommandGetExportedKeys.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandGetExportedKeys.Builder>
org.apache.arrow.flight.sql.impl.FlightSql.CommandGetExportedKeys.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,FlightSql.CommandGetExportedKeysOrBuilder
- Enclosing class:
- FlightSql.CommandGetExportedKeys
public static final class FlightSql.CommandGetExportedKeys.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandGetExportedKeys.Builder>
implements FlightSql.CommandGetExportedKeysOrBuilder
Represents a request to retrieve a description of the foreign key columns that reference the given table's primary key columns (the foreign keys exported by a table) of a table on a Flight SQL enabled backend. Used in the command member of FlightDescriptor for the following RPC calls: - GetSchema: return the Arrow schema of the query. - GetFlightInfo: execute the catalog metadata request. The returned Arrow schema will be: < pk_catalog_name: utf8, pk_db_schema_name: utf8, pk_table_name: utf8 not null, pk_column_name: utf8 not null, fk_catalog_name: utf8, fk_db_schema_name: utf8, fk_table_name: utf8 not null, fk_column_name: utf8 not null, key_sequence: int32 not null, fk_key_name: utf8, pk_key_name: utf8, update_rule: uint8 not null, delete_rule: uint8 not null > The returned data should be ordered by fk_catalog_name, fk_db_schema_name, fk_table_name, fk_key_name, then key_sequence. update_rule and delete_rule returns a byte that is equivalent to actions declared on UpdateDeleteRules enum.Protobuf type
arrow.flight.protocol.sql.CommandGetExportedKeys-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Specifies the catalog to search for the foreign key table.Specifies the schema to search for the foreign key table.Specifies the foreign key table to get the foreign keys for.Specifies the catalog to search for the foreign key table.com.google.protobuf.ByteStringSpecifies the catalog to search for the foreign key table.Specifies the schema to search for the foreign key table.com.google.protobuf.ByteStringSpecifies the schema to search for the foreign key table.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetTable()Specifies the foreign key table to get the foreign keys for.com.google.protobuf.ByteStringSpecifies the foreign key table to get the foreign keys for.booleanSpecifies the catalog to search for the foreign key table.booleanSpecifies the schema to search for the foreign key table.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCatalog(String value) Specifies the catalog to search for the foreign key table.setCatalogBytes(com.google.protobuf.ByteString value) Specifies the catalog to search for the foreign key table.setDbSchema(String value) Specifies the schema to search for the foreign key table.setDbSchemaBytes(com.google.protobuf.ByteString value) Specifies the schema to search for the foreign key table.Specifies the foreign key table to get the foreign keys for.setTableBytes(com.google.protobuf.ByteString value) Specifies the foreign key table to get the foreign keys for.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandGetExportedKeys.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.CommandGetExportedKeys.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.CommandGetExportedKeys.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.CommandGetExportedKeys.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandGetExportedKeys.Builder>
-
mergeFrom
public FlightSql.CommandGetExportedKeys.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.CommandGetExportedKeys.Builder>- Throws:
IOException
-
hasCatalog
public boolean hasCatalog()Specifies the catalog to search for the foreign key table. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
optional string catalog = 1;- Specified by:
hasCatalogin interfaceFlightSql.CommandGetExportedKeysOrBuilder- Returns:
- Whether the catalog field is set.
-
getCatalog
Specifies the catalog to search for the foreign key table. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
optional string catalog = 1;- Specified by:
getCatalogin interfaceFlightSql.CommandGetExportedKeysOrBuilder- Returns:
- The catalog.
-
getCatalogBytes
public com.google.protobuf.ByteString getCatalogBytes()Specifies the catalog to search for the foreign key table. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
optional string catalog = 1;- Specified by:
getCatalogBytesin interfaceFlightSql.CommandGetExportedKeysOrBuilder- Returns:
- The bytes for catalog.
-
setCatalog
Specifies the catalog to search for the foreign key table. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
optional string catalog = 1;- Parameters:
value- The catalog to set.- Returns:
- This builder for chaining.
-
clearCatalog
Specifies the catalog to search for the foreign key table. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
optional string catalog = 1;- Returns:
- This builder for chaining.
-
setCatalogBytes
public FlightSql.CommandGetExportedKeys.Builder setCatalogBytes(com.google.protobuf.ByteString value) Specifies the catalog to search for the foreign key table. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
optional string catalog = 1;- Parameters:
value- The bytes for catalog to set.- Returns:
- This builder for chaining.
-
hasDbSchema
public boolean hasDbSchema()Specifies the schema to search for the foreign key table. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
optional string db_schema = 2;- Specified by:
hasDbSchemain interfaceFlightSql.CommandGetExportedKeysOrBuilder- Returns:
- Whether the dbSchema field is set.
-
getDbSchema
Specifies the schema to search for the foreign key table. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
optional string db_schema = 2;- Specified by:
getDbSchemain interfaceFlightSql.CommandGetExportedKeysOrBuilder- Returns:
- The dbSchema.
-
getDbSchemaBytes
public com.google.protobuf.ByteString getDbSchemaBytes()Specifies the schema to search for the foreign key table. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
optional string db_schema = 2;- Specified by:
getDbSchemaBytesin interfaceFlightSql.CommandGetExportedKeysOrBuilder- Returns:
- The bytes for dbSchema.
-
setDbSchema
Specifies the schema to search for the foreign key table. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
optional string db_schema = 2;- Parameters:
value- The dbSchema to set.- Returns:
- This builder for chaining.
-
clearDbSchema
Specifies the schema to search for the foreign key table. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
optional string db_schema = 2;- Returns:
- This builder for chaining.
-
setDbSchemaBytes
public FlightSql.CommandGetExportedKeys.Builder setDbSchemaBytes(com.google.protobuf.ByteString value) Specifies the schema to search for the foreign key table. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
optional string db_schema = 2;- Parameters:
value- The bytes for dbSchema to set.- Returns:
- This builder for chaining.
-
getTable
Specifies the foreign key table to get the foreign keys for.
string table = 3;- Specified by:
getTablein interfaceFlightSql.CommandGetExportedKeysOrBuilder- Returns:
- The table.
-
getTableBytes
public com.google.protobuf.ByteString getTableBytes()Specifies the foreign key table to get the foreign keys for.
string table = 3;- Specified by:
getTableBytesin interfaceFlightSql.CommandGetExportedKeysOrBuilder- Returns:
- The bytes for table.
-
setTable
Specifies the foreign key table to get the foreign keys for.
string table = 3;- Parameters:
value- The table to set.- Returns:
- This builder for chaining.
-
clearTable
Specifies the foreign key table to get the foreign keys for.
string table = 3;- Returns:
- This builder for chaining.
-
setTableBytes
Specifies the foreign key table to get the foreign keys for.
string table = 3;- Parameters:
value- The bytes for table to set.- Returns:
- This builder for chaining.
-