public class FlowActivityRowKey extends Object
| Modifier | Constructor and Description |
|---|---|
|
FlowActivityRowKey(String clusterId,
Long dayTs,
String userId,
String flowName) |
protected |
FlowActivityRowKey(String clusterId,
Long timestamp,
String userId,
String flowName,
boolean convertDayTsToTopOfDay) |
| Modifier and Type | Method and Description |
|---|---|
String |
getClusterId() |
Long |
getDayTimestamp() |
String |
getFlowName() |
byte[] |
getRowKey()
Constructs a row key for the flow activity table as follows:
clusterId!dayTimestamp!user!flowName. |
String |
getRowKeyAsString()
Constructs a row key for the flow activity table as follows:
clusterId!dayTimestamp!user!flowName. |
String |
getUserId() |
static FlowActivityRowKey |
parseRowKey(byte[] rowKey)
Given the raw row key as bytes, returns the row key as an object.
|
static FlowActivityRowKey |
parseRowKeyFromString(String encodedRowKey)
Given the raw row key as string, returns the row key as an object.
|
public FlowActivityRowKey(String clusterId, Long dayTs, String userId, String flowName)
clusterId - identifying the clusterdayTs - to be converted to the top of the day timestampuserId - identifying userflowName - identifying the flowprotected FlowActivityRowKey(String clusterId, Long timestamp, String userId, String flowName, boolean convertDayTsToTopOfDay)
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 timestamppublic String getClusterId()
public Long getDayTimestamp()
public String getUserId()
public String getFlowName()
public byte[] getRowKey()
clusterId!dayTimestamp!user!flowName.public static FlowActivityRowKey parseRowKey(byte[] rowKey)
rowKey - Byte representation of row key.public String getRowKeyAsString()
clusterId!dayTimestamp!user!flowName.public static FlowActivityRowKey parseRowKeyFromString(String encodedRowKey)
encodedRowKey - String representation of row key.Copyright © 2008–2022 Apache Software Foundation. All rights reserved.