@PublicEvolving public abstract class ConnectTableDescriptor extends org.apache.flink.table.descriptors.TableDescriptor<ConnectTableDescriptor>
TableEnvironment.connect(ConnectorDescriptor).
It can access TableEnvironment for fluently registering the table.
| Constructor and Description |
|---|
ConnectTableDescriptor(Registration registration,
org.apache.flink.table.descriptors.ConnectorDescriptor connectorDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,String> |
additionalProperties() |
void |
createTemporaryTable(String path)
Registers the table described by underlying properties in a given path.
|
ConnectTableDescriptor |
withPartitionKeys(List<String> partitionKeys)
Specifies the partition keys of this table.
|
ConnectTableDescriptor |
withSchema(org.apache.flink.table.descriptors.Schema schema)
Specifies the resulting table schema.
|
public ConnectTableDescriptor(Registration registration, org.apache.flink.table.descriptors.ConnectorDescriptor connectorDescriptor)
public ConnectTableDescriptor withSchema(org.apache.flink.table.descriptors.Schema schema)
public ConnectTableDescriptor withPartitionKeys(List<String> partitionKeys)
public void createTemporaryTable(String path)
There is no distinction between source and sink at the descriptor level anymore as this method does not perform actual class lookup. It only stores the underlying properties. The actual source/sink lookup is performed when the table is used.
Temporary objects can shadow permanent ones. If a permanent object in a given path exists, it will be inaccessible in the current session. To make the permanent object available again you can drop the corresponding temporary object.
NOTE: The schema must be explicitly defined.
path - path where to register the temporary tableprotected Map<String,String> additionalProperties()
additionalProperties in class org.apache.flink.table.descriptors.TableDescriptor<ConnectTableDescriptor>Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.