Enum Class ApplicationColumnPrefix

java.lang.Object
java.lang.Enum<ApplicationColumnPrefix>
org.apache.hadoop.yarn.server.timelineservice.storage.application.ApplicationColumnPrefix
All Implemented Interfaces:
Serializable, Comparable<ApplicationColumnPrefix>, Constable, ColumnPrefix<ApplicationTable>

public enum ApplicationColumnPrefix extends Enum<ApplicationColumnPrefix> implements ColumnPrefix<ApplicationTable>
Identifies partially qualified columns for the application table.
  • Enum Constant Details

    • RELATES_TO

      public static final ApplicationColumnPrefix RELATES_TO
      To store TimelineEntity getRelatesToEntities values.
    • INFO

      public static final ApplicationColumnPrefix INFO
      To store TimelineEntity info values.
    • EVENT

      public static final ApplicationColumnPrefix EVENT
      Lifecycle events for an application.
    • CONFIG

      public static final ApplicationColumnPrefix CONFIG
      Config column stores configuration with config key as the column name.
    • METRIC

      public static final ApplicationColumnPrefix METRIC
      Metrics are stored with the metric name as the column name.
  • Method Details

    • values

      public static ApplicationColumnPrefix[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ApplicationColumnPrefix valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getColumnPrefixBytes

      public byte[] getColumnPrefixBytes(byte[] qualifierPrefix)
      Specified by:
      getColumnPrefixBytes in interface ColumnPrefix<ApplicationTable>
      Parameters:
      qualifierPrefix - Column qualifier or prefix of qualifier.
      Returns:
      a byte array encoding column prefix and qualifier/prefix passed.
    • getColumnPrefixBytes

      public byte[] getColumnPrefixBytes(String qualifierPrefix)
      Specified by:
      getColumnPrefixBytes in interface ColumnPrefix<ApplicationTable>
      Parameters:
      qualifierPrefix - Column qualifier or prefix of qualifier.
      Returns:
      a byte array encoding column prefix and qualifier/prefix passed.
    • getColumnFamilyBytes

      public byte[] getColumnFamilyBytes()
      Description copied from interface: ColumnPrefix
      Returns column family name(as bytes) associated with this column prefix.
      Specified by:
      getColumnFamilyBytes in interface ColumnPrefix<ApplicationTable>
      Returns:
      a byte array encoding column family for this prefix.
    • getColumnPrefixInBytes

      public byte[] getColumnPrefixInBytes()
      Description copied from interface: ColumnPrefix
      Get the column prefix in bytes.
      Specified by:
      getColumnPrefixInBytes in interface ColumnPrefix<ApplicationTable>
      Returns:
      column prefix in bytes
    • getCombinedAttrsWithAggr

      public Attribute[] getCombinedAttrsWithAggr(Attribute... attributes)
      Description copied from interface: ColumnPrefix
      Return attributed combined with aggregations, if any.
      Specified by:
      getCombinedAttrsWithAggr in interface ColumnPrefix<ApplicationTable>
      Returns:
      an array of Attributes
    • supplementCellTimeStamp

      public boolean supplementCellTimeStamp()
      Description copied from interface: ColumnPrefix
      Return true if the cell timestamp needs to be supplemented.
      Specified by:
      supplementCellTimeStamp in interface ColumnPrefix<ApplicationTable>
      Returns:
      true if the cell timestamp needs to be supplemented
    • getValueConverter

      public ValueConverter getValueConverter()
      Description copied from interface: ColumnPrefix
      Returns value converter implementation associated with this column prefix.
      Specified by:
      getValueConverter in interface ColumnPrefix<ApplicationTable>
      Returns:
      a ValueConverter implementation.