Class ResolvedCatalogTable
- All Implemented Interfaces:
CatalogBaseTable,CatalogTable,ResolvedCatalogBaseTable<CatalogTable>
CatalogTable that is backed by the original metadata coming from the Catalog but resolved by the framework.
Note: Compared to CatalogTable, instances of this class are serializable for
persistence if and only if the originating CatalogTable implements CatalogBaseTable.getOptions(). Catalog implementations are encouraged to use toProperties().
-
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.CatalogTable
CatalogTable.Builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Get a deep copy of the CatalogBaseTable instance.Returns a copy of thisCatalogTablewith given table optionsoptions.booleanGet comment of the table or view.Get a brief description of the table or view.Get a detailed description of the table or view.Returns the distribution of the table if theDISTRIBUTEDclause is defined.Returns a map of string-based options.Returns the original, unresolved metadata object from theCatalog.Get the partition keys of the table.Returns a fully resolved and validatedResolvedSchema.Return the snapshot specified for the table.Returns the schema of the table or view.inthashCode()booleanCheck if the table is partitioned or not.Convenience method forCatalogimplementations for serializing instances of this class into a map of string properties.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.flink.table.catalog.CatalogTable
getTableKindMethods inherited from interface org.apache.flink.table.catalog.ResolvedCatalogBaseTable
getSchema
-
Constructor Details
-
ResolvedCatalogTable
-
-
Method Details
-
getOrigin
Description copied from interface:ResolvedCatalogBaseTableReturns the original, unresolved metadata object from theCatalog.This method might be useful if catalog-specific object instances should be directly forwarded from the catalog to a factory.
- Specified by:
getOriginin interfaceResolvedCatalogBaseTable<CatalogTable>
-
getResolvedSchema
Description copied from interface:ResolvedCatalogBaseTableReturns a fully resolved and validatedResolvedSchema.Connectors can configure themselves by accessing
ResolvedSchema.getPrimaryKey()andResolvedSchema.toPhysicalRowDataType().- Specified by:
getResolvedSchemain interfaceResolvedCatalogBaseTable<CatalogTable>
-
toProperties
Convenience method forCatalogimplementations for serializing instances of this class into a map of string properties. Instances are serializable for persistence if and only if the originatingCatalogTableimplementsCatalogBaseTable.getOptions().CatalogTable.fromProperties(Map)provides the reverse operation for deserialization. Note that the serialization and deserialization of catalog tables are not symmetric. The framework will resolve functions and perform other validation tasks. A catalog implementation must not deal with this during a read operation. -
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
-
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.
-
copy
Description copied from interface:CatalogBaseTableGet a deep copy of the CatalogBaseTable instance.- Specified by:
copyin interfaceCatalogBaseTable- Returns:
- a copy of the CatalogBaseTable instance
-
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
-
isPartitioned
public boolean isPartitioned()Description copied from interface:CatalogTableCheck if the table is partitioned or not.- Specified by:
isPartitionedin interfaceCatalogTable- Returns:
- true if the table is partitioned; otherwise, false
-
getPartitionKeys
Description copied from interface:CatalogTableGet the partition keys of the table. This will be an empty set if the table is not partitioned.- Specified by:
getPartitionKeysin interfaceCatalogTable- Returns:
- partition keys of the table
-
getSnapshot
Description copied from interface:CatalogTableReturn the snapshot specified for the table. Return Optional.empty() if not specified.- Specified by:
getSnapshotin interfaceCatalogTable
-
getDistribution
Description copied from interface:CatalogTableReturns the distribution of the table if theDISTRIBUTEDclause is defined.- Specified by:
getDistributionin interfaceCatalogTable
-
copy
Description copied from interface:CatalogTableReturns a copy of thisCatalogTablewith given table optionsoptions.- Specified by:
copyin interfaceCatalogTable- Returns:
- a new copy of this table with replaced table options
-
equals
-
hashCode
public int hashCode() -
toString
-