Package org.apache.flink.table.factories
Class TableFactoryService
java.lang.Object
org.apache.flink.table.factories.TableFactoryService
Deprecated.
Unified class to search for a
TableFactory of provided type and properties.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.Prefix for format-related properties.static final StringDeprecated.Key for deriving the schema of the format from the table's schema.static final StringDeprecated.Key for describing the property version.static final StringDeprecated.Key for describing the type of the format. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends TableFactory>
TDeprecated.Finds a table factory of the given class and property map.static <T extends TableFactory>
TDeprecated.Finds a table factory of the given class, property map, and classloader.static <T extends TableFactory>
Tfind(Class<T> factoryClass, Descriptor descriptor) Deprecated.Finds a table factory of the given class and descriptor.static <T extends TableFactory>
Tfind(Class<T> factoryClass, Descriptor descriptor, ClassLoader classLoader) Deprecated.Finds a table factory of the given class, descriptor, and classloader.static <T extends TableFactory>
List<T>Deprecated.Finds all table factories of the given class and property map.
-
Field Details
-
FORMAT
Deprecated.Prefix for format-related properties.- See Also:
-
FORMAT_TYPE
Deprecated.Key for describing the type of the format. Usually used for factory discovery.- See Also:
-
FORMAT_PROPERTY_VERSION
Deprecated.Key for describing the property version. This property can be used for backwards compatibility in case the property format changes.- See Also:
-
FORMAT_DERIVE_SCHEMA
Deprecated.Key for deriving the schema of the format from the table's schema.- See Also:
-
-
Constructor Details
-
TableFactoryService
public TableFactoryService()Deprecated.
-
-
Method Details
-
find
Deprecated.Finds a table factory of the given class and descriptor.- Type Parameters:
T- factory class type- Parameters:
factoryClass- desired factory classdescriptor- descriptor describing the factory configuration- Returns:
- the matching factory
-
find
public static <T extends TableFactory> T find(Class<T> factoryClass, Descriptor descriptor, ClassLoader classLoader) Deprecated.Finds a table factory of the given class, descriptor, and classloader.- Type Parameters:
T- factory class type- Parameters:
factoryClass- desired factory classdescriptor- descriptor describing the factory configurationclassLoader- classloader for service loading- Returns:
- the matching factory
-
find
public static <T extends TableFactory> T find(Class<T> factoryClass, Map<String, String> propertyMap) Deprecated.Finds a table factory of the given class and property map.- Type Parameters:
T- factory class type- Parameters:
factoryClass- desired factory classpropertyMap- properties that describe the factory configuration- Returns:
- the matching factory
-
find
public static <T extends TableFactory> T find(Class<T> factoryClass, Map<String, String> propertyMap, ClassLoader classLoader) Deprecated.Finds a table factory of the given class, property map, and classloader.- Type Parameters:
T- factory class type- Parameters:
factoryClass- desired factory classpropertyMap- properties that describe the factory configurationclassLoader- classloader for service loading- Returns:
- the matching factory
-
findAll
public static <T extends TableFactory> List<T> findAll(Class<T> factoryClass, Map<String, String> propertyMap) Deprecated.Finds all table factories of the given class and property map.- Type Parameters:
T- factory class type- Parameters:
factoryClass- desired factory classpropertyMap- properties that describe the factory configuration- Returns:
- all the matching factories
-