Class EntityRowKeyPrefix
java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.storage.entity.EntityRowKey
org.apache.hadoop.yarn.server.timelineservice.storage.entity.EntityRowKeyPrefix
- All Implemented Interfaces:
RowKeyPrefix<EntityRowKey>
Represents a partial rowkey without the entityId or without entityType and
entityId for the entity table.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a prefix which generates the following rowKeyPrefixes for the entity table:userName!clusterId!flowName!flowRunId!AppId!entityType!entityId.EntityRowKeyPrefix(String clusterId, String userId, String flowName, Long flowRunId, String appId, String entityType, Long entityIdPrefix, String entityId) Creates a prefix which generates the following rowKeyPrefixes for the entity table:userName!clusterId!flowName!flowRunId!AppId!entityType!. -
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.entity.EntityRowKey
getAppId, getClusterId, getEntityId, getEntityIdPrefix, getEntityType, getFlowName, getFlowRunId, getRowKey, getRowKeyAsString, getUserId, parseRowKey, parseRowKeyFromString
-
Constructor Details
-
EntityRowKeyPrefix
public EntityRowKeyPrefix(String clusterId, String userId, String flowName, Long flowRunId, String appId, String entityType, Long entityIdPrefix, String entityId) Creates a prefix which generates the following rowKeyPrefixes for the entity table:userName!clusterId!flowName!flowRunId!AppId!entityType!.- Parameters:
clusterId- identifying the clusteruserId- identifying the userflowName- identifying the flowflowRunId- identifying the individual run of this flowappId- identifying the applicationentityType- which entity typeentityIdPrefix- for entityIdentityId- for an entity
-
EntityRowKeyPrefix
public EntityRowKeyPrefix(String clusterId, String userId, String flowName, Long flowRunId, String appId) Creates a prefix which generates the following rowKeyPrefixes for the entity table:userName!clusterId!flowName!flowRunId!AppId!entityType!entityId.- Parameters:
clusterId- identifying the clusteruserId- identifying the userflowName- identifying the flowflowRunId- identifying the individual run of this flowappId- identifying the application
-
-
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<EntityRowKey>- Returns:
- a prefix of the following form
fist!second!...!last!
-