java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.storage.entity.EntityRowKey
Direct Known Subclasses:
EntityRowKeyPrefix

public class EntityRowKey extends Object
Represents a rowkey for the entity table.
  • Constructor Details

  • Method Details

    • getClusterId

      public String getClusterId()
    • getUserId

      public String getUserId()
    • getFlowName

      public String getFlowName()
    • getFlowRunId

      public Long getFlowRunId()
    • getAppId

      public String getAppId()
    • getEntityType

      public String getEntityType()
    • getEntityId

      public String getEntityId()
    • getEntityIdPrefix

      public Long 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

      public static EntityRowKey parseRowKey(byte[] rowKey)
      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

      public String 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

      public static EntityRowKey parseRowKeyFromString(String encodedRowKey)
      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.