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 HiveAuthorizationTaskFactory
public Task<? extends Serializable> createDropRoleTask(ASTNode ast, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
createDropRoleTask
in interface HiveAuthorizationTaskFactory
public Task<? extends Serializable> createShowRoleGrantTask(ASTNode ast, org.apache.hadoop.fs.Path resultFile, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
createShowRoleGrantTask
in interface HiveAuthorizationTaskFactory
public Task<? extends Serializable> createGrantTask(ASTNode ast, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs) throws SemanticException
createGrantTask
in interface HiveAuthorizationTaskFactory
SemanticException
public Task<? extends Serializable> createRevokeTask(ASTNode ast, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs) throws SemanticException
createRevokeTask
in interface HiveAuthorizationTaskFactory
SemanticException
public Task<? extends Serializable> createGrantRoleTask(ASTNode ast, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
createGrantRoleTask
in interface HiveAuthorizationTaskFactory
public Task<? extends Serializable> createShowGrantTask(ASTNode ast, org.apache.hadoop.fs.Path resultFile, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs) throws SemanticException
createShowGrantTask
in interface HiveAuthorizationTaskFactory
SemanticException
public Task<? extends Serializable> createRevokeRoleTask(ASTNode ast, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
createRevokeRoleTask
in interface HiveAuthorizationTaskFactory
protected PrivilegeObjectDesc parsePrivObject(ASTNode ast) throws SemanticException
SemanticException
public Task<? extends Serializable> createSetRoleTask(String roleName, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs) throws SemanticException
createSetRoleTask
in interface HiveAuthorizationTaskFactory
SemanticException
public Task<? extends Serializable> createShowCurrentRoleTask(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, org.apache.hadoop.fs.Path resFile) throws SemanticException
createShowCurrentRoleTask
in interface HiveAuthorizationTaskFactory
SemanticException
public Task<? extends Serializable> createShowRolePrincipalsTask(ASTNode ast, org.apache.hadoop.fs.Path resFile, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs) throws SemanticException
createShowRolePrincipalsTask
in interface HiveAuthorizationTaskFactory
SemanticException
public Task<? extends Serializable> createShowRolesTask(ASTNode ast, org.apache.hadoop.fs.Path resFile, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs) throws SemanticException
createShowRolesTask
in interface HiveAuthorizationTaskFactory
SemanticException
Copyright © 2017 The Apache Software Foundation. All rights reserved.