Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
com.cloudera.impala.analysis.GrantRevokePrivStmt Class Reference
Inheritance diagram for com.cloudera.impala.analysis.GrantRevokePrivStmt:
Collaboration diagram for com.cloudera.impala.analysis.GrantRevokePrivStmt:

Public Member Functions

 GrantRevokePrivStmt (String roleName, PrivilegeSpec privilegeSpec, boolean isGrantPrivStmt, boolean hasGrantOpt)
 
TGrantRevokePrivParams toThrift ()
 
String toSql ()
 
void analyze (Analyzer analyzer) throws AnalysisException
 
void setIsExplain ()
 
boolean isExplain ()
 

Protected Attributes

User requestingUser_
 
boolean isExplain_ = false
 

Private Attributes

final PrivilegeSpec privilegeSpec_
 
final String roleName_
 
final boolean isGrantPrivStmt_
 
final boolean hasGrantOpt_
 
Role role_
 

Detailed Description

Represents a "GRANT/REVOKE PRIVILEGE" statement. All privilege checks on catalog objects are skipped when executing GRANT/REVOKE statements. This is because we need to be able to create privileges on an object before any privileges actually exist. The GRANT/REVOKE statement itself will be authorized (currently by the Sentry Service).

Definition at line 33 of file GrantRevokePrivStmt.java.

Constructor & Destructor Documentation

com.cloudera.impala.analysis.GrantRevokePrivStmt.GrantRevokePrivStmt ( String  roleName,
PrivilegeSpec  privilegeSpec,
boolean  isGrantPrivStmt,
boolean  hasGrantOpt 
)
inline

Member Function Documentation

void com.cloudera.impala.analysis.GrantRevokePrivStmt.analyze ( Analyzer  analyzer) throws AnalysisException
inline

Perform semantic analysis of node and all of its children. Throws exception if any errors found.

Parameters
analyzer
Exceptions
AnalysisException

Implements com.cloudera.impala.analysis.ParseNode.

Definition at line 75 of file GrantRevokePrivStmt.java.

References com.cloudera.impala.analysis.GrantRevokePrivStmt.role_, and com.cloudera.impala.analysis.GrantRevokePrivStmt.roleName_.

boolean com.cloudera.impala.analysis.StatementBase.isExplain ( )
inlineinherited
void com.cloudera.impala.analysis.StatementBase.setIsExplain ( )
inlineinherited
String com.cloudera.impala.analysis.GrantRevokePrivStmt.toSql ( )
inline
TGrantRevokePrivParams com.cloudera.impala.analysis.GrantRevokePrivStmt.toThrift ( )
inline

Member Data Documentation

final boolean com.cloudera.impala.analysis.GrantRevokePrivStmt.isGrantPrivStmt_
private
final PrivilegeSpec com.cloudera.impala.analysis.GrantRevokePrivStmt.privilegeSpec_
private
User com.cloudera.impala.analysis.AuthorizationStmt.requestingUser_
protectedinherited
Role com.cloudera.impala.analysis.GrantRevokePrivStmt.role_
private

The documentation for this class was generated from the following file: