Module org.apache.arrow.flight.core
Package org.apache.arrow.flight.sql.impl
Class FlightSql.CommandGetTables.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandGetTables.Builder>
org.apache.arrow.flight.sql.impl.FlightSql.CommandGetTables.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,FlightSql.CommandGetTablesOrBuilder
- Enclosing class:
- FlightSql.CommandGetTables
public static final class FlightSql.CommandGetTables.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandGetTables.Builder>
implements FlightSql.CommandGetTablesOrBuilder
Represents a request to retrieve the list of tables, and optionally their schemas, 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: < catalog_name: utf8, db_schema_name: utf8, table_name: utf8 not null, table_type: utf8 not null, [optional] table_schema: bytes not null (schema of the table as described in Schema.fbs::Schema, it is serialized as an IPC message.) > Fields on table_schema may contain the following metadata: - ARROW:FLIGHT:SQL:CATALOG_NAME - Table's catalog name - ARROW:FLIGHT:SQL:DB_SCHEMA_NAME - Database schema name - ARROW:FLIGHT:SQL:TABLE_NAME - Table name - ARROW:FLIGHT:SQL:TYPE_NAME - The data source-specific name for the data type of the column. - ARROW:FLIGHT:SQL:PRECISION - Column precision/size - ARROW:FLIGHT:SQL:SCALE - Column scale/decimal digits if applicable - ARROW:FLIGHT:SQL:IS_AUTO_INCREMENT - "1" indicates if the column is auto incremented, "0" otherwise. - ARROW:FLIGHT:SQL:IS_CASE_SENSITIVE - "1" indicates if the column is case-sensitive, "0" otherwise. - ARROW:FLIGHT:SQL:IS_READ_ONLY - "1" indicates if the column is read only, "0" otherwise. - ARROW:FLIGHT:SQL:IS_SEARCHABLE - "1" indicates if the column is searchable via WHERE clause, "0" otherwise. - ARROW:FLIGHT:SQL:REMARKS - A comment describing the column. The returned data should be ordered by catalog_name, db_schema_name, table_name, then table_type, followed by table_schema if requested.Protobuf type
arrow.flight.protocol.sql.CommandGetTables-
Method Summary
Modifier and TypeMethodDescriptionaddAllTableTypes(Iterable<String> values) Specifies a filter of table types which must match.addTableTypes(String value) Specifies a filter of table types which must match.addTableTypesBytes(com.google.protobuf.ByteString value) Specifies a filter of table types which must match.build()clear()Specifies the Catalog to search for the tables.Specifies a filter pattern for schemas to search for.Specifies if the Arrow schema should be returned for found tables.Specifies a filter pattern for tables to search for.Specifies a filter of table types which must match.Specifies the Catalog to search for the tables.com.google.protobuf.ByteStringSpecifies the Catalog to search for the tables.Specifies a filter pattern for schemas to search for.com.google.protobuf.ByteStringSpecifies a filter pattern for schemas to search for.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanSpecifies if the Arrow schema should be returned for found tables.Specifies a filter pattern for tables to search for.com.google.protobuf.ByteStringSpecifies a filter pattern for tables to search for.getTableTypes(int index) Specifies a filter of table types which must match.com.google.protobuf.ByteStringgetTableTypesBytes(int index) Specifies a filter of table types which must match.intSpecifies a filter of table types which must match.com.google.protobuf.ProtocolStringListSpecifies a filter of table types which must match.booleanSpecifies the Catalog to search for the tables.booleanSpecifies a filter pattern for schemas to search for.booleanSpecifies a filter pattern for tables to search for.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 tables.setCatalogBytes(com.google.protobuf.ByteString value) Specifies the Catalog to search for the tables.setDbSchemaFilterPattern(String value) Specifies a filter pattern for schemas to search for.setDbSchemaFilterPatternBytes(com.google.protobuf.ByteString value) Specifies a filter pattern for schemas to search for.setIncludeSchema(boolean value) Specifies if the Arrow schema should be returned for found tables.setTableNameFilterPattern(String value) Specifies a filter pattern for tables to search for.setTableNameFilterPatternBytes(com.google.protobuf.ByteString value) Specifies a filter pattern for tables to search for.setTableTypes(int index, String value) Specifies a filter of table types which must match.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.CommandGetTables.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.CommandGetTables.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.CommandGetTables.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.CommandGetTables.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FlightSql.CommandGetTables.Builder>
-
mergeFrom
public FlightSql.CommandGetTables.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.CommandGetTables.Builder>- Throws:
IOException
-
hasCatalog
public boolean hasCatalog()Specifies the Catalog to search for the tables. 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.CommandGetTablesOrBuilder- Returns:
- Whether the catalog field is set.
-
getCatalog
Specifies the Catalog to search for the tables. 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.CommandGetTablesOrBuilder- Returns:
- The catalog.
-
getCatalogBytes
public com.google.protobuf.ByteString getCatalogBytes()Specifies the Catalog to search for the tables. 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.CommandGetTablesOrBuilder- Returns:
- The bytes for catalog.
-
setCatalog
Specifies the Catalog to search for the tables. 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 tables. 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
Specifies the Catalog to search for the tables. 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.
-
hasDbSchemaFilterPattern
public boolean hasDbSchemaFilterPattern()Specifies a filter pattern for schemas to search for. When no db_schema_filter_pattern is provided, all schemas matching other filters are searched. In the pattern string, two special characters can be used to denote matching rules: - "%" means to match any substring with 0 or more characters. - "_" means to match any one character.
optional string db_schema_filter_pattern = 2;- Specified by:
hasDbSchemaFilterPatternin interfaceFlightSql.CommandGetTablesOrBuilder- Returns:
- Whether the dbSchemaFilterPattern field is set.
-
getDbSchemaFilterPattern
Specifies a filter pattern for schemas to search for. When no db_schema_filter_pattern is provided, all schemas matching other filters are searched. In the pattern string, two special characters can be used to denote matching rules: - "%" means to match any substring with 0 or more characters. - "_" means to match any one character.
optional string db_schema_filter_pattern = 2;- Specified by:
getDbSchemaFilterPatternin interfaceFlightSql.CommandGetTablesOrBuilder- Returns:
- The dbSchemaFilterPattern.
-
getDbSchemaFilterPatternBytes
public com.google.protobuf.ByteString getDbSchemaFilterPatternBytes()Specifies a filter pattern for schemas to search for. When no db_schema_filter_pattern is provided, all schemas matching other filters are searched. In the pattern string, two special characters can be used to denote matching rules: - "%" means to match any substring with 0 or more characters. - "_" means to match any one character.
optional string db_schema_filter_pattern = 2;- Specified by:
getDbSchemaFilterPatternBytesin interfaceFlightSql.CommandGetTablesOrBuilder- Returns:
- The bytes for dbSchemaFilterPattern.
-
setDbSchemaFilterPattern
Specifies a filter pattern for schemas to search for. When no db_schema_filter_pattern is provided, all schemas matching other filters are searched. In the pattern string, two special characters can be used to denote matching rules: - "%" means to match any substring with 0 or more characters. - "_" means to match any one character.
optional string db_schema_filter_pattern = 2;- Parameters:
value- The dbSchemaFilterPattern to set.- Returns:
- This builder for chaining.
-
clearDbSchemaFilterPattern
Specifies a filter pattern for schemas to search for. When no db_schema_filter_pattern is provided, all schemas matching other filters are searched. In the pattern string, two special characters can be used to denote matching rules: - "%" means to match any substring with 0 or more characters. - "_" means to match any one character.
optional string db_schema_filter_pattern = 2;- Returns:
- This builder for chaining.
-
setDbSchemaFilterPatternBytes
public FlightSql.CommandGetTables.Builder setDbSchemaFilterPatternBytes(com.google.protobuf.ByteString value) Specifies a filter pattern for schemas to search for. When no db_schema_filter_pattern is provided, all schemas matching other filters are searched. In the pattern string, two special characters can be used to denote matching rules: - "%" means to match any substring with 0 or more characters. - "_" means to match any one character.
optional string db_schema_filter_pattern = 2;- Parameters:
value- The bytes for dbSchemaFilterPattern to set.- Returns:
- This builder for chaining.
-
hasTableNameFilterPattern
public boolean hasTableNameFilterPattern()Specifies a filter pattern for tables to search for. When no table_name_filter_pattern is provided, all tables matching other filters are searched. In the pattern string, two special characters can be used to denote matching rules: - "%" means to match any substring with 0 or more characters. - "_" means to match any one character.
optional string table_name_filter_pattern = 3;- Specified by:
hasTableNameFilterPatternin interfaceFlightSql.CommandGetTablesOrBuilder- Returns:
- Whether the tableNameFilterPattern field is set.
-
getTableNameFilterPattern
Specifies a filter pattern for tables to search for. When no table_name_filter_pattern is provided, all tables matching other filters are searched. In the pattern string, two special characters can be used to denote matching rules: - "%" means to match any substring with 0 or more characters. - "_" means to match any one character.
optional string table_name_filter_pattern = 3;- Specified by:
getTableNameFilterPatternin interfaceFlightSql.CommandGetTablesOrBuilder- Returns:
- The tableNameFilterPattern.
-
getTableNameFilterPatternBytes
public com.google.protobuf.ByteString getTableNameFilterPatternBytes()Specifies a filter pattern for tables to search for. When no table_name_filter_pattern is provided, all tables matching other filters are searched. In the pattern string, two special characters can be used to denote matching rules: - "%" means to match any substring with 0 or more characters. - "_" means to match any one character.
optional string table_name_filter_pattern = 3;- Specified by:
getTableNameFilterPatternBytesin interfaceFlightSql.CommandGetTablesOrBuilder- Returns:
- The bytes for tableNameFilterPattern.
-
setTableNameFilterPattern
Specifies a filter pattern for tables to search for. When no table_name_filter_pattern is provided, all tables matching other filters are searched. In the pattern string, two special characters can be used to denote matching rules: - "%" means to match any substring with 0 or more characters. - "_" means to match any one character.
optional string table_name_filter_pattern = 3;- Parameters:
value- The tableNameFilterPattern to set.- Returns:
- This builder for chaining.
-
clearTableNameFilterPattern
Specifies a filter pattern for tables to search for. When no table_name_filter_pattern is provided, all tables matching other filters are searched. In the pattern string, two special characters can be used to denote matching rules: - "%" means to match any substring with 0 or more characters. - "_" means to match any one character.
optional string table_name_filter_pattern = 3;- Returns:
- This builder for chaining.
-
setTableNameFilterPatternBytes
public FlightSql.CommandGetTables.Builder setTableNameFilterPatternBytes(com.google.protobuf.ByteString value) Specifies a filter pattern for tables to search for. When no table_name_filter_pattern is provided, all tables matching other filters are searched. In the pattern string, two special characters can be used to denote matching rules: - "%" means to match any substring with 0 or more characters. - "_" means to match any one character.
optional string table_name_filter_pattern = 3;- Parameters:
value- The bytes for tableNameFilterPattern to set.- Returns:
- This builder for chaining.
-
getTableTypesList
public com.google.protobuf.ProtocolStringList getTableTypesList()Specifies a filter of table types which must match. The table types depend on vendor/implementation. It is usually used to separate tables from views or system tables. TABLE, VIEW, and SYSTEM TABLE are commonly supported.
repeated string table_types = 4;- Specified by:
getTableTypesListin interfaceFlightSql.CommandGetTablesOrBuilder- Returns:
- A list containing the tableTypes.
-
getTableTypesCount
public int getTableTypesCount()Specifies a filter of table types which must match. The table types depend on vendor/implementation. It is usually used to separate tables from views or system tables. TABLE, VIEW, and SYSTEM TABLE are commonly supported.
repeated string table_types = 4;- Specified by:
getTableTypesCountin interfaceFlightSql.CommandGetTablesOrBuilder- Returns:
- The count of tableTypes.
-
getTableTypes
Specifies a filter of table types which must match. The table types depend on vendor/implementation. It is usually used to separate tables from views or system tables. TABLE, VIEW, and SYSTEM TABLE are commonly supported.
repeated string table_types = 4;- Specified by:
getTableTypesin interfaceFlightSql.CommandGetTablesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tableTypes at the given index.
-
getTableTypesBytes
public com.google.protobuf.ByteString getTableTypesBytes(int index) Specifies a filter of table types which must match. The table types depend on vendor/implementation. It is usually used to separate tables from views or system tables. TABLE, VIEW, and SYSTEM TABLE are commonly supported.
repeated string table_types = 4;- Specified by:
getTableTypesBytesin interfaceFlightSql.CommandGetTablesOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tableTypes at the given index.
-
setTableTypes
Specifies a filter of table types which must match. The table types depend on vendor/implementation. It is usually used to separate tables from views or system tables. TABLE, VIEW, and SYSTEM TABLE are commonly supported.
repeated string table_types = 4;- Parameters:
index- The index to set the value at.value- The tableTypes to set.- Returns:
- This builder for chaining.
-
addTableTypes
Specifies a filter of table types which must match. The table types depend on vendor/implementation. It is usually used to separate tables from views or system tables. TABLE, VIEW, and SYSTEM TABLE are commonly supported.
repeated string table_types = 4;- Parameters:
value- The tableTypes to add.- Returns:
- This builder for chaining.
-
addAllTableTypes
Specifies a filter of table types which must match. The table types depend on vendor/implementation. It is usually used to separate tables from views or system tables. TABLE, VIEW, and SYSTEM TABLE are commonly supported.
repeated string table_types = 4;- Parameters:
values- The tableTypes to add.- Returns:
- This builder for chaining.
-
clearTableTypes
Specifies a filter of table types which must match. The table types depend on vendor/implementation. It is usually used to separate tables from views or system tables. TABLE, VIEW, and SYSTEM TABLE are commonly supported.
repeated string table_types = 4;- Returns:
- This builder for chaining.
-
addTableTypesBytes
Specifies a filter of table types which must match. The table types depend on vendor/implementation. It is usually used to separate tables from views or system tables. TABLE, VIEW, and SYSTEM TABLE are commonly supported.
repeated string table_types = 4;- Parameters:
value- The bytes of the tableTypes to add.- Returns:
- This builder for chaining.
-
getIncludeSchema
public boolean getIncludeSchema()Specifies if the Arrow schema should be returned for found tables.
bool include_schema = 5;- Specified by:
getIncludeSchemain interfaceFlightSql.CommandGetTablesOrBuilder- Returns:
- The includeSchema.
-
setIncludeSchema
Specifies if the Arrow schema should be returned for found tables.
bool include_schema = 5;- Parameters:
value- The includeSchema to set.- Returns:
- This builder for chaining.
-
clearIncludeSchema
Specifies if the Arrow schema should be returned for found tables.
bool include_schema = 5;- Returns:
- This builder for chaining.
-