Class FlowActivityRowKeyPrefix

java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.storage.flow.FlowActivityRowKey
org.apache.hadoop.yarn.server.timelineservice.storage.flow.FlowActivityRowKeyPrefix
All Implemented Interfaces:
RowKeyPrefix<FlowActivityRowKey>

public class FlowActivityRowKeyPrefix extends FlowActivityRowKey implements RowKeyPrefix<FlowActivityRowKey>
A prefix partial rowkey for flow activities.
  • Constructor Details

    • FlowActivityRowKeyPrefix

      public FlowActivityRowKeyPrefix(String clusterId, Long dayTs)
      Constructs a row key prefix for the flow activity table as follows: clusterId!dayTimestamp!.
      Parameters:
      clusterId - Cluster Id.
      dayTs - Start of the day timestamp.
    • FlowActivityRowKeyPrefix

      public FlowActivityRowKeyPrefix(String clusterId)
      Constructs a row key prefix for the flow activity table as follows: clusterId!.
      Parameters:
      clusterId - identifying the cluster
  • 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<FlowActivityRowKey>
      Returns:
      a prefix of the following form fist!second!...!last!