Package org.apache.drill.exec.metastore
Class MetastoreMetadataProviderManager
java.lang.Object
org.apache.drill.exec.metastore.MetastoreMetadataProviderManager
- All Implemented Interfaces:
MetadataProviderManager
Implementation of
MetadataProviderManager
which uses Drill Metastore providers.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionMetastoreMetadataProviderManager
(MetastoreRegistry metastoreRegistry, TableInfo tableInfo, MetastoreMetadataProviderManager.MetastoreMetadataProviderConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setSchemaProvider
(SchemaProvider schemaProvider) void
setStatsProvider
(DrillStatsTable statsProvider) void
setTableMetadataProvider
(TableMetadataProvider tableMetadataProvider) boolean
Returnstrue
if currentMetadataProviderManager
instance uses Drill Metastore.
-
Constructor Details
-
MetastoreMetadataProviderManager
public MetastoreMetadataProviderManager(MetastoreRegistry metastoreRegistry, TableInfo tableInfo, MetastoreMetadataProviderManager.MetastoreMetadataProviderConfig config)
-
-
Method Details
-
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
-
getMetastoreRegistry
-
getTableInfo
-
getConfig
-
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.
-