Class DefaultCatalogMaterializedTable
- All Implemented Interfaces:
CatalogBaseTable,CatalogMaterializedTable
CatalogMaterializedTable.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.table.catalog.CatalogBaseTable
CatalogBaseTable.TableKindNested classes/interfaces inherited from interface org.apache.flink.table.catalog.CatalogMaterializedTable
CatalogMaterializedTable.Builder, CatalogMaterializedTable.LogicalRefreshMode, CatalogMaterializedTable.RefreshMode, CatalogMaterializedTable.RefreshStatus -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultCatalogMaterializedTable(Schema schema, String comment, List<String> partitionKeys, Map<String, String> options, Long snapshot, String definitionQuery, IntervalFreshness freshness, CatalogMaterializedTable.LogicalRefreshMode logicalRefreshMode, CatalogMaterializedTable.RefreshMode refreshMode, CatalogMaterializedTable.RefreshStatus refreshStatus, String refreshHandlerDescription, byte[] serializedRefreshHandler) -
Method Summary
Modifier and TypeMethodDescriptioncopy()Get a deep copy of the CatalogBaseTable instance.Returns a copy of thisCatalogMaterializedTablewith given table optionsoptions.copy(CatalogMaterializedTable.RefreshStatus refreshStatus, String refreshHandlerDescription, byte[] serializedRefreshHandler) Returns a copy of thisCatalogDynamicTablewith given refresh info.booleanGet comment of the table or view.Get the definition freshness of materialized table which is used to determine the physical refresh mode.The definition query text of materialized table, text is expanded in contrast to the original SQL.Get a brief description of the table or view.Get a detailed description of the table or view.Get the logical refresh mode of materialized table.Returns a map of string-based options.Get the partition keys of the table.Return summary description of refresh handler.Get the physical refresh mode of materialized table.Get the refresh status of materialized table.byte[]Return the serialized refresh handler of materialized table.Return the snapshot specified for the table.Returns the schema of the table or view.inthashCode()booleanCheck if the table is partitioned or not.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.flink.table.catalog.CatalogBaseTable
getSchemaMethods inherited from interface org.apache.flink.table.catalog.CatalogMaterializedTable
getFreshness, getTableKind
-
Constructor Details
-
DefaultCatalogMaterializedTable
protected DefaultCatalogMaterializedTable(Schema schema, @Nullable String comment, List<String> partitionKeys, Map<String, String> options, @Nullable Long snapshot, String definitionQuery, IntervalFreshness freshness, CatalogMaterializedTable.LogicalRefreshMode logicalRefreshMode, CatalogMaterializedTable.RefreshMode refreshMode, CatalogMaterializedTable.RefreshStatus refreshStatus, @Nullable String refreshHandlerDescription, @Nullable byte[] serializedRefreshHandler)
-
-
Method Details
-
getUnresolvedSchema
Description copied from interface:CatalogBaseTableReturns the schema of the table or view.The schema can reference objects from other catalogs and will be resolved and validated by the framework when accessing the table or view.
- Specified by:
getUnresolvedSchemain interfaceCatalogBaseTable- See Also:
-
getComment
Description copied from interface:CatalogBaseTableGet comment of the table or view.- Specified by:
getCommentin interfaceCatalogBaseTable- Returns:
- comment of the table/view.
-
isPartitioned
public boolean isPartitioned()Description copied from interface:CatalogMaterializedTableCheck if the table is partitioned or not.- Specified by:
isPartitionedin interfaceCatalogMaterializedTable- Returns:
- true if the table is partitioned; otherwise, false
-
getPartitionKeys
Description copied from interface:CatalogMaterializedTableGet the partition keys of the table. This will be an empty set if the table is not partitioned.- Specified by:
getPartitionKeysin interfaceCatalogMaterializedTable- Returns:
- partition keys of the table
-
getOptions
Description copied from interface:CatalogBaseTableReturns a map of string-based options.In case of
CatalogTable, these options may determine the kind of connector and its configuration for accessing the data in the external system. SeeDynamicTableFactoryfor more information. If aCatalogTableshould not be serializable, an implementation can simply throw a runtime exception in this method.- Specified by:
getOptionsin interfaceCatalogBaseTable
-
copy
Description copied from interface:CatalogBaseTableGet a deep copy of the CatalogBaseTable instance.- Specified by:
copyin interfaceCatalogBaseTable- Returns:
- a copy of the CatalogBaseTable instance
-
copy
Description copied from interface:CatalogMaterializedTableReturns a copy of thisCatalogMaterializedTablewith given table optionsoptions.- Specified by:
copyin interfaceCatalogMaterializedTable- Returns:
- a new copy of this table with replaced table options
-
copy
public CatalogMaterializedTable copy(CatalogMaterializedTable.RefreshStatus refreshStatus, String refreshHandlerDescription, byte[] serializedRefreshHandler) Description copied from interface:CatalogMaterializedTableReturns a copy of thisCatalogDynamicTablewith given refresh info.- Specified by:
copyin interfaceCatalogMaterializedTable- Returns:
- a new copy of this table with replaced refresh info
-
getDescription
Description copied from interface:CatalogBaseTableGet a brief description of the table or view.- Specified by:
getDescriptionin interfaceCatalogBaseTable- Returns:
- an optional short description of the table/view
-
getDetailedDescription
Description copied from interface:CatalogBaseTableGet a detailed description of the table or view.- Specified by:
getDetailedDescriptionin interfaceCatalogBaseTable- Returns:
- an optional long description of the table/view
-
getSnapshot
Description copied from interface:CatalogMaterializedTableReturn the snapshot specified for the table. Return Optional.empty() if not specified.- Specified by:
getSnapshotin interfaceCatalogMaterializedTable
-
getDefinitionQuery
Description copied from interface:CatalogMaterializedTableThe definition query text of materialized table, text is expanded in contrast to the original SQL. This is needed because the context such as current DB is lost after the session, in which view is defined, is gone. Expanded query text takes care of this, as an example.For example, for a materialized table that is defined in the context of "default" database with a query
select * from test1, the expanded query text might becomeselect `test1`.`name`, `test1`.`value` from `default`.`test1`, where table test1 resides in database "default" and has two columns ("name" and "value").- Specified by:
getDefinitionQueryin interfaceCatalogMaterializedTable- Returns:
- the materialized table definition in expanded text.
-
getDefinitionFreshness
Description copied from interface:CatalogMaterializedTableGet the definition freshness of materialized table which is used to determine the physical refresh mode.- Specified by:
getDefinitionFreshnessin interfaceCatalogMaterializedTable
-
getLogicalRefreshMode
Description copied from interface:CatalogMaterializedTableGet the logical refresh mode of materialized table.- Specified by:
getLogicalRefreshModein interfaceCatalogMaterializedTable
-
getRefreshMode
Description copied from interface:CatalogMaterializedTableGet the physical refresh mode of materialized table.- Specified by:
getRefreshModein interfaceCatalogMaterializedTable
-
getRefreshStatus
Description copied from interface:CatalogMaterializedTableGet the refresh status of materialized table.- Specified by:
getRefreshStatusin interfaceCatalogMaterializedTable
-
getRefreshHandlerDescription
Description copied from interface:CatalogMaterializedTableReturn summary description of refresh handler.- Specified by:
getRefreshHandlerDescriptionin interfaceCatalogMaterializedTable
-
getSerializedRefreshHandler
@Nullable public byte[] getSerializedRefreshHandler()Description copied from interface:CatalogMaterializedTableReturn the serialized refresh handler of materialized table. This will not be used for describe table.- Specified by:
getSerializedRefreshHandlerin interfaceCatalogMaterializedTable
-
equals
-
hashCode
public int hashCode() -
toString
-