java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnHelper

public final class ColumnHelper extends Object
This class is meant to be used only by explicit Columns, and not directly to write by clients.
  • Method Details

    • getColumnQualifier

      public static byte[] getColumnQualifier(byte[] columnPrefixBytes, String qualifier)
      Parameters:
      columnPrefixBytes - The byte representation for the column prefix. Should not contain Separator.QUALIFIERS.
      qualifier - for the remainder of the column. Separator.QUALIFIERS is permissible in the qualifier as it is joined only with the column prefix bytes.
      Returns:
      fully sanitized column qualifier that is a combination of prefix and qualifier. If prefix is null, the result is simply the encoded qualifier without any separator.
    • getColumnQualifier

      public static byte[] getColumnQualifier(byte[] columnPrefixBytes, long qualifier)
      Parameters:
      columnPrefixBytes - The byte representation for the column prefix. Should not contain Separator.QUALIFIERS.
      qualifier - for the remainder of the column.
      Returns:
      fully sanitized column qualifier that is a combination of prefix and qualifier. If prefix is null, the result is simply the encoded qualifier without any separator.
    • getColumnQualifier

      public static byte[] getColumnQualifier(byte[] columnPrefixBytes, byte[] qualifier)
      Parameters:
      columnPrefixBytes - The byte representation for the column prefix. Should not contain Separator.QUALIFIERS.
      qualifier - the byte representation for the remainder of the column.
      Returns:
      fully sanitized column qualifier that is a combination of prefix and qualifier. If prefix is null, the result is simply the encoded qualifier without any separator.