Package org.apache.flink.table.api
Class TableDescriptor
java.lang.Object
org.apache.flink.table.api.TableDescriptor
Describes a
CatalogTable representing a source or sink.
A TableDescriptor is a template for creating a CatalogTable instance. It
closely resembles the "CREATE TABLE" SQL DDL statement, containing schema, connector options, and
other characteristics. Since tables in Flink are typically backed by external systems, the
descriptor describes how a connector (and possibly its format) are configured.
This can be used to register a table in the Table API, see TableEnvironment.createTemporaryTable(String, TableDescriptor).
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TableDescriptor.BuilderforConnector(String connector) Creates a newTableDescriptor.Builderfor a table using the given connector.Optional<org.apache.flink.table.catalog.TableDistribution>Optional<org.apache.flink.table.api.Schema>inthashCode()Converts this immutable instance into a mutableTableDescriptor.Builder.org.apache.flink.table.catalog.CatalogTableConverts this descriptor into aCatalogTable.toString()
-
Constructor Details
-
TableDescriptor
-
-
Method Details
-
forConnector
Creates a newTableDescriptor.Builderfor a table using the given connector.- Parameters:
connector- The factory identifier for the connector.
-
getSchema
-
getOptions
-
getDistribution
-
getPartitionKeys
-
getComment
-
toCatalogTable
public org.apache.flink.table.catalog.CatalogTable toCatalogTable()Converts this descriptor into aCatalogTable. -
toBuilder
Converts this immutable instance into a mutableTableDescriptor.Builder. -
toString
-
equals
-
hashCode
public int hashCode()
-