Package org.apache.arrow.flight.sql.impl
Class FlightSql.CommandGetTables
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
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.GeneratedMessageV3
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. 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
Modifier and TypeClassDescriptionstatic final class
Represents 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.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,
BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Specifies the Catalog to search for the tables.com.google.protobuf.ByteString
Specifies the Catalog to search for the tables.Specifies a filter pattern for schemas to search for.com.google.protobuf.ByteString
Specifies a filter pattern for schemas to search for.static FlightSql.CommandGetTables
static final com.google.protobuf.Descriptors.Descriptor
boolean
Specifies if the Arrow schema should be returned for found tables.com.google.protobuf.Parser<FlightSql.CommandGetTables>
int
Specifies a filter pattern for tables to search for.com.google.protobuf.ByteString
Specifies a filter pattern for tables to search for.getTableTypes
(int index) Specifies a filter of table types which must match.com.google.protobuf.ByteString
getTableTypesBytes
(int index) Specifies a filter of table types which must match.int
Specifies a filter of table types which must match.com.google.protobuf.ProtocolStringList
Specifies a filter of table types which must match.boolean
Specifies the Catalog to search for the tables.boolean
Specifies a filter pattern for schemas to search for.int
hashCode()
boolean
Specifies a filter pattern for tables to search for.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
newBuilder
(FlightSql.CommandGetTables prototype) protected FlightSql.CommandGetTables.Builder
newBuilderForType
(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected Object
newInstance
(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static FlightSql.CommandGetTables
parseDelimitedFrom
(InputStream input) static FlightSql.CommandGetTables
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FlightSql.CommandGetTables
parseFrom
(byte[] data) static FlightSql.CommandGetTables
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FlightSql.CommandGetTables
parseFrom
(com.google.protobuf.ByteString data) static FlightSql.CommandGetTables
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FlightSql.CommandGetTables
parseFrom
(com.google.protobuf.CodedInputStream input) static FlightSql.CommandGetTables
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FlightSql.CommandGetTables
parseFrom
(InputStream input) static FlightSql.CommandGetTables
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FlightSql.CommandGetTables
parseFrom
(ByteBuffer data) static FlightSql.CommandGetTables
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<FlightSql.CommandGetTables>
parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
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, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods 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
-
newInstance
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
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:
hasCatalog
in 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:
getCatalog
in 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:
getCatalogBytes
in 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:
hasDbSchemaFilterPattern
in 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:
getDbSchemaFilterPattern
in 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:
getDbSchemaFilterPatternBytes
in 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:
hasTableNameFilterPattern
in 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:
getTableNameFilterPattern
in 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:
getTableNameFilterPatternBytes
in 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:
getTableTypesList
in 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:
getTableTypesCount
in 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:
getTableTypes
in 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:
getTableTypesBytes
in 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:
getIncludeSchema
in interfaceFlightSql.CommandGetTablesOrBuilder
- Returns:
- The includeSchema.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FlightSql.CommandGetTables.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-