public static final class FlightSql.CommandGetImportedKeys.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder> implements FlightSql.CommandGetImportedKeysOrBuilder
Represents a request to retrieve the foreign keys 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 pk_catalog_name, pk_db_schema_name, pk_table_name, pk_key_name, then key_sequence.
update_rule and delete_rule returns a byte that is equivalent to actions:
- 0 = CASCADE
- 1 = RESTRICT
- 2 = SET NULL
- 3 = NO ACTION
- 4 = SET DEFAULT
Protobuf type arrow.flight.protocol.sql.CommandGetImportedKeys| Modifier and Type | Method and Description |
|---|---|
FlightSql.CommandGetImportedKeys |
build() |
FlightSql.CommandGetImportedKeys |
buildPartial() |
FlightSql.CommandGetImportedKeys.Builder |
clear() |
FlightSql.CommandGetImportedKeys.Builder |
clearCatalog()
Specifies the catalog to search for the primary key table.
|
FlightSql.CommandGetImportedKeys.Builder |
clearDbSchema()
Specifies the schema to search for the primary key table.
|
FlightSql.CommandGetImportedKeys.Builder |
clearTable()
Specifies the primary key table to get the foreign keys for.
|
String |
getCatalog()
Specifies the catalog to search for the primary key table.
|
com.google.protobuf.ByteString |
getCatalogBytes()
Specifies the catalog to search for the primary key table.
|
String |
getDbSchema()
Specifies the schema to search for the primary key table.
|
com.google.protobuf.ByteString |
getDbSchemaBytes()
Specifies the schema to search for the primary key table.
|
FlightSql.CommandGetImportedKeys |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getTable()
Specifies the primary key table to get the foreign keys for.
|
com.google.protobuf.ByteString |
getTableBytes()
Specifies the primary key table to get the foreign keys for.
|
boolean |
hasCatalog()
Specifies the catalog to search for the primary key table.
|
boolean |
hasDbSchema()
Specifies the schema to search for the primary key table.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
FlightSql.CommandGetImportedKeys.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
FlightSql.CommandGetImportedKeys.Builder |
mergeFrom(FlightSql.CommandGetImportedKeys other) |
FlightSql.CommandGetImportedKeys.Builder |
mergeFrom(com.google.protobuf.Message other) |
FlightSql.CommandGetImportedKeys.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
FlightSql.CommandGetImportedKeys.Builder |
setCatalog(String value)
Specifies the catalog to search for the primary key table.
|
FlightSql.CommandGetImportedKeys.Builder |
setCatalogBytes(com.google.protobuf.ByteString value)
Specifies the catalog to search for the primary key table.
|
FlightSql.CommandGetImportedKeys.Builder |
setDbSchema(String value)
Specifies the schema to search for the primary key table.
|
FlightSql.CommandGetImportedKeys.Builder |
setDbSchemaBytes(com.google.protobuf.ByteString value)
Specifies the schema to search for the primary key table.
|
FlightSql.CommandGetImportedKeys.Builder |
setTable(String value)
Specifies the primary key table to get the foreign keys for.
|
FlightSql.CommandGetImportedKeys.Builder |
setTableBytes(com.google.protobuf.ByteString value)
Specifies the primary key table to get the foreign keys for.
|
FlightSql.CommandGetImportedKeys.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>public FlightSql.CommandGetImportedKeys.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>public FlightSql.CommandGetImportedKeys getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic FlightSql.CommandGetImportedKeys build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic FlightSql.CommandGetImportedKeys buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic FlightSql.CommandGetImportedKeys.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FlightSql.CommandGetImportedKeys.Builder>public FlightSql.CommandGetImportedKeys.Builder mergeFrom(FlightSql.CommandGetImportedKeys other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>public FlightSql.CommandGetImportedKeys.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FlightSql.CommandGetImportedKeys.Builder>IOExceptionpublic boolean hasCatalog()
Specifies the catalog to search for the primary 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;hasCatalog in interface FlightSql.CommandGetImportedKeysOrBuilderpublic String getCatalog()
Specifies the catalog to search for the primary 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;getCatalog in interface FlightSql.CommandGetImportedKeysOrBuilderpublic com.google.protobuf.ByteString getCatalogBytes()
Specifies the catalog to search for the primary 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;getCatalogBytes in interface FlightSql.CommandGetImportedKeysOrBuilderpublic FlightSql.CommandGetImportedKeys.Builder setCatalog(String value)
Specifies the catalog to search for the primary 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;value - The catalog to set.public FlightSql.CommandGetImportedKeys.Builder clearCatalog()
Specifies the catalog to search for the primary 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;public FlightSql.CommandGetImportedKeys.Builder setCatalogBytes(com.google.protobuf.ByteString value)
Specifies the catalog to search for the primary 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;value - The bytes for catalog to set.public boolean hasDbSchema()
Specifies the schema to search for the primary 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;hasDbSchema in interface FlightSql.CommandGetImportedKeysOrBuilderpublic String getDbSchema()
Specifies the schema to search for the primary 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;getDbSchema in interface FlightSql.CommandGetImportedKeysOrBuilderpublic com.google.protobuf.ByteString getDbSchemaBytes()
Specifies the schema to search for the primary 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;getDbSchemaBytes in interface FlightSql.CommandGetImportedKeysOrBuilderpublic FlightSql.CommandGetImportedKeys.Builder setDbSchema(String value)
Specifies the schema to search for the primary 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;value - The dbSchema to set.public FlightSql.CommandGetImportedKeys.Builder clearDbSchema()
Specifies the schema to search for the primary 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;public FlightSql.CommandGetImportedKeys.Builder setDbSchemaBytes(com.google.protobuf.ByteString value)
Specifies the schema to search for the primary 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;value - The bytes for dbSchema to set.public String getTable()
Specifies the primary key table to get the foreign keys for.
string table = 3;getTable in interface FlightSql.CommandGetImportedKeysOrBuilderpublic com.google.protobuf.ByteString getTableBytes()
Specifies the primary key table to get the foreign keys for.
string table = 3;getTableBytes in interface FlightSql.CommandGetImportedKeysOrBuilderpublic FlightSql.CommandGetImportedKeys.Builder setTable(String value)
Specifies the primary key table to get the foreign keys for.
string table = 3;value - The table to set.public FlightSql.CommandGetImportedKeys.Builder clearTable()
Specifies the primary key table to get the foreign keys for.
string table = 3;public FlightSql.CommandGetImportedKeys.Builder setTableBytes(com.google.protobuf.ByteString value)
Specifies the primary key table to get the foreign keys for.
string table = 3;value - The bytes for table to set.public final FlightSql.CommandGetImportedKeys.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>public final FlightSql.CommandGetImportedKeys.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>Copyright © 2024 The Apache Software Foundation. All rights reserved.