Package org.apache.arrow.flight.sql.impl
Class FlightSql.CommandGetImportedKeys.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>
org.apache.arrow.flight.sql.impl.FlightSql.CommandGetImportedKeys.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,FlightSql.CommandGetImportedKeysOrBuilder
- Enclosing class:
- FlightSql.CommandGetImportedKeys
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 DEFAULTProtobuf type
arrow.flight.protocol.sql.CommandGetImportedKeys
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Specifies the catalog to search for the primary key table.Specifies the schema to search for the primary key table.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Specifies the primary key table to get the foreign keys for.clone()
Specifies the catalog to search for the primary key table.com.google.protobuf.ByteString
Specifies the catalog to search for the primary key table.Specifies the schema to search for the primary key table.com.google.protobuf.ByteString
Specifies the schema to search for the primary key table.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getTable()
Specifies the primary key table to get the foreign keys for.com.google.protobuf.ByteString
Specifies the primary key table to get the foreign keys for.boolean
Specifies the catalog to search for the primary key table.boolean
Specifies the schema to search for the primary key table.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setCatalog
(String value) Specifies the catalog to search for the primary key table.setCatalogBytes
(com.google.protobuf.ByteString value) Specifies the catalog to search for the primary key table.setDbSchema
(String value) Specifies the schema to search for the primary key table.setDbSchemaBytes
(com.google.protobuf.ByteString value) Specifies the schema to search for the primary key table.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Specifies the primary key table to get the foreign keys for.setTableBytes
(com.google.protobuf.ByteString value) Specifies the primary key table to get the foreign keys for.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>
-
setField
public FlightSql.CommandGetImportedKeys.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>
-
clearField
public FlightSql.CommandGetImportedKeys.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>
-
clearOneof
public FlightSql.CommandGetImportedKeys.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>
-
setRepeatedField
public FlightSql.CommandGetImportedKeys.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>
-
addRepeatedField
public FlightSql.CommandGetImportedKeys.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FlightSql.CommandGetImportedKeys.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>
-
mergeFrom
public FlightSql.CommandGetImportedKeys.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FlightSql.CommandGetImportedKeys.Builder>
- Throws:
IOException
-
hasCatalog
public 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;
- Specified by:
hasCatalog
in interfaceFlightSql.CommandGetImportedKeysOrBuilder
- Returns:
- Whether the catalog field is set.
-
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;
- Specified by:
getCatalog
in interfaceFlightSql.CommandGetImportedKeysOrBuilder
- Returns:
- The catalog.
-
getCatalogBytes
public 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;
- Specified by:
getCatalogBytes
in interfaceFlightSql.CommandGetImportedKeysOrBuilder
- Returns:
- The bytes for catalog.
-
setCatalog
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;
- Parameters:
value
- The catalog to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
setCatalogBytes
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;
- Parameters:
value
- The bytes for catalog to set.- Returns:
- This builder for chaining.
-
hasDbSchema
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;
- Specified by:
hasDbSchema
in interfaceFlightSql.CommandGetImportedKeysOrBuilder
- Returns:
- Whether the dbSchema field is set.
-
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;
- Specified by:
getDbSchema
in interfaceFlightSql.CommandGetImportedKeysOrBuilder
- Returns:
- The dbSchema.
-
getDbSchemaBytes
public 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;
- Specified by:
getDbSchemaBytes
in interfaceFlightSql.CommandGetImportedKeysOrBuilder
- Returns:
- The bytes for dbSchema.
-
setDbSchema
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;
- Parameters:
value
- The dbSchema to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
setDbSchemaBytes
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;
- Parameters:
value
- The bytes for dbSchema to set.- Returns:
- This builder for chaining.
-
getTable
Specifies the primary key table to get the foreign keys for.
string table = 3;
- Specified by:
getTable
in interfaceFlightSql.CommandGetImportedKeysOrBuilder
- Returns:
- The table.
-
getTableBytes
public com.google.protobuf.ByteString getTableBytes()Specifies the primary key table to get the foreign keys for.
string table = 3;
- Specified by:
getTableBytes
in interfaceFlightSql.CommandGetImportedKeysOrBuilder
- Returns:
- The bytes for table.
-
setTable
Specifies the primary 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 primary key table to get the foreign keys for.
string table = 3;
- Returns:
- This builder for chaining.
-
setTableBytes
Specifies the primary key table to get the foreign keys for.
string table = 3;
- Parameters:
value
- The bytes for table to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final FlightSql.CommandGetImportedKeys.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>
-
mergeUnknownFields
public final FlightSql.CommandGetImportedKeys.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetImportedKeys.Builder>
-