public class HiveAuthorizationTaskFactoryImpl extends Object implements HiveAuthorizationTaskFactory
| Constructor and Description |
|---|
HiveAuthorizationTaskFactoryImpl(HiveConf conf,
Hive db) |
public Task<? extends Serializable> createCreateRoleTask(ASTNode ast, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
createCreateRoleTask in interface HiveAuthorizationTaskFactorypublic Task<? extends Serializable> createDropRoleTask(ASTNode ast, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
createDropRoleTask in interface HiveAuthorizationTaskFactorypublic Task<? extends Serializable> createShowRoleGrantTask(ASTNode ast, org.apache.hadoop.fs.Path resultFile, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
createShowRoleGrantTask in interface HiveAuthorizationTaskFactorypublic Task<? extends Serializable> createGrantTask(ASTNode ast, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs) throws SemanticException
createGrantTask in interface HiveAuthorizationTaskFactorySemanticExceptionpublic Task<? extends Serializable> createRevokeTask(ASTNode ast, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs) throws SemanticException
createRevokeTask in interface HiveAuthorizationTaskFactorySemanticExceptionpublic Task<? extends Serializable> createGrantRoleTask(ASTNode ast, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
createGrantRoleTask in interface HiveAuthorizationTaskFactorypublic Task<? extends Serializable> createShowGrantTask(ASTNode ast, org.apache.hadoop.fs.Path resultFile, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs) throws SemanticException
createShowGrantTask in interface HiveAuthorizationTaskFactorySemanticExceptionpublic Task<? extends Serializable> createRevokeRoleTask(ASTNode ast, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
createRevokeRoleTask in interface HiveAuthorizationTaskFactoryprotected PrivilegeObjectDesc parsePrivObject(ASTNode ast) throws SemanticException
SemanticExceptionpublic Task<? extends Serializable> createSetRoleTask(String roleName, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs) throws SemanticException
createSetRoleTask in interface HiveAuthorizationTaskFactorySemanticExceptionpublic Task<? extends Serializable> createShowCurrentRoleTask(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, org.apache.hadoop.fs.Path resFile) throws SemanticException
createShowCurrentRoleTask in interface HiveAuthorizationTaskFactorySemanticExceptionpublic Task<? extends Serializable> createShowRolePrincipalsTask(ASTNode ast, org.apache.hadoop.fs.Path resFile, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs) throws SemanticException
createShowRolePrincipalsTask in interface HiveAuthorizationTaskFactorySemanticExceptionpublic Task<? extends Serializable> createShowRolesTask(ASTNode ast, org.apache.hadoop.fs.Path resFile, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs) throws SemanticException
createShowRolesTask in interface HiveAuthorizationTaskFactorySemanticExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.