public final class HBaseTimelineSchemaUtils extends Object
Modifier and Type | Field and Description |
---|---|
static long |
MILLIS_ONE_DAY
milliseconds in one day.
|
Modifier and Type | Method and Description |
---|---|
static Attribute[] |
combineAttributes(Attribute[] attributes,
AggregationOperation aggOp)
Combines the input array of attributes and the input aggregation operation
into a new array of attributes.
|
static String |
convertApplicationIdToString(org.apache.hadoop.yarn.api.records.ApplicationId appId)
A utility method that converts ApplicationId to string without using
FastNumberFormat in order to avoid the incompatibility issue caused
by mixing hadoop-common 2.5.1 and hadoop-yarn-api 3.0 in this module.
|
static long |
getTopOfTheDayTimestamp(long ts)
returns the timestamp of that day's start (which is midnight 00:00:00 AM)
for a given input timestamp.
|
static int |
invertInt(int key)
Converts an int into it's inverse int to be used in (row) keys
where we want to have the largest int value in the top of the table
(scans start at the largest int first).
|
static boolean |
isIntegralValue(Object obj)
Checks if passed object is of integral type(Short/Integer/Long).
|
public static final long MILLIS_ONE_DAY
public static Attribute[] combineAttributes(Attribute[] attributes, AggregationOperation aggOp)
attributes
- Attributes to be combined.aggOp
- Aggregation operation.public static int invertInt(int key)
key
- value to be inverted so that the latest version will be first in
a scan.public static long getTopOfTheDayTimestamp(long ts)
ts
- Timestamp.public static boolean isIntegralValue(Object obj)
obj
- Object to be checked.public static String convertApplicationIdToString(org.apache.hadoop.yarn.api.records.ApplicationId appId)
appId
- application idCopyright © 2020 Apache Software Foundation. All rights reserved.