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

Public Member Functions

TPrivilege toThrift ()
 
String toSql ()
 
void analyze (Analyzer analyzer) throws AnalysisException
 

Static Public Member Functions

static PrivilegeSpec createServerScopedPriv (TPrivilegeLevel privilegeLevel)
 
static PrivilegeSpec createDbScopedPriv (TPrivilegeLevel privilegeLevel, String dbName)
 
static PrivilegeSpec createTableScopedPriv (TPrivilegeLevel privilegeLevel, TableName tableName)
 
static PrivilegeSpec createUriScopedPriv (TPrivilegeLevel privilegeLevel, HdfsUri uri)
 

Private Member Functions

 PrivilegeSpec (TPrivilegeLevel privilegeLevel, TPrivilegeScope scope, String dbName, TableName tableName, HdfsUri uri)
 

Private Attributes

final TPrivilegeScope scope_
 
final TPrivilegeLevel privilegeLevel_
 
final TableName tableName_
 
final HdfsUri uri_
 
String dbName_
 
String serverName_
 

Detailed Description

Represents a privilegeSpec from a GRANT/REVOKE statement.

Definition at line 29 of file PrivilegeSpec.java.

Constructor & Destructor Documentation

Member Function Documentation

void com.cloudera.impala.analysis.PrivilegeSpec.analyze ( Analyzer  analyzer) throws AnalysisException
inline
static PrivilegeSpec com.cloudera.impala.analysis.PrivilegeSpec.createDbScopedPriv ( TPrivilegeLevel  privilegeLevel,
String  dbName 
)
inlinestatic
static PrivilegeSpec com.cloudera.impala.analysis.PrivilegeSpec.createServerScopedPriv ( TPrivilegeLevel  privilegeLevel)
inlinestatic
static PrivilegeSpec com.cloudera.impala.analysis.PrivilegeSpec.createTableScopedPriv ( TPrivilegeLevel  privilegeLevel,
TableName  tableName 
)
inlinestatic
static PrivilegeSpec com.cloudera.impala.analysis.PrivilegeSpec.createUriScopedPriv ( TPrivilegeLevel  privilegeLevel,
HdfsUri  uri 
)
inlinestatic
String com.cloudera.impala.analysis.PrivilegeSpec.toSql ( )
inline

Member Data Documentation

String com.cloudera.impala.analysis.PrivilegeSpec.serverName_
private
final HdfsUri com.cloudera.impala.analysis.PrivilegeSpec.uri_
private

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