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 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 User
      clusterId - identifying the cluster
      entityType - which entity type
      entityIdPrefix - for entityId
      entityId - for an entity
      userId - 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: RowKeyPrefix
      Create 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:
      getRowKeyPrefix in interface RowKeyPrefix<SubApplicationRowKey>
      Returns:
      a prefix of the following form fist!second!...!last!