public class SubApplicationRowKey extends Object
| Constructor and Description |
|---|
SubApplicationRowKey(String subAppUserId,
String clusterId,
String entityType,
Long entityIdPrefix,
String entityId,
String userId) |
| Modifier and Type | Method and Description |
|---|---|
String |
getClusterId() |
String |
getEntityId() |
Long |
getEntityIdPrefix() |
String |
getEntityType() |
byte[] |
getRowKey()
Constructs a row key for the sub app table as follows:
subAppUserId!clusterId!entityType
!entityPrefix!entityId!userId. |
String |
getRowKeyAsString()
Constructs a row key for the sub app table as follows:
|
String |
getSubAppUserId() |
String |
getUserId() |
static SubApplicationRowKey |
parseRowKey(byte[] rowKey)
Given the raw row key as bytes, returns the row key as an object.
|
static SubApplicationRowKey |
parseRowKeyFromString(String encodedRowKey)
Given the encoded row key as string, returns the row key as an object.
|
public String getClusterId()
public String getSubAppUserId()
public String getEntityType()
public String getEntityId()
public Long getEntityIdPrefix()
public String getUserId()
public byte[] getRowKey()
subAppUserId!clusterId!entityType
!entityPrefix!entityId!userId.
Typically used while querying a specific sub app.
subAppUserId is usually the doAsUser.
userId is the yarn user that the AM runs as.public static SubApplicationRowKey parseRowKey(byte[] rowKey)
rowKey - byte representation of row key.public String getRowKeyAsString()
subAppUserId!clusterId!
entityType!entityIdPrefix!entityId!userId.
subAppUserId is usually the doAsUser.
userId is the yarn user that that the AM runs as.
public static SubApplicationRowKey parseRowKeyFromString(String encodedRowKey)
encodedRowKey - String representation of row key.Copyright © 2008–2022 Apache Software Foundation. All rights reserved.