public class HivePrincipal extends Object
| Constructor and Description |
|---|
HivePrincipal(PrincipalType type,
String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static HivePrincipal |
from(ConnectorIdentity identity) |
static HivePrincipal |
from(PrestoPrincipal prestoPrincipal) |
static Set<HivePrincipal> |
from(Set<PrestoPrincipal> prestoPrincipals) |
String |
getName() |
PrincipalType |
getType() |
int |
hashCode() |
PrestoPrincipal |
toPrestoPrincipal() |
String |
toString() |
public HivePrincipal(PrincipalType type, String name)
public static HivePrincipal from(ConnectorIdentity identity)
public static Set<HivePrincipal> from(Set<PrestoPrincipal> prestoPrincipals)
public static HivePrincipal from(PrestoPrincipal prestoPrincipal)
public PrincipalType getType()
public String getName()
public PrestoPrincipal toPrestoPrincipal()
Copyright © 2012–2020. All rights reserved.