Class SubApplicationRowKey
java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.storage.subapplication.SubApplicationRowKey
- Direct Known Subclasses:
SubApplicationRowKeyPrefix
Represents a rowkey for the sub app table.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Constructs a row key for the sub app table as follows:subAppUserId!clusterId!entityType !entityPrefix!entityId!userId.Constructs a row key for the sub app table as follows:static SubApplicationRowKeyparseRowKey(byte[] rowKey) Given the raw row key as bytes, returns the row key as an object.static SubApplicationRowKeyparseRowKeyFromString(String encodedRowKey) Given the encoded row key as string, returns the row key as an object.
-
Constructor Details
-
SubApplicationRowKey
-
-
Method Details
-
getClusterId
-
getSubAppUserId
-
getEntityType
-
getEntityId
-
getEntityIdPrefix
-
getUserId
-
getRowKey
public byte[] getRowKey()Constructs a row key for the sub app table as follows: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.- Returns:
- byte array with the row key.
-
parseRowKey
Given the raw row key as bytes, returns the row key as an object.- Parameters:
rowKey- byte representation of row key.- Returns:
- An SubApplicationRowKey object.
-
getRowKeyAsString
Constructs a row key for the sub app table as follows:subAppUserId!clusterId! entityType!entityIdPrefix!entityId!userId. subAppUserId is usually the doAsUser. userId is the yarn user that that the AM runs as.- Returns:
- String representation of row key.
-
parseRowKeyFromString
Given the encoded row key as string, returns the row key as an object.- Parameters:
encodedRowKey- String representation of row key.- Returns:
- A SubApplicationRowKey object.
-