@Internal public class TableFactoryService extends Object
TableFactory
of provided type and properties.Modifier and Type | Field and Description |
---|---|
static String |
FORMAT
Prefix for format-related properties.
|
static String |
FORMAT_DERIVE_SCHEMA
Key for deriving the schema of the format from the table's schema.
|
static String |
FORMAT_PROPERTY_VERSION
Key for describing the property version.
|
static String |
FORMAT_TYPE
Key for describing the type of the format.
|
Constructor and Description |
---|
TableFactoryService() |
Modifier and Type | Method and Description |
---|---|
static <T extends TableFactory> |
find(Class<T> factoryClass,
Descriptor descriptor)
Finds a table factory of the given class and descriptor.
|
static <T extends TableFactory> |
find(Class<T> factoryClass,
Descriptor descriptor,
ClassLoader classLoader)
Finds a table factory of the given class, descriptor, and classloader.
|
static <T extends TableFactory> |
find(Class<T> factoryClass,
Map<String,String> propertyMap)
Finds a table factory of the given class and property map.
|
static <T extends TableFactory> |
find(Class<T> factoryClass,
Map<String,String> propertyMap,
ClassLoader classLoader)
Finds a table factory of the given class, property map, and classloader.
|
static <T extends TableFactory> |
findAll(Class<T> factoryClass,
Map<String,String> propertyMap)
Finds all table factories of the given class and property map.
|
public static final String FORMAT
public static final String FORMAT_TYPE
public static final String FORMAT_PROPERTY_VERSION
public static final String FORMAT_DERIVE_SCHEMA
public static <T extends TableFactory> T find(Class<T> factoryClass, Descriptor descriptor)
T
- factory class typefactoryClass
- desired factory classdescriptor
- descriptor describing the factory configurationpublic static <T extends TableFactory> T find(Class<T> factoryClass, Descriptor descriptor, ClassLoader classLoader)
T
- factory class typefactoryClass
- desired factory classdescriptor
- descriptor describing the factory configurationclassLoader
- classloader for service loadingpublic static <T extends TableFactory> T find(Class<T> factoryClass, Map<String,String> propertyMap)
T
- factory class typefactoryClass
- desired factory classpropertyMap
- properties that describe the factory configurationpublic static <T extends TableFactory> T find(Class<T> factoryClass, Map<String,String> propertyMap, ClassLoader classLoader)
T
- factory class typefactoryClass
- desired factory classpropertyMap
- properties that describe the factory configurationclassLoader
- classloader for service loadingpublic static <T extends TableFactory> List<T> findAll(Class<T> factoryClass, Map<String,String> propertyMap)
T
- factory class typefactoryClass
- desired factory classpropertyMap
- properties that describe the factory configurationCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.