Class SubApplicationRowKeyPrefix
java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.storage.subapplication.SubApplicationRowKey
org.apache.hadoop.yarn.server.timelineservice.storage.subapplication.SubApplicationRowKeyPrefix
- All Implemented Interfaces:
RowKeyPrefix<SubApplicationRowKey>
public class SubApplicationRowKeyPrefix
extends SubApplicationRowKey
implements RowKeyPrefix<SubApplicationRowKey>
Represents a partial rowkey without the entityId or without entityType and
entityId for the sub application table.
-
Constructor Summary
ConstructorsConstructorDescriptionSubApplicationRowKeyPrefix(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. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Create a row key prefix, meaning a partial rowkey that can be used in range scans.Methods inherited from class org.apache.hadoop.yarn.server.timelineservice.storage.subapplication.SubApplicationRowKey
getClusterId, getEntityId, getEntityIdPrefix, getEntityType, getRowKey, getRowKeyAsString, getSubAppUserId, getUserId, parseRowKey, parseRowKeyFromString
-
Constructor Details
-
SubApplicationRowKeyPrefix
public 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.- Parameters:
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.
-
-
Method Details
-
getRowKeyPrefix
public byte[] getRowKeyPrefix()Description copied from interface:RowKeyPrefixCreate a row key prefix, meaning a partial rowkey that can be used in range scans. Which fields are included in the prefix will depend on the constructor of the specific instance that was used. Output depends on which constructor was used.- Specified by:
getRowKeyPrefixin interfaceRowKeyPrefix<SubApplicationRowKey>- Returns:
- a prefix of the following form
fist!second!...!last!
-