Enum Class FlowRunColumnPrefix

java.lang.Object
java.lang.Enum<FlowRunColumnPrefix>
org.apache.hadoop.yarn.server.timelineservice.storage.flow.FlowRunColumnPrefix
All Implemented Interfaces:
Serializable, Comparable<FlowRunColumnPrefix>, Constable, ColumnPrefix<FlowRunTable>

public enum FlowRunColumnPrefix extends Enum<FlowRunColumnPrefix> implements ColumnPrefix<FlowRunTable>
Identifies partially qualified columns for the FlowRunTable.
  • Enum Constant Details

  • Method Details

    • values

      public static FlowRunColumnPrefix[] 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 FlowRunColumnPrefix 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
    • getColumnPrefix

      public String getColumnPrefix()
      Returns:
      the column name value
    • getColumnPrefixBytes

      public byte[] getColumnPrefixBytes()
    • getColumnPrefixBytes

      public byte[] getColumnPrefixBytes(byte[] qualifierPrefix)
      Specified by:
      getColumnPrefixBytes in interface ColumnPrefix<FlowRunTable>
      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<FlowRunTable>
      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<FlowRunTable>
      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<FlowRunTable>
      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<FlowRunTable>
      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<FlowRunTable>
      Returns:
      true if the cell timestamp needs to be supplemented
    • getAttribute

      public AggregationOperation getAttribute()
    • getValueConverter

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