15 #ifndef IMPALA_SERVICE_FRONTEND_H
16 #define IMPALA_SERVICE_FRONTEND_H
20 #include "gen-cpp/ImpalaService.h"
21 #include "gen-cpp/ImpalaHiveServer2Service.h"
22 #include "gen-cpp/ImpalaInternalService.h"
23 #include "gen-cpp/Frontend_types.h"
42 TUpdateCatalogCacheResponse *resp);
61 const TSessionState* session, TGetTablesResult* table_names);
73 TGetDbsResult* table_names);
82 Status GetStats(
const TShowStatsParams& params, TResultSet* result);
96 const std::string* pattern,
const TSessionState* session,
97 TGetFunctionsResult* functions);
106 Status ShowRoles(
const TShowRolesParams& params, TShowRolesResult* result);
116 TDescribeTableResult* response);
136 TGetHadoopConfigResponse* response);
141 Status LoadData(
const TLoadDataReq& load_data_request, TLoadDataResp* response);
jmethodID get_catalog_object_id_
Status ShowRoles(const TShowRolesParams ¶ms, TShowRolesResult *result)
Call FE to get the roles.
Status GetStats(const TShowStatsParams ¶ms, TResultSet *result)
Call FE to get the table/column stats.
jmethodID get_table_files_id_
jmethodID load_table_data_id_
jmethodID show_create_table_id_
jmethodID get_explain_plan_id_
Status GetFunctions(TFunctionCategory::type fn_category, const std::string &db, const std::string *pattern, const TSessionState *session, TGetFunctionsResult *functions)
Status ShowCreateTable(const TTableName &table_name, std::string *response)
Status GetDataSrcMetadata(const std::string *pattern, TGetDataSrcsResult *result)
jmethodID get_role_privileges_id_
jmethodID update_catalog_cache_id_
jmethodID get_functions_id_
Status DescribeTable(const TDescribeTableParams ¶ms, TDescribeTableResult *response)
jmethodID exec_hs2_metadata_op_id_
Status GetCatalogObject(const TCatalogObject &request, TCatalogObject *response)
Status GetExplainPlan(const TQueryCtx &query_ctx, std::string *explain_string)
Call FE to get explain plan.
Status LoadData(const TLoadDataReq &load_data_request, TLoadDataResp *response)
jmethodID get_table_names_id_
jmethodID check_config_id_
static bool IsAuthorizationError(const Status &status)
Returns true if the error returned by the FE was due to an AuthorizationException.
jmethodID describe_table_id_
Status GetRolePrivileges(const TShowGrantRoleParams ¶ms, TResultSet *result)
Call FE to get the privileges granted to a role.
jmethodID create_exec_request_id_
Status GetHadoopConfig(const TGetHadoopConfigRequest &request, TGetHadoopConfigResponse *response)
jmethodID get_db_names_id_
jmethodID set_catalog_initialized_id_
Status GetTableFiles(const TShowFilesParams ¶ms, TResultSet *result)
Call FE to get files info for a table or partition.
Status GetDbNames(const std::string *pattern, const TSessionState *session, TGetDbsResult *table_names)
jmethodID get_hadoop_configs_id_
Status SetCatalogInitialized()
jmethodID get_hadoop_config_id_
Status ExecHiveServer2MetadataOp(const TMetadataOpRequest &request, TResultSet *result)
Calls FE to execute HiveServer2 metadata operation.
Status GetTableNames(const std::string &db, const std::string *pattern, const TSessionState *session, TGetTablesResult *table_names)
Status ValidateSettings()
Validate Hadoop config; requires FE.
Status UpdateCatalogCache(const TUpdateCatalogCacheRequest &req, TUpdateCatalogCacheResponse *resp)
jmethodID get_data_src_metadata_id_
Status GetExecRequest(const TQueryCtx &query_ctx, TExecRequest *result)
Call FE to get TExecRequest.
Status GetAllHadoopConfigs(TGetAllHadoopConfigsResponse *result)
Returns all Hadoop configurations in key, value form in result.
jclass fe_class_
Descriptor of Java Frontend class itself, used to create a new instance.