org.apache.hadoop.hive.ql.parse.authorization
Class HiveAuthorizationTaskFactoryImpl

java.lang.Object
  extended by org.apache.hadoop.hive.ql.parse.authorization.HiveAuthorizationTaskFactoryImpl
All Implemented Interfaces:
HiveAuthorizationTaskFactory

public class HiveAuthorizationTaskFactoryImpl
extends Object
implements HiveAuthorizationTaskFactory

Default implementation of HiveAuthorizationTaskFactory


Constructor Summary
HiveAuthorizationTaskFactoryImpl(HiveConf conf, Hive db)
           
 
Method Summary
 Task<? extends Serializable> createCreateRoleTask(ASTNode ast, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
           
 Task<? extends Serializable> createDropRoleTask(ASTNode ast, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
           
 Task<? extends Serializable> createGrantRoleTask(ASTNode ast, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
           
 Task<? extends Serializable> createGrantTask(ASTNode ast, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
           
 Task<? extends Serializable> createRevokeRoleTask(ASTNode ast, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
           
 Task<? extends Serializable> createRevokeTask(ASTNode ast, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
           
 Task<? extends Serializable> createSetRoleTask(String roleName, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
           
 Task<? extends Serializable> createShowCurrentRoleTask(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs, org.apache.hadoop.fs.Path resFile)
           
 Task<? extends Serializable> createShowGrantTask(ASTNode ast, org.apache.hadoop.fs.Path resultFile, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
           
 Task<? extends Serializable> createShowRoleGrantTask(ASTNode ast, org.apache.hadoop.fs.Path resultFile, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
           
 Task<? extends Serializable> createShowRolePrincipalsTask(ASTNode ast, org.apache.hadoop.fs.Path resFile, HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HiveAuthorizationTaskFactoryImpl

public HiveAuthorizationTaskFactoryImpl(HiveConf conf,
                                        Hive db)
Method Detail

createCreateRoleTask

public Task<? extends Serializable> createCreateRoleTask(ASTNode ast,
                                                         HashSet<ReadEntity> inputs,
                                                         HashSet<WriteEntity> outputs)
Specified by:
createCreateRoleTask in interface HiveAuthorizationTaskFactory

createDropRoleTask

public Task<? extends Serializable> createDropRoleTask(ASTNode ast,
                                                       HashSet<ReadEntity> inputs,
                                                       HashSet<WriteEntity> outputs)
Specified by:
createDropRoleTask in interface HiveAuthorizationTaskFactory

createShowRoleGrantTask

public Task<? extends Serializable> createShowRoleGrantTask(ASTNode ast,
                                                            org.apache.hadoop.fs.Path resultFile,
                                                            HashSet<ReadEntity> inputs,
                                                            HashSet<WriteEntity> outputs)
Specified by:
createShowRoleGrantTask in interface HiveAuthorizationTaskFactory

createGrantTask

public Task<? extends Serializable> createGrantTask(ASTNode ast,
                                                    HashSet<ReadEntity> inputs,
                                                    HashSet<WriteEntity> outputs)
                                             throws SemanticException
Specified by:
createGrantTask in interface HiveAuthorizationTaskFactory
Throws:
SemanticException

createRevokeTask

public Task<? extends Serializable> createRevokeTask(ASTNode ast,
                                                     HashSet<ReadEntity> inputs,
                                                     HashSet<WriteEntity> outputs)
                                              throws SemanticException
Specified by:
createRevokeTask in interface HiveAuthorizationTaskFactory
Throws:
SemanticException

createGrantRoleTask

public Task<? extends Serializable> createGrantRoleTask(ASTNode ast,
                                                        HashSet<ReadEntity> inputs,
                                                        HashSet<WriteEntity> outputs)
Specified by:
createGrantRoleTask in interface HiveAuthorizationTaskFactory

createShowGrantTask

public Task<? extends Serializable> createShowGrantTask(ASTNode ast,
                                                        org.apache.hadoop.fs.Path resultFile,
                                                        HashSet<ReadEntity> inputs,
                                                        HashSet<WriteEntity> outputs)
                                                 throws SemanticException
Specified by:
createShowGrantTask in interface HiveAuthorizationTaskFactory
Throws:
SemanticException

createRevokeRoleTask

public Task<? extends Serializable> createRevokeRoleTask(ASTNode ast,
                                                         HashSet<ReadEntity> inputs,
                                                         HashSet<WriteEntity> outputs)
Specified by:
createRevokeRoleTask in interface HiveAuthorizationTaskFactory

createSetRoleTask

public Task<? extends Serializable> createSetRoleTask(String roleName,
                                                      HashSet<ReadEntity> inputs,
                                                      HashSet<WriteEntity> outputs)
                                               throws SemanticException
Specified by:
createSetRoleTask in interface HiveAuthorizationTaskFactory
Throws:
SemanticException

createShowCurrentRoleTask

public Task<? extends Serializable> createShowCurrentRoleTask(HashSet<ReadEntity> inputs,
                                                              HashSet<WriteEntity> outputs,
                                                              org.apache.hadoop.fs.Path resFile)
                                                       throws SemanticException
Specified by:
createShowCurrentRoleTask in interface HiveAuthorizationTaskFactory
Throws:
SemanticException

createShowRolePrincipalsTask

public Task<? extends Serializable> createShowRolePrincipalsTask(ASTNode ast,
                                                                 org.apache.hadoop.fs.Path resFile,
                                                                 HashSet<ReadEntity> inputs,
                                                                 HashSet<WriteEntity> outputs)
                                                          throws SemanticException
Specified by:
createShowRolePrincipalsTask in interface HiveAuthorizationTaskFactory
Throws:
SemanticException


Copyright © 2014 The Apache Software Foundation. All rights reserved.