Class LogStoreProvider
Object
io.delta.kernel.defaults.internal.logstore.LogStoreProvider
Utility class to provide the correct
LogStore based on the scheme of the path.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.delta.storage.LogStoregetLogStore(org.apache.hadoop.conf.Configuration hadoopConf, String scheme) Get theLogStoreinstance for the given scheme and configuration.
-
Constructor Details
-
LogStoreProvider
public LogStoreProvider()
-
-
Method Details
-
getLogStore
public static io.delta.storage.LogStore getLogStore(org.apache.hadoop.conf.Configuration hadoopConf, String scheme) Get theLogStoreinstance for the given scheme and configuration. Callers can setio.delta.kernel.logStore.<scheme>.implto specify theLogStoreimplementation to use forscheme.If not set, the default
LogStoreimplementation (given below) for the scheme will be used.s3, s3a, s3n:S3SingleDriverLogStoreabfs, abfss, adl, wasb, wasbs:AzureLogStoregs:GCSLogStorehdfs, file:HDFSLogStore- remaining:
HDFSLogStore
- Parameters:
hadoopConf-Configurationto use for creating the LogStore.scheme- Scheme of the path.- Returns:
LogStoreinstance.- Throws:
IllegalArgumentException- if the LogStore implementation is not found or can not be instantiated.
-