Package org.apache.flink.table.factories
Class TableFactoryService
- java.lang.Object
-
- org.apache.flink.table.factories.TableFactoryService
-
@Deprecated @Internal public class TableFactoryService extends Object
Deprecated.Unified class to search for aTableFactoryof provided type and properties.
-
-
Field Summary
Fields Modifier and Type Field Description static StringFORMATDeprecated.Prefix for format-related properties.static StringFORMAT_DERIVE_SCHEMADeprecated.Key for deriving the schema of the format from the table's schema.static StringFORMAT_PROPERTY_VERSIONDeprecated.Key for describing the property version.static StringFORMAT_TYPEDeprecated.Key for describing the type of the format.
-
Constructor Summary
Constructors Constructor Description TableFactoryService()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T extends TableFactory>
Tfind(Class<T> factoryClass, Map<String,String> propertyMap)Deprecated.Finds a table factory of the given class and property map.static <T extends TableFactory>
Tfind(Class<T> factoryClass, Map<String,String> propertyMap, ClassLoader classLoader)Deprecated.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>findAll(Class<T> factoryClass, Map<String,String> propertyMap)Deprecated.Finds all table factories of the given class and property map.
-
-
-
Field Detail
-
FORMAT
public static final String FORMAT
Deprecated.Prefix for format-related properties.- See Also:
- Constant Field Values
-
FORMAT_TYPE
public static final String FORMAT_TYPE
Deprecated.Key for describing the type of the format. Usually used for factory discovery.- See Also:
- Constant Field Values
-
FORMAT_PROPERTY_VERSION
public static final String 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:
- Constant Field Values
-
FORMAT_DERIVE_SCHEMA
public static final String FORMAT_DERIVE_SCHEMA
Deprecated.Key for deriving the schema of the format from the table's schema.- See Also:
- Constant Field Values
-
-
Method Detail
-
find
public static <T extends TableFactory> T find(Class<T> factoryClass, Descriptor descriptor)
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
-
-