Module org.apache.arrow.flight.core
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.GeneratedMessage.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.GeneratedMessage.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 TypeMethodDescriptionbuild()clear()* The catalog name where the foreign table is.* The schema name where the foreign table is.* The foreign table name.* The catalog name where the parent table is.* The Schema name where the parent table is.* The parent table name.static final com.google.protobuf.Descriptors.Descriptorcom.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.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.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.CommandGetCrossReference.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.CommandGetCrossReference.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.CommandGetCrossReference.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.CommandGetCrossReference.Builder>
-
mergeFrom
public FlightSql.CommandGetCrossReference.Builder mergeFrom(FlightSql.CommandGetCrossReference other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandGetCrossReference.Builder>
-
mergeFrom
public FlightSql.CommandGetCrossReference.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.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:
hasPkCatalogin 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:
getPkCatalogin 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:
getPkCatalogBytesin 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:
hasPkDbSchemain 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:
getPkDbSchemain 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:
getPkDbSchemaBytesin 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:
getPkTablein 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:
getPkTableBytesin 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:
hasFkCatalogin 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:
getFkCatalogin 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:
getFkCatalogBytesin 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:
hasFkDbSchemain 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:
getFkDbSchemain 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:
getFkDbSchemaBytesin 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:
getFkTablein 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:
getFkTableBytesin 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.
-