Enum Class SubApplicationColumnPrefix
java.lang.Object
java.lang.Enum<SubApplicationColumnPrefix>
org.apache.hadoop.yarn.server.timelineservice.storage.subapplication.SubApplicationColumnPrefix
- All Implemented Interfaces:
Serializable,Comparable<SubApplicationColumnPrefix>,Constable,ColumnPrefix<SubApplicationTable>
public enum SubApplicationColumnPrefix
extends Enum<SubApplicationColumnPrefix>
implements ColumnPrefix<SubApplicationTable>
Identifies partially qualified columns for the sub app 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 entity.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 SubApplicationColumnPrefixReturns the enum constant of this class with the specified name.static SubApplicationColumnPrefix[]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 entity. -
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
-
getColumnPrefix
- Returns:
- the column name value
-
getColumnPrefixBytes
public byte[] getColumnPrefixBytes(byte[] qualifierPrefix) - Specified by:
getColumnPrefixBytesin interfaceColumnPrefix<SubApplicationTable>- Parameters:
qualifierPrefix- Column qualifier or prefix of qualifier.- Returns:
- a byte array encoding column prefix and qualifier/prefix passed.
-
getColumnPrefixBytes
- Specified by:
getColumnPrefixBytesin interfaceColumnPrefix<SubApplicationTable>- Parameters:
qualifierPrefix- Column qualifier or prefix of qualifier.- Returns:
- a byte array encoding column prefix and qualifier/prefix passed.
-
getColumnPrefixInBytes
public byte[] getColumnPrefixInBytes()Description copied from interface:ColumnPrefixGet the column prefix in bytes.- Specified by:
getColumnPrefixInBytesin interfaceColumnPrefix<SubApplicationTable>- Returns:
- column prefix in bytes
-
getColumnFamilyBytes
public byte[] getColumnFamilyBytes()Description copied from interface:ColumnPrefixReturns column family name(as bytes) associated with this column prefix.- Specified by:
getColumnFamilyBytesin interfaceColumnPrefix<SubApplicationTable>- Returns:
- a byte array encoding column family for this prefix.
-
getValueConverter
Description copied from interface:ColumnPrefixReturns value converter implementation associated with this column prefix.- Specified by:
getValueConverterin interfaceColumnPrefix<SubApplicationTable>- Returns:
- a
ValueConverterimplementation.
-
getCombinedAttrsWithAggr
Description copied from interface:ColumnPrefixReturn attributed combined with aggregations, if any.- Specified by:
getCombinedAttrsWithAggrin interfaceColumnPrefix<SubApplicationTable>- 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<SubApplicationTable>- Returns:
- true if the cell timestamp needs to be supplemented
-