public final class HBaseTimelineStorageUtils extends Object
| 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 org.apache.hadoop.conf.Configuration getTimelineServiceHBaseConf(org.apache.hadoop.conf.Configuration conf)
throws IOException
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.IOException - if a timeline service HBase configuration URL
is specified but unable to read it.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 © 2008–2022 Apache Software Foundation. All rights reserved.