Class DomainRowKey
java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.storage.domain.DomainRowKey
Represents a row key for the domain table, which is the
cluster ! domain id.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Constructs a row key prefix for the domain table.Constructs a row key for the domain table as follows:static DomainRowKeyparseRowKey(byte[] rowKey) Given the raw row key as bytes, returns the row key as an object.static DomainRowKeyparseRowKeyFromString(String encodedRowKey) Given the encoded row key as string, returns the row key as an object.
-
Constructor Details
-
DomainRowKey
-
-
Method Details
-
getClusterId
-
getDomainId
-
getRowKey
public byte[] getRowKey()Constructs a row key prefix for the domain table.- Returns:
- byte array with the row key
-
parseRowKey
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
Constructs a row key for the domain table as follows:clusterId!domainId.- 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 DomainRowKey object.
-