java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.storage.domain.DomainRowKey

public class DomainRowKey extends Object
Represents a row key for the domain table, which is the cluster ! domain id.
  • Constructor Details

    • DomainRowKey

      public DomainRowKey(String clusterId, String domainId)
  • Method Details

    • getClusterId

      public String getClusterId()
    • getDomainId

      public String getDomainId()
    • getRowKey

      public byte[] getRowKey()
      Constructs a row key prefix for the domain table.
      Returns:
      byte array with the row key
    • parseRowKey

      public static DomainRowKey parseRowKey(byte[] rowKey)
      Given the raw row key as bytes, returns the row key as an object.
      Parameters:
      rowKey - a rowkey represented as a byte array.
      Returns:
      an DomainRowKey object.
    • getRowKeyAsString

      public String getRowKeyAsString()
      Constructs a row key for the domain table as follows:

      clusterId!domainId.

      Returns:
      String representation of row key.
    • parseRowKeyFromString

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