Module org.apache.arrow.flight.core
Package org.apache.arrow.flight.sql.impl
Class FlightSql.CommandGetTables
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
org.apache.arrow.flight.sql.impl.FlightSql.CommandGetTables
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,FlightSql.CommandGetTablesOrBuilder
- Enclosing class:
- FlightSql
public static final class FlightSql.CommandGetTables
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a request to retrieve the list of tables, and optionally their schemas, on a Flight SQL enabled backend.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanSpecifies 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 FlightSql.CommandGetTablesstatic final com.google.protobuf.Descriptors.DescriptorbooleanSpecifies if the Arrow schema should be returned for found tables.com.google.protobuf.Parser<FlightSql.CommandGetTables>intSpecifies 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.inthashCode()booleanSpecifies a filter pattern for tables to search for.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(FlightSql.CommandGetTables prototype) protected FlightSql.CommandGetTables.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static FlightSql.CommandGetTablesparseDelimitedFrom(InputStream input) static FlightSql.CommandGetTablesparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FlightSql.CommandGetTablesparseFrom(byte[] data) static FlightSql.CommandGetTablesparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FlightSql.CommandGetTablesparseFrom(com.google.protobuf.ByteString data) static FlightSql.CommandGetTablesparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FlightSql.CommandGetTablesparseFrom(com.google.protobuf.CodedInputStream input) static FlightSql.CommandGetTablesparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FlightSql.CommandGetTablesparseFrom(InputStream input) static FlightSql.CommandGetTablesparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FlightSql.CommandGetTablesparseFrom(ByteBuffer data) static FlightSql.CommandGetTablesparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<FlightSql.CommandGetTables>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CATALOG_FIELD_NUMBER
public static final int CATALOG_FIELD_NUMBER- See Also:
-
DB_SCHEMA_FILTER_PATTERN_FIELD_NUMBER
public static final int DB_SCHEMA_FILTER_PATTERN_FIELD_NUMBER- See Also:
-
TABLE_NAME_FILTER_PATTERN_FIELD_NUMBER
public static final int TABLE_NAME_FILTER_PATTERN_FIELD_NUMBER- See Also:
-
TABLE_TYPES_FIELD_NUMBER
public static final int TABLE_TYPES_FIELD_NUMBER- See Also:
-
INCLUDE_SCHEMA_FIELD_NUMBER
public static final int INCLUDE_SCHEMA_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static FlightSql.CommandGetTables parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FlightSql.CommandGetTables parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FlightSql.CommandGetTables parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FlightSql.CommandGetTables parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FlightSql.CommandGetTables parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FlightSql.CommandGetTables parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FlightSql.CommandGetTables parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static FlightSql.CommandGetTables parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static FlightSql.CommandGetTables parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static FlightSql.CommandGetTables parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FlightSql.CommandGetTables.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-