Represents a key in vkdb.
More...
#include <time_series_key.h>
Represents a key in vkdb.
Definition at line 86 of file time_series_key.h.
◆ TimeSeriesKey() [1/2]
| vkdb::TimeSeriesKey::TimeSeriesKey |
( |
std::string && | str | ) |
|
|
explicit |
Construct a new TimeSeriesKey object from the given string.
- Parameters
-
| str | The string representation of the key. |
- Exceptions
-
| std::exception | If the string is invalid. |
Definition at line 4 of file time_series_key.cpp.
◆ TimeSeriesKey() [2/2]
| vkdb::TimeSeriesKey::TimeSeriesKey |
( |
Timestamp | timestamp, |
|
|
Metric | metric, |
|
|
TagTable | tags ) |
|
explicitnoexcept |
Construct a new Time Series Key objec from the given timestamp, metric, and tags.
- Parameters
-
| timestamp | Timestamp. |
| metric | Metric. |
| tags | Tags. |
Definition at line 27 of file time_series_key.cpp.
◆ metric()
| Metric vkdb::TimeSeriesKey::metric |
( |
| ) |
const |
|
nodiscardnoexcept |
◆ operator!=()
| bool vkdb::TimeSeriesKey::operator!= |
( |
const TimeSeriesKey & | other | ) |
const |
|
nodiscardnoexcept |
Inequality operator.
- Parameters
-
- Returns
- true If the keys are not equal.
-
false If the keys are equal.
Definition at line 51 of file time_series_key.cpp.
◆ operator<()
| bool vkdb::TimeSeriesKey::operator< |
( |
const TimeSeriesKey & | other | ) |
const |
|
nodiscardnoexcept |
Less-than operator.
First, the keys are checked to see if they are the minimum or maximum keys. If they aren't, the comparison is done based on the key's properties. The comparison is done in the following order: The comparison is done in the following order:
- Timestamp.
- Metric.
- Tags.
- Parameters
-
- Returns
- true If this key is less than the other key.
-
false If this key is not less than the other key.
Definition at line 55 of file time_series_key.cpp.
◆ operator<=()
| bool vkdb::TimeSeriesKey::operator<= |
( |
const TimeSeriesKey & | other | ) |
const |
|
nodiscardnoexcept |
Less-than-or-equal-to operator.
- Parameters
-
- Returns
- true If this key is less than or equal to the other key.
-
false If this key is not less than or equal to the other key.
Definition at line 81 of file time_series_key.cpp.
◆ operator==()
| bool vkdb::TimeSeriesKey::operator== |
( |
const TimeSeriesKey & | other | ) |
const |
|
nodiscardnoexcept |
Equality operator.
- Parameters
-
- Returns
- true If the keys are equal.
-
false If the keys are not equal.
Definition at line 47 of file time_series_key.cpp.
◆ operator>()
| bool vkdb::TimeSeriesKey::operator> |
( |
const TimeSeriesKey & | other | ) |
const |
|
nodiscardnoexcept |
Greater-than operator.
- Parameters
-
- Returns
- true If this key is greater than the other key.
-
false If this key is not greater than the other key.
Definition at line 77 of file time_series_key.cpp.
◆ operator>=()
| bool vkdb::TimeSeriesKey::operator>= |
( |
const TimeSeriesKey & | other | ) |
const |
|
nodiscardnoexcept |
Greater-than-or-equal-to operator.
- Parameters
-
- Returns
- true If this key is greater than or equal to the other key.
-
false If this key is not greater than or equal to the other key.
Definition at line 85 of file time_series_key.cpp.
◆ str()
| std::string vkdb::TimeSeriesKey::str |
( |
| ) |
const |
|
nodiscardnoexcept |
Get the string representation of the key.
- Returns
- std::string The string representation of the key.
Definition at line 101 of file time_series_key.cpp.
◆ tags()
| const TagTable & vkdb::TimeSeriesKey::tags |
( |
| ) |
const |
|
nodiscardnoexcept |
◆ timestamp()
| Timestamp vkdb::TimeSeriesKey::timestamp |
( |
| ) |
const |
|
nodiscardnoexcept |
◆ MAX_METRIC_LENGTH
| auto vkdb::TimeSeriesKey::MAX_METRIC_LENGTH {15} |
|
staticconstexpr |
◆ TIMESTAMP_WIDTH
| auto vkdb::TimeSeriesKey::TIMESTAMP_WIDTH {20} |
|
staticconstexpr |
The documentation for this class was generated from the following files: