public class HCatSemanticAnalyzerBase extends AbstractSemanticAnalyzerHook
Constructor and Description |
---|
HCatSemanticAnalyzerBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
authorize(Database db,
Privilege priv) |
protected void |
authorize(Partition part,
Privilege priv) |
protected void |
authorize(Privilege[] inputPrivs,
Privilege[] outputPrivs) |
protected void |
authorize(Table table,
Privilege priv) |
protected void |
authorizeDDL(HiveSemanticAnalyzerHookContext context,
List<Task<?>> rootTasks)
Checks for the given rootTasks, and calls authorizeDDLWork() for each DDLWork to
be authorized.
|
protected void |
authorizeDDLWork(HiveSemanticAnalyzerHookContext context,
Hive hive,
DDLWork work)
Authorized the given DDLWork.
|
protected void |
authorizeTable(Hive hive,
String tableName,
Privilege priv) |
HiveAuthorizationProvider |
getAuthProvider() |
void |
postAnalyze(HiveSemanticAnalyzerHookContext context,
List<Task<?>> rootTasks)
Invoked after Hive performs its own semantic analysis on a
statement (including optimization).
|
preAnalyze
public HiveAuthorizationProvider getAuthProvider()
public void postAnalyze(HiveSemanticAnalyzerHookContext context, List<Task<?>> rootTasks) throws SemanticException
HiveSemanticAnalyzerHook
postAnalyze
in interface HiveSemanticAnalyzerHook
postAnalyze
in class AbstractSemanticAnalyzerHook
context
- context information for semantic analysisrootTasks
- root tasks produced by semantic analysis;
the hook is free to modify this list or its contentsSemanticException
protected void authorizeDDL(HiveSemanticAnalyzerHookContext context, List<Task<?>> rootTasks) throws SemanticException
SemanticException
protected void authorizeDDLWork(HiveSemanticAnalyzerHookContext context, Hive hive, DDLWork work) throws HiveException
HiveException
protected void authorize(Privilege[] inputPrivs, Privilege[] outputPrivs) throws AuthorizationException, SemanticException
protected void authorize(Database db, Privilege priv) throws AuthorizationException, SemanticException
protected void authorizeTable(Hive hive, String tableName, Privilege priv) throws AuthorizationException, HiveException
AuthorizationException
HiveException
protected void authorize(Table table, Privilege priv) throws AuthorizationException, SemanticException
protected void authorize(Partition part, Privilege priv) throws AuthorizationException, SemanticException
Copyright © 2022 The Apache Software Foundation. All rights reserved.