Class FlowActivityRowKey
java.lang.Object
org.apache.hadoop.yarn.server.timelineservice.storage.flow.FlowActivityRowKey
- Direct Known Subclasses:
FlowActivityRowKeyPrefix
Represents a rowkey for the flow activity table.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionFlowActivityRowKey(String clusterId, Long dayTs, String userId, String flowName) protectedFlowActivityRowKey(String clusterId, Long timestamp, String userId, String flowName, boolean convertDayTsToTopOfDay) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Constructs a row key for the flow activity table as follows:clusterId!dayTimestamp!user!flowName.Constructs a row key for the flow activity table as follows:clusterId!dayTimestamp!user!flowName.static FlowActivityRowKeyparseRowKey(byte[] rowKey) Given the raw row key as bytes, returns the row key as an object.static FlowActivityRowKeyparseRowKeyFromString(String encodedRowKey) Given the raw row key as string, returns the row key as an object.
-
Constructor Details
-
FlowActivityRowKey
- Parameters:
clusterId- identifying the clusterdayTs- to be converted to the top of the day timestampuserId- identifying userflowName- identifying the flow
-
FlowActivityRowKey
protected FlowActivityRowKey(String clusterId, Long timestamp, String userId, String flowName, boolean convertDayTsToTopOfDay) - Parameters:
clusterId- identifying the clustertimestamp- when the flow activity happened. May be converted to the top of the day depending on the convertDayTsToTopOfDay argument.userId- identifying userflowName- identifying the flowconvertDayTsToTopOfDay- if true and timestamp isn't null, then timestamp will be converted to the top-of-the day timestamp
-
-
Method Details
-
getClusterId
-
getDayTimestamp
-
getUserId
-
getFlowName
-
getRowKey
public byte[] getRowKey()Constructs a row key for the flow activity table as follows:clusterId!dayTimestamp!user!flowName.- Returns:
- byte array for the row key
-
parseRowKey
Given the raw row key as bytes, returns the row key as an object.- Parameters:
rowKey- Byte representation of row key.- Returns:
- A FlowActivityRowKey object.
-
getRowKeyAsString
Constructs a row key for the flow activity table as follows:clusterId!dayTimestamp!user!flowName.- Returns:
- String representation of row key
-
parseRowKeyFromString
Given the raw row key as string, returns the row key as an object.- Parameters:
encodedRowKey- String representation of row key.- Returns:
- A FlowActivityRowKey object.
-