Package org.apache.flink.table.catalog
Class CatalogPropertiesUtil
java.lang.Object
org.apache.flink.table.catalog.CatalogPropertiesUtil
Utilities for de/serializing
Catalog objects into a map of string properties.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CatalogMaterializedTabledeserializeCatalogMaterializedTable(Map<String, String> properties) Deserializes the given map of string properties into an unresolvedCatalogMaterializedTable.static CatalogModeldeserializeCatalogModel(Map<String, String> properties) static CatalogTabledeserializeCatalogTable(Map<String, String> properties) Deserializes the given map of string properties into an unresolvedCatalogTable.static CatalogTabledeserializeCatalogTable(Map<String, String> properties, String fallbackKey) Deserializes the given map of string properties into an unresolvedCatalogTable.serializeCatalogMaterializedTable(ResolvedCatalogMaterializedTable resolvedMaterializedTable) Serializes the givenResolvedCatalogMaterializedTableinto a map of string properties.serializeCatalogTable(ResolvedCatalogTable resolvedTable) Serializes the givenResolvedCatalogTableinto a map of string properties.serializeCatalogView(ResolvedCatalogView resolvedView) Serializes the givenResolvedCatalogViewinto a map of string properties.serializeResolvedCatalogModel(ResolvedCatalogModel resolvedModel) Serializes the givenResolvedCatalogModelinto a map of string properties.
-
Field Details
-
IS_GENERIC
Flag to distinguish if a meta-object is a generic Flink object or not.It is used to distinguish between Flink's generic connector discovery logic or specialized catalog connectors.
- See Also:
-
FLINK_PROPERTY_PREFIX
Globally reserved prefix for catalog properties. User-defined properties should not use this prefix. E.g. it is used to distinguish properties created by Hive and Flink, as Hive metastore has its own properties created upon table creation and migration between different versions of metastore.- See Also:
-
-
Method Details
-
serializeCatalogTable
Serializes the givenResolvedCatalogTableinto a map of string properties. -
serializeCatalogView
Serializes the givenResolvedCatalogViewinto a map of string properties. -
serializeCatalogMaterializedTable
public static Map<String,String> serializeCatalogMaterializedTable(ResolvedCatalogMaterializedTable resolvedMaterializedTable) Serializes the givenResolvedCatalogMaterializedTableinto a map of string properties. -
serializeResolvedCatalogModel
Serializes the givenResolvedCatalogModelinto a map of string properties. -
deserializeCatalogTable
Deserializes the given map of string properties into an unresolvedCatalogTable. -
deserializeCatalogTable
public static CatalogTable deserializeCatalogTable(Map<String, String> properties, @Nullable String fallbackKey) Deserializes the given map of string properties into an unresolvedCatalogTable.- Parameters:
properties- The properties to deserialize fromfallbackKey- The fallback key to get the schema properties. This is meant to support the old table (1.10) deserialization- Returns:
- a catalog table instance.
-
deserializeCatalogMaterializedTable
public static CatalogMaterializedTable deserializeCatalogMaterializedTable(Map<String, String> properties) Deserializes the given map of string properties into an unresolvedCatalogMaterializedTable. -
deserializeCatalogModel
-