Class FileSystemMetadataProviderManager
java.lang.Object
org.apache.drill.exec.metastore.store.FileSystemMetadataProviderManager
- All Implemented Interfaces:
MetadataProviderManager
Implementation of
MetadataProviderManager
which uses file system providers and returns
builders for file system based TableMetadataProvider
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TableMetadataProvider
getMetadataProvider
(MetadataProviderManager providerManager) Checks whether specifiedMetadataProviderManager
is not null and returnsTableMetadataProvider
obtained from specifiedMetadataProviderManager
.static TableMetadataProvider
ReturnsTableMetadataProvider
which provides specified schema.static MetadataProviderManager
init()
void
setSchemaProvider
(SchemaProvider schemaProvider) void
setStatsProvider
(DrillStatsTable statsProvider) void
setTableMetadataProvider
(TableMetadataProvider tableMetadataProvider) boolean
Returnstrue
if currentMetadataProviderManager
instance uses Drill Metastore.
-
Constructor Details
-
FileSystemMetadataProviderManager
public FileSystemMetadataProviderManager()
-
-
Method Details
-
init
-
getMetadataProviderForSchema
ReturnsTableMetadataProvider
which provides specified schema.- Parameters:
schema
- table schema which should be provided- Returns:
TableMetadataProvider
which provides specified schema
-
getMetadataProvider
Checks whether specifiedMetadataProviderManager
is not null and returnsTableMetadataProvider
obtained from specifiedMetadataProviderManager
. OtherwiseFileSystemMetadataProviderManager
is used to constructTableMetadataProvider
.- Parameters:
providerManager
- metadata provider manager- Returns:
MetadataProviderManager
instance
-
setSchemaProvider
- Specified by:
setSchemaProvider
in interfaceMetadataProviderManager
-
getSchemaProvider
- Specified by:
getSchemaProvider
in interfaceMetadataProviderManager
-
setStatsProvider
- Specified by:
setStatsProvider
in interfaceMetadataProviderManager
-
getStatsProvider
- Specified by:
getStatsProvider
in interfaceMetadataProviderManager
-
setTableMetadataProvider
- Specified by:
setTableMetadataProvider
in interfaceMetadataProviderManager
-
getTableMetadataProvider
- Specified by:
getTableMetadataProvider
in interfaceMetadataProviderManager
-
usesMetastore
public boolean usesMetastore()Description copied from interface:MetadataProviderManager
Returnstrue
if currentMetadataProviderManager
instance uses Drill Metastore.- Specified by:
usesMetastore
in interfaceMetadataProviderManager
- Returns:
true
if currentMetadataProviderManager
instance uses Drill Metastore,false
otherwise.
-