java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.storage.flow.FlowRunRowKey
Direct Known Subclasses:
FlowRunRowKeyPrefix

public class FlowRunRowKey extends Object
Represents a rowkey for the flow run table.
  • Constructor Details

  • Method Details

    • getClusterId

      public String getClusterId()
    • getUserId

      public String getUserId()
    • getFlowName

      public String getFlowName()
    • getFlowRunId

      public Long getFlowRunId()
    • getRowKey

      public byte[] getRowKey()
      Constructs a row key for the entity table as follows: { clusterId!userId!flowName!Inverted Flow Run Id}.
      Returns:
      byte array with the row key
    • parseRowKey

      public static FlowRunRowKey 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:
      A FlowRunRowKey object.
    • getRowKeyAsString

      public String getRowKeyAsString()
      Constructs a row key for the flow run table as follows: clusterId!userId!flowName!Flow Run Id.
      Returns:
      String representation of row key
    • parseRowKeyFromString

      public static FlowRunRowKey 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 FlowRunRowKey object.
    • toString

      public String toString()
      returns the Flow Key as a verbose String output.
      Overrides:
      toString in class Object
      Returns:
      String