public class SubApplicationRowKeyPrefix extends SubApplicationRowKey implements RowKeyPrefix<SubApplicationRowKey>
Constructor and Description |
---|
SubApplicationRowKeyPrefix(String subAppUserId,
String clusterId,
String entityType,
Long entityIdPrefix,
String entityId,
String userId)
Creates a prefix which generates the following rowKeyPrefixes for the sub
application table:
subAppUserId!clusterId!entityType!entityPrefix!userId . |
Modifier and Type | Method and Description |
---|---|
byte[] |
getRowKeyPrefix()
Create a row key prefix, meaning a partial rowkey that can be used in range
scans.
|
getClusterId, getEntityId, getEntityIdPrefix, getEntityType, getRowKey, getRowKeyAsString, getSubAppUserId, getUserId, parseRowKey, parseRowKeyFromString
public SubApplicationRowKeyPrefix(String subAppUserId, String clusterId, String entityType, Long entityIdPrefix, String entityId, String userId)
subAppUserId!clusterId!entityType!entityPrefix!userId
.subAppUserId
- identifying the subApp UserclusterId
- identifying the clusterentityType
- which entity typeentityIdPrefix
- for entityIdentityId
- for an entityuserId
- for the user who runs the AM
subAppUserId is usually the doAsUser.
userId is the yarn user that the AM runs as.public byte[] getRowKeyPrefix()
RowKeyPrefix
getRowKeyPrefix
in interface RowKeyPrefix<SubApplicationRowKey>
fist!second!...!last!
Copyright © 2022 Apache Software Foundation. All rights reserved.