Class ColumnHelper
java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnHelper
This class is meant to be used only by explicit Columns, and not directly to
write by clients.
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]getColumnQualifier(byte[] columnPrefixBytes, byte[] qualifier) static byte[]getColumnQualifier(byte[] columnPrefixBytes, long qualifier) static byte[]getColumnQualifier(byte[] columnPrefixBytes, String qualifier)
-
Method Details
-
getColumnQualifier
- Parameters:
columnPrefixBytes- The byte representation for the column prefix. Should not containSeparator.QUALIFIERS.qualifier- for the remainder of the column.Separator.QUALIFIERSis 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 containSeparator.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 containSeparator.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.
-