Interface ModelProviderFactory.Context

    • Method Detail

      • getObjectIdentifier

        ObjectIdentifier getObjectIdentifier()
        Returns the identifier of the model in the Catalog.

        This identifier describes the relationship between the model instance and the associated Catalog (if any).

      • getCatalogModel

        ResolvedCatalogModel getCatalogModel()
        Returns the resolved model information received from the Catalog or persisted plan.

        The ResolvedCatalogModel forwards the metadata from the catalog but offers a validated ResolvedSchema. The original metadata object is available via ResolvedCatalogModel.getOrigin().

        In most cases, a factory is interested in the following characteristics:

        
         // get the physical input and output data type to initialize the connector
         context.getCatalogModel().getResolvedInputSchema().toPhysicalRowDataType()
         context.getCatalogModel().getResolvedInputSchema().toPhysicalRowDataType()
        
         // get configuration options
         context.getCatalogModel().getOptions()
         

        During a plan restore, usually the model information persisted in the plan is used to reconstruct the catalog model.

      • getConfiguration

        org.apache.flink.configuration.ReadableConfig getConfiguration()
        Gives read-only access to the configuration of the current session.
      • getClassLoader

        ClassLoader getClassLoader()
        Returns the class loader of the current session.

        The class loader is in particular useful for discovering further (nested) factories.

      • isTemporary

        boolean isTemporary()
        Whether the model is temporary.