java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.storage.subapplication.SubApplicationRowKey
Direct Known Subclasses:
SubApplicationRowKeyPrefix

public class SubApplicationRowKey extends Object
Represents a rowkey for the sub app table.
  • Constructor Details

  • Method Details

    • getClusterId

      public String getClusterId()
    • getSubAppUserId

      public String getSubAppUserId()
    • getEntityType

      public String getEntityType()
    • getEntityId

      public String getEntityId()
    • getEntityIdPrefix

      public Long getEntityIdPrefix()
    • getUserId

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

      public static SubApplicationRowKey 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 SubApplicationRowKey object.
    • getRowKeyAsString

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

      public static SubApplicationRowKey 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 SubApplicationRowKey object.