Package org.apache.drill.exec.metastore
Interface MetadataProviderManager
- All Known Implementing Classes:
FileSystemMetadataProviderManager
,MetastoreMetadataProviderManager
public interface MetadataProviderManager
Base interface for passing and obtaining
SchemaProvider
, DrillStatsTable
and
TableMetadataProvider
, responsible for creating required
TableMetadataProviderBuilder
which constructs required TableMetadataProvider
based on specified providers-
Method Summary
Modifier and TypeMethodDescriptionvoid
setSchemaProvider
(SchemaProvider schemaProvider) void
setStatsProvider
(DrillStatsTable statsProvider) void
setTableMetadataProvider
(TableMetadataProvider tableMetadataProvider) boolean
Returnstrue
if currentMetadataProviderManager
instance uses Drill Metastore.
-
Method Details
-
setSchemaProvider
-
getSchemaProvider
SchemaProvider getSchemaProvider() -
setStatsProvider
-
getStatsProvider
DrillStatsTable getStatsProvider() -
setTableMetadataProvider
-
getTableMetadataProvider
TableMetadataProvider getTableMetadataProvider() -
usesMetastore
boolean usesMetastore()Returnstrue
if currentMetadataProviderManager
instance uses Drill Metastore.- Returns:
true
if currentMetadataProviderManager
instance uses Drill Metastore,false
otherwise.
-