Class EntityRowKey
java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.storage.entity.EntityRowKey
- Direct Known Subclasses:
EntityRowKeyPrefix
Represents a rowkey for the entity table.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAppId()byte[]Constructs a row key for the entity table as follows:userName!clusterId!flowName!flowRunId!AppId!entityType!entityId.Constructs a row key for the entity table as follows:static EntityRowKeyparseRowKey(byte[] rowKey) Given the raw row key as bytes, returns the row key as an object.static EntityRowKeyparseRowKeyFromString(String encodedRowKey) Given the encoded row key as string, returns the row key as an object.
-
Constructor Details
-
EntityRowKey
-
-
Method Details
-
getClusterId
-
getUserId
-
getFlowName
-
getFlowRunId
-
getAppId
-
getEntityType
-
getEntityId
-
getEntityIdPrefix
-
getRowKey
public byte[] getRowKey()Constructs a row key for the entity table as follows:userName!clusterId!flowName!flowRunId!AppId!entityType!entityId. Typically used while querying a specific entity.- 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 EntityRowKey object.
-
getRowKeyAsString
Constructs a row key for the entity table as follows:userName!clusterId!flowName!flowRunId!AppId! entityType!entityIdPrefix!entityId.- 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 EntityRowKey object.
-