@InterfaceAudience.LimitedPrivate(value="Apache Argus (incubating)") @InterfaceStability.Evolving public class HivePrivilegeObject extends Object implements Comparable<HivePrivilegeObject>
HivePrivilegeObject.HivePrivilegeObjectType
.Modifier and Type | Class and Description |
---|---|
static class |
HivePrivilegeObject.HivePrivilegeObjectType
Note that GLOBAL, PARTITION, COLUMN fields are populated only for Hive's old default
authorization mode.
|
static class |
HivePrivilegeObject.HivePrivObjectActionType
When
HiveOperationType is QUERY, this action type is set so that it is possible
to determine if the action type on this object is an INSERT or INSERT_OVERWRITE |
Constructor and Description |
---|
HivePrivilegeObject(HivePrivilegeObject.HivePrivilegeObjectType type,
String dbname,
String objectName) |
HivePrivilegeObject(HivePrivilegeObject.HivePrivilegeObjectType type,
String dbname,
String objectName,
HivePrivilegeObject.HivePrivObjectActionType actionType) |
HivePrivilegeObject(HivePrivilegeObject.HivePrivilegeObjectType type,
String dbname,
String objectName,
List<String> partKeys,
List<String> columns,
HivePrivilegeObject.HivePrivObjectActionType actionType,
List<String> commandParams) |
HivePrivilegeObject(HivePrivilegeObject.HivePrivilegeObjectType type,
String dbname,
String objectName,
List<String> partKeys,
List<String> columns,
List<String> commandParams) |
HivePrivilegeObject(HivePrivilegeObject.HivePrivilegeObjectType type,
String dbname,
String objectName,
List<String> partKeys,
String column) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HivePrivilegeObject o) |
static HivePrivilegeObject |
createHivePrivilegeObject(List<String> cmdParams)
Create HivePrivilegeObject of type
HivePrivilegeObjectType.COMMAND_PARAMS |
HivePrivilegeObject.HivePrivObjectActionType |
getActionType()
See javadoc of
HivePrivilegeObject.HivePrivObjectActionType |
List<String> |
getColumns()
Applicable columns in this object, when the type is
HivePrivilegeObjectType.TABLE
In case of DML read operations, this is the set of columns being used. |
List<String> |
getCommandParams() |
String |
getDbname() |
String |
getObjectName() |
List<String> |
getPartKeys() |
HivePrivilegeObject.HivePrivilegeObjectType |
getType() |
String |
toString() |
public HivePrivilegeObject(HivePrivilegeObject.HivePrivilegeObjectType type, String dbname, String objectName)
public HivePrivilegeObject(HivePrivilegeObject.HivePrivilegeObjectType type, String dbname, String objectName, HivePrivilegeObject.HivePrivObjectActionType actionType)
public HivePrivilegeObject(HivePrivilegeObject.HivePrivilegeObjectType type, String dbname, String objectName, List<String> partKeys, String column)
public HivePrivilegeObject(HivePrivilegeObject.HivePrivilegeObjectType type, String dbname, String objectName, List<String> partKeys, List<String> columns, List<String> commandParams)
public HivePrivilegeObject(HivePrivilegeObject.HivePrivilegeObjectType type, String dbname, String objectName, List<String> partKeys, List<String> columns, HivePrivilegeObject.HivePrivObjectActionType actionType, List<String> commandParams)
public int compareTo(HivePrivilegeObject o)
compareTo
in interface Comparable<HivePrivilegeObject>
public static HivePrivilegeObject createHivePrivilegeObject(List<String> cmdParams)
HivePrivilegeObjectType.COMMAND_PARAMS
cmdParams
- public HivePrivilegeObject.HivePrivilegeObjectType getType()
public String getDbname()
public String getObjectName()
public HivePrivilegeObject.HivePrivObjectActionType getActionType()
HivePrivilegeObject.HivePrivObjectActionType
public List<String> getPartKeys()
public List<String> getColumns()
HivePrivilegeObjectType.TABLE
In case of DML read operations, this is the set of columns being used.
Column information is not set for DDL operations and for tables being written intoCopyright © 2017 The Apache Software Foundation. All rights reserved.