public class PrivilegeGrantInfoBuilder extends Object
PrivilegeGrantInfo. The privilege is required. If not provided the grantor
is
assumed to be the current user. This is really intended for use by the
HiveObjectPrivilegeBuilder.| Constructor and Description |
|---|
PrivilegeGrantInfoBuilder() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.hive.metastore.api.PrivilegeGrantInfo |
build() |
PrivilegeGrantInfoBuilder |
setCreateTime(int createTime) |
PrivilegeGrantInfoBuilder |
setGrantOption(boolean grantOption) |
PrivilegeGrantInfoBuilder |
setGrantor(String grantor) |
PrivilegeGrantInfoBuilder |
setGrantorType(org.apache.hadoop.hive.metastore.api.PrincipalType grantorType) |
PrivilegeGrantInfoBuilder |
setPrivilege(String privilege) |
public PrivilegeGrantInfoBuilder setPrivilege(String privilege)
public PrivilegeGrantInfoBuilder setGrantor(String grantor)
public PrivilegeGrantInfoBuilder setCreateTime(int createTime)
public PrivilegeGrantInfoBuilder setGrantorType(org.apache.hadoop.hive.metastore.api.PrincipalType grantorType)
public PrivilegeGrantInfoBuilder setGrantOption(boolean grantOption)
public org.apache.hadoop.hive.metastore.api.PrivilegeGrantInfo build()
throws org.apache.hadoop.hive.metastore.api.MetaException
org.apache.hadoop.hive.metastore.api.MetaExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.