Package org.apache.flink.table.catalog
Class DefaultCatalogTable
java.lang.Object
org.apache.flink.table.catalog.DefaultCatalogTable
- All Implemented Interfaces:
CatalogBaseTable,CatalogTable
Default implementation of a
CatalogTable.-
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
ConstructorsModifierConstructorDescriptionprotectedDefaultCatalogTable(Schema schema, String comment, List<String> partitionKeys, Map<String, String> options) protectedDefaultCatalogTable(Schema schema, String comment, List<String> partitionKeys, Map<String, String> options, Long snapshot, TableDistribution distribution) -
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.Get the partition keys of the 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.CatalogTable
getTableKind
-
Constructor Details
-
DefaultCatalogTable
-
DefaultCatalogTable
-
-
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: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
-
getDistribution
Description copied from interface:CatalogTableReturns the distribution of the table if theDISTRIBUTEDclause is defined.- Specified by:
getDistributionin interfaceCatalogTable
-
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
-
getSnapshot
Description copied from interface:CatalogTableReturn the snapshot specified for the table. Return Optional.empty() if not specified.- Specified by:
getSnapshotin interfaceCatalogTable
-
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:CatalogTableReturns a copy of thisCatalogTablewith given table optionsoptions.- Specified by:
copyin interfaceCatalogTable- Returns:
- a new copy of this table with replaced table options
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-