Package org.apache.arrow.flight.sql.impl
Class FlightSql.CommandGetCrossReference.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetCrossReference.Builder>
org.apache.arrow.flight.sql.impl.FlightSql.CommandGetCrossReference.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,FlightSql.CommandGetCrossReferenceOrBuilder
- Enclosing class:
- FlightSql.CommandGetCrossReference
public static final class FlightSql.CommandGetCrossReference.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetCrossReference.Builder>
implements FlightSql.CommandGetCrossReferenceOrBuilder
Represents a request to retrieve a description of the foreign key columns in the given foreign key table that reference the primary key or the columns representing a unique constraint of the parent table (could be the same or a different 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.CommandGetCrossReference
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) The catalog name where the foreign table is.The schema name where the foreign table is.The foreign table name.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The catalog name where the parent table is.The Schema name where the parent table is.The parent table name.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The catalog name where the foreign table is.com.google.protobuf.ByteString
The catalog name where the foreign table is.The schema name where the foreign table is.com.google.protobuf.ByteString
The schema name where the foreign table is.The foreign table name.com.google.protobuf.ByteString
The foreign table name.The catalog name where the parent table is.com.google.protobuf.ByteString
The catalog name where the parent table is.The Schema name where the parent table is.com.google.protobuf.ByteString
The Schema name where the parent table is.The parent table name.com.google.protobuf.ByteString
The parent table name.boolean
The catalog name where the foreign table is.boolean
The schema name where the foreign table is.boolean
The catalog name where the parent table is.boolean
The Schema name where the parent table is.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) setFkCatalog
(String value) The catalog name where the foreign table is.setFkCatalogBytes
(com.google.protobuf.ByteString value) The catalog name where the foreign table is.setFkDbSchema
(String value) The schema name where the foreign table is.setFkDbSchemaBytes
(com.google.protobuf.ByteString value) The schema name where the foreign table is.setFkTable
(String value) The foreign table name.setFkTableBytes
(com.google.protobuf.ByteString value) The foreign table name.setPkCatalog
(String value) The catalog name where the parent table is.setPkCatalogBytes
(com.google.protobuf.ByteString value) The catalog name where the parent table is.setPkDbSchema
(String value) The Schema name where the parent table is.setPkDbSchemaBytes
(com.google.protobuf.ByteString value) The Schema name where the parent table is.setPkTable
(String value) The parent table name.setPkTableBytes
(com.google.protobuf.ByteString value) The parent table name.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.CommandGetCrossReference.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.CommandGetCrossReference.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.CommandGetCrossReference.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.CommandGetCrossReference.Builder>
-
setField
public FlightSql.CommandGetCrossReference.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.CommandGetCrossReference.Builder>
-
clearField
public FlightSql.CommandGetCrossReference.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.CommandGetCrossReference.Builder>
-
clearOneof
public FlightSql.CommandGetCrossReference.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.CommandGetCrossReference.Builder>
-
setRepeatedField
public FlightSql.CommandGetCrossReference.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.CommandGetCrossReference.Builder>
-
addRepeatedField
public FlightSql.CommandGetCrossReference.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.CommandGetCrossReference.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FlightSql.CommandGetCrossReference.Builder>
-
mergeFrom
public FlightSql.CommandGetCrossReference.Builder mergeFrom(FlightSql.CommandGetCrossReference other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetCrossReference.Builder>
-
mergeFrom
public FlightSql.CommandGetCrossReference.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.CommandGetCrossReference.Builder>
- Throws:
IOException
-
hasPkCatalog
public boolean hasPkCatalog()The catalog name where the parent table is. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
optional string pk_catalog = 1;
- Specified by:
hasPkCatalog
in interfaceFlightSql.CommandGetCrossReferenceOrBuilder
- Returns:
- Whether the pkCatalog field is set.
-
getPkCatalog
The catalog name where the parent table is. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
optional string pk_catalog = 1;
- Specified by:
getPkCatalog
in interfaceFlightSql.CommandGetCrossReferenceOrBuilder
- Returns:
- The pkCatalog.
-
getPkCatalogBytes
public com.google.protobuf.ByteString getPkCatalogBytes()The catalog name where the parent table is. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
optional string pk_catalog = 1;
- Specified by:
getPkCatalogBytes
in interfaceFlightSql.CommandGetCrossReferenceOrBuilder
- Returns:
- The bytes for pkCatalog.
-
setPkCatalog
The catalog name where the parent table is. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
optional string pk_catalog = 1;
- Parameters:
value
- The pkCatalog to set.- Returns:
- This builder for chaining.
-
clearPkCatalog
The catalog name where the parent table is. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
optional string pk_catalog = 1;
- Returns:
- This builder for chaining.
-
setPkCatalogBytes
public FlightSql.CommandGetCrossReference.Builder setPkCatalogBytes(com.google.protobuf.ByteString value) The catalog name where the parent table is. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
optional string pk_catalog = 1;
- Parameters:
value
- The bytes for pkCatalog to set.- Returns:
- This builder for chaining.
-
hasPkDbSchema
public boolean hasPkDbSchema()The Schema name where the parent table is. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
optional string pk_db_schema = 2;
- Specified by:
hasPkDbSchema
in interfaceFlightSql.CommandGetCrossReferenceOrBuilder
- Returns:
- Whether the pkDbSchema field is set.
-
getPkDbSchema
The Schema name where the parent table is. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
optional string pk_db_schema = 2;
- Specified by:
getPkDbSchema
in interfaceFlightSql.CommandGetCrossReferenceOrBuilder
- Returns:
- The pkDbSchema.
-
getPkDbSchemaBytes
public com.google.protobuf.ByteString getPkDbSchemaBytes()The Schema name where the parent table is. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
optional string pk_db_schema = 2;
- Specified by:
getPkDbSchemaBytes
in interfaceFlightSql.CommandGetCrossReferenceOrBuilder
- Returns:
- The bytes for pkDbSchema.
-
setPkDbSchema
The Schema name where the parent table is. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
optional string pk_db_schema = 2;
- Parameters:
value
- The pkDbSchema to set.- Returns:
- This builder for chaining.
-
clearPkDbSchema
The Schema name where the parent table is. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
optional string pk_db_schema = 2;
- Returns:
- This builder for chaining.
-
setPkDbSchemaBytes
public FlightSql.CommandGetCrossReference.Builder setPkDbSchemaBytes(com.google.protobuf.ByteString value) The Schema name where the parent table is. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
optional string pk_db_schema = 2;
- Parameters:
value
- The bytes for pkDbSchema to set.- Returns:
- This builder for chaining.
-
getPkTable
The parent table name. It cannot be null.
string pk_table = 3;
- Specified by:
getPkTable
in interfaceFlightSql.CommandGetCrossReferenceOrBuilder
- Returns:
- The pkTable.
-
getPkTableBytes
public com.google.protobuf.ByteString getPkTableBytes()The parent table name. It cannot be null.
string pk_table = 3;
- Specified by:
getPkTableBytes
in interfaceFlightSql.CommandGetCrossReferenceOrBuilder
- Returns:
- The bytes for pkTable.
-
setPkTable
The parent table name. It cannot be null.
string pk_table = 3;
- Parameters:
value
- The pkTable to set.- Returns:
- This builder for chaining.
-
clearPkTable
The parent table name. It cannot be null.
string pk_table = 3;
- Returns:
- This builder for chaining.
-
setPkTableBytes
public FlightSql.CommandGetCrossReference.Builder setPkTableBytes(com.google.protobuf.ByteString value) The parent table name. It cannot be null.
string pk_table = 3;
- Parameters:
value
- The bytes for pkTable to set.- Returns:
- This builder for chaining.
-
hasFkCatalog
public boolean hasFkCatalog()The catalog name where the foreign table is. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
optional string fk_catalog = 4;
- Specified by:
hasFkCatalog
in interfaceFlightSql.CommandGetCrossReferenceOrBuilder
- Returns:
- Whether the fkCatalog field is set.
-
getFkCatalog
The catalog name where the foreign table is. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
optional string fk_catalog = 4;
- Specified by:
getFkCatalog
in interfaceFlightSql.CommandGetCrossReferenceOrBuilder
- Returns:
- The fkCatalog.
-
getFkCatalogBytes
public com.google.protobuf.ByteString getFkCatalogBytes()The catalog name where the foreign table is. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
optional string fk_catalog = 4;
- Specified by:
getFkCatalogBytes
in interfaceFlightSql.CommandGetCrossReferenceOrBuilder
- Returns:
- The bytes for fkCatalog.
-
setFkCatalog
The catalog name where the foreign table is. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
optional string fk_catalog = 4;
- Parameters:
value
- The fkCatalog to set.- Returns:
- This builder for chaining.
-
clearFkCatalog
The catalog name where the foreign table is. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
optional string fk_catalog = 4;
- Returns:
- This builder for chaining.
-
setFkCatalogBytes
public FlightSql.CommandGetCrossReference.Builder setFkCatalogBytes(com.google.protobuf.ByteString value) The catalog name where the foreign table is. An empty string retrieves those without a catalog. If omitted the catalog name should not be used to narrow the search.
optional string fk_catalog = 4;
- Parameters:
value
- The bytes for fkCatalog to set.- Returns:
- This builder for chaining.
-
hasFkDbSchema
public boolean hasFkDbSchema()The schema name where the foreign table is. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
optional string fk_db_schema = 5;
- Specified by:
hasFkDbSchema
in interfaceFlightSql.CommandGetCrossReferenceOrBuilder
- Returns:
- Whether the fkDbSchema field is set.
-
getFkDbSchema
The schema name where the foreign table is. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
optional string fk_db_schema = 5;
- Specified by:
getFkDbSchema
in interfaceFlightSql.CommandGetCrossReferenceOrBuilder
- Returns:
- The fkDbSchema.
-
getFkDbSchemaBytes
public com.google.protobuf.ByteString getFkDbSchemaBytes()The schema name where the foreign table is. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
optional string fk_db_schema = 5;
- Specified by:
getFkDbSchemaBytes
in interfaceFlightSql.CommandGetCrossReferenceOrBuilder
- Returns:
- The bytes for fkDbSchema.
-
setFkDbSchema
The schema name where the foreign table is. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
optional string fk_db_schema = 5;
- Parameters:
value
- The fkDbSchema to set.- Returns:
- This builder for chaining.
-
clearFkDbSchema
The schema name where the foreign table is. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
optional string fk_db_schema = 5;
- Returns:
- This builder for chaining.
-
setFkDbSchemaBytes
public FlightSql.CommandGetCrossReference.Builder setFkDbSchemaBytes(com.google.protobuf.ByteString value) The schema name where the foreign table is. An empty string retrieves those without a schema. If omitted the schema name should not be used to narrow the search.
optional string fk_db_schema = 5;
- Parameters:
value
- The bytes for fkDbSchema to set.- Returns:
- This builder for chaining.
-
getFkTable
The foreign table name. It cannot be null.
string fk_table = 6;
- Specified by:
getFkTable
in interfaceFlightSql.CommandGetCrossReferenceOrBuilder
- Returns:
- The fkTable.
-
getFkTableBytes
public com.google.protobuf.ByteString getFkTableBytes()The foreign table name. It cannot be null.
string fk_table = 6;
- Specified by:
getFkTableBytes
in interfaceFlightSql.CommandGetCrossReferenceOrBuilder
- Returns:
- The bytes for fkTable.
-
setFkTable
The foreign table name. It cannot be null.
string fk_table = 6;
- Parameters:
value
- The fkTable to set.- Returns:
- This builder for chaining.
-
clearFkTable
The foreign table name. It cannot be null.
string fk_table = 6;
- Returns:
- This builder for chaining.
-
setFkTableBytes
public FlightSql.CommandGetCrossReference.Builder setFkTableBytes(com.google.protobuf.ByteString value) The foreign table name. It cannot be null.
string fk_table = 6;
- Parameters:
value
- The bytes for fkTable to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final FlightSql.CommandGetCrossReference.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.CommandGetCrossReference.Builder>
-
mergeUnknownFields
public final FlightSql.CommandGetCrossReference.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.CommandGetCrossReference.Builder>
-