Class MetadataProvider
java.lang.Object
org.apache.drill.exec.work.metadata.MetadataProvider
Contains worker
Runnable
classes for providing the metadata and related helper methods.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Runnable
catalogs
(UserSession session, DrillbitContext dContext, UserProtos.GetCatalogsReq req, ResponseSender responseSender) static Runnable
columns
(UserSession session, DrillbitContext dContext, UserProtos.GetColumnsReq req, ResponseSender responseSender) static Runnable
schemas
(UserSession session, DrillbitContext dContext, UserProtos.GetSchemasReq req, ResponseSender responseSender) static Runnable
tables
(UserSession session, DrillbitContext dContext, UserProtos.GetTablesReq req, ResponseSender responseSender)
-
Constructor Details
-
MetadataProvider
public MetadataProvider()
-
-
Method Details
-
catalogs
public static Runnable catalogs(UserSession session, DrillbitContext dContext, UserProtos.GetCatalogsReq req, ResponseSender responseSender) - Returns:
- Runnable that fetches the catalog metadata for given
UserProtos.GetCatalogsReq
and sends response at the end.
-
schemas
public static Runnable schemas(UserSession session, DrillbitContext dContext, UserProtos.GetSchemasReq req, ResponseSender responseSender) - Returns:
- Runnable that fetches the schema metadata for given
UserProtos.GetSchemasReq
and sends response at the end.
-
tables
public static Runnable tables(UserSession session, DrillbitContext dContext, UserProtos.GetTablesReq req, ResponseSender responseSender) - Returns:
- Runnable that fetches the table metadata for given
UserProtos.GetTablesReq
and sends response at the end.
-
columns
public static Runnable columns(UserSession session, DrillbitContext dContext, UserProtos.GetColumnsReq req, ResponseSender responseSender) - Returns:
- Runnable that fetches the column metadata for given
UserProtos.GetColumnsReq
and sends response at the end.
-