public final class HBaseTimelineStorageUtils extends Object
Modifier and Type | Field and Description |
---|---|
static long |
MILLIS_ONE_DAY
milliseconds in one day.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
calculateTheClosestNextRowKeyForPrefix(byte[] rowKeyPrefix)
Given a row key prefix stored in a byte array, return a byte array for its
immediate next row key.
|
static org.apache.hadoop.conf.Configuration |
getTimelineServiceHBaseConf(org.apache.hadoop.conf.Configuration conf) |
static void |
setMetricsTimeRange(org.apache.hadoop.hbase.client.Query query,
byte[] metricsCf,
long tsBegin,
long tsEnd) |
public static final long MILLIS_ONE_DAY
public static org.apache.hadoop.conf.Configuration getTimelineServiceHBaseConf(org.apache.hadoop.conf.Configuration conf) throws MalformedURLException
conf
- YARN configuration. Used to see if there is an explicit config
pointing to the HBase config file to read. It should not be null
or a NullPointerException will be thrown.MalformedURLException
- if a timeline service HBase configuration URL
is specified but is a malformed URL.public static byte[] calculateTheClosestNextRowKeyForPrefix(byte[] rowKeyPrefix)
rowKeyPrefix
- The provided row key prefix, represented in an array.public static void setMetricsTimeRange(org.apache.hadoop.hbase.client.Query query, byte[] metricsCf, long tsBegin, long tsEnd)
Copyright © 2022 Apache Software Foundation. All rights reserved.