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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConfig column stores configuration with config key as the column name.Lifecycle events for an application.To store TimelineEntity info values.To store TimelineEntity getIsRelatedToEntities values.Metrics are stored with the metric name as the column name.To store TimelineEntity getRelatesToEntities values. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns column family name(as bytes) associated with this column prefix.byte[]getColumnPrefixBytes(byte[] qualifierPrefix) byte[]getColumnPrefixBytes(String qualifierPrefix) byte[]Get the column prefix in bytes.getCombinedAttrsWithAggr(Attribute... attributes) Return attributed combined with aggregations, if any.Returns value converter implementation associated with this column prefix.booleanReturn true if the cell timestamp needs to be supplemented.static ApplicationColumnPrefixReturns the enum constant of this class with the specified name.static ApplicationColumnPrefix[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IS_RELATED_TO
To store TimelineEntity getIsRelatedToEntities values. -
RELATES_TO
To store TimelineEntity getRelatesToEntities values. -
INFO
To store TimelineEntity info values. -
EVENT
Lifecycle events for an application. -
CONFIG
Config column stores configuration with config key as the column name. -
METRIC
Metrics are stored with the metric name as the column name.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getColumnPrefixBytes
public byte[] getColumnPrefixBytes(byte[] qualifierPrefix) - Specified by:
getColumnPrefixBytesin interfaceColumnPrefix<ApplicationTable>- Parameters:
qualifierPrefix- Column qualifier or prefix of qualifier.- Returns:
- a byte array encoding column prefix and qualifier/prefix passed.
-
getColumnPrefixBytes
- Specified by:
getColumnPrefixBytesin interfaceColumnPrefix<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:ColumnPrefixReturns column family name(as bytes) associated with this column prefix.- Specified by:
getColumnFamilyBytesin interfaceColumnPrefix<ApplicationTable>- Returns:
- a byte array encoding column family for this prefix.
-
getColumnPrefixInBytes
public byte[] getColumnPrefixInBytes()Description copied from interface:ColumnPrefixGet the column prefix in bytes.- Specified by:
getColumnPrefixInBytesin interfaceColumnPrefix<ApplicationTable>- Returns:
- column prefix in bytes
-
getCombinedAttrsWithAggr
Description copied from interface:ColumnPrefixReturn attributed combined with aggregations, if any.- Specified by:
getCombinedAttrsWithAggrin interfaceColumnPrefix<ApplicationTable>- Returns:
- an array of Attributes
-
supplementCellTimeStamp
public boolean supplementCellTimeStamp()Description copied from interface:ColumnPrefixReturn true if the cell timestamp needs to be supplemented.- Specified by:
supplementCellTimeStampin interfaceColumnPrefix<ApplicationTable>- Returns:
- true if the cell timestamp needs to be supplemented
-
getValueConverter
Description copied from interface:ColumnPrefixReturns value converter implementation associated with this column prefix.- Specified by:
getValueConverterin interfaceColumnPrefix<ApplicationTable>- Returns:
- a
ValueConverterimplementation.
-