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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Runnablecatalogs(UserSession session, DrillbitContext dContext, UserProtos.GetCatalogsReq req, ResponseSender responseSender) static Runnablecolumns(UserSession session, DrillbitContext dContext, UserProtos.GetColumnsReq req, ResponseSender responseSender) static Runnableschemas(UserSession session, DrillbitContext dContext, UserProtos.GetSchemasReq req, ResponseSender responseSender) static Runnabletables(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.GetCatalogsReqand 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.GetSchemasReqand 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.GetTablesReqand 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.GetColumnsReqand sends response at the end.
-