net.opentsdb.core
public static final class Internal.Cell extends Object implements Comparable<Internal.Cell>
This is simply a glorified pair of (qualifier, value) that's comparable. Only the qualifier is used to make comparisons.
Modifier and Type | Field and Description |
---|---|
static Internal.Cell |
SKIP
Tombstone used as a helper during the complex compaction.
|
Constructor and Description |
---|
Internal.Cell(byte[] qualifier,
byte[] value)
Constructor that sets the cell
|
Modifier and Type | Method and Description |
---|---|
long |
absoluteTimestamp(long base_time)
Returns the timestamp as stored in HBase for the cell, i.e.
|
int |
compareTo(Internal.Cell other)
Compares the qualifiers of two cells
|
boolean |
equals(Object o)
Determines if the cells are equal based on their qualifier
|
int |
hashCode() |
boolean |
isInteger() |
Number |
parseValue()
Returns the value of the cell as a Number for passing to a StringBuffer
|
byte[] |
qualifier() |
long |
timestamp(long base_time)
Returns the Unix epoch timestamp in milliseconds
|
String |
toString()
Prints the raw data of the qualifier and value
|
byte[] |
value() |
public static final Internal.Cell SKIP
public Internal.Cell(byte[] qualifier, byte[] value)
qualifier
- Qualifier to storevalue
- Value to storepublic int compareTo(Internal.Cell other)
compareTo
in interface Comparable<Internal.Cell>
public boolean equals(Object o)
public int hashCode()
public String toString()
public byte[] qualifier()
public byte[] value()
public Number parseValue()
IllegalDataException
- if the value is invalidpublic long timestamp(long base_time)
base_time
- Row key base time to add the offset topublic long absoluteTimestamp(long base_time)
base_time
- Row key base time to add the offset topublic boolean isInteger()