#include <glog/logging.h>
#include <stdint.h>
#include <functional>
#include <string>
#include <utility>
#include <vector>
#include "hermes_version.h"
Go to the source code of this file.
|
enum class | hermes::api::PlacementPolicy { kRandom
, kRoundRobin
, kMinimizeIoTime
, kNone
} |
|
enum class | hermes::ProcessKind { hermes::kApp
, hermes::kHermes
, hermes::kCount
} |
|
enum | hermes::ArenaType { hermes::kArenaType_BufferPool
, hermes::kArenaType_MetaData
, hermes::kArenaType_Transient
, hermes::kArenaType_Count
} |
|
enum class | hermes::api::TraitType : u8 { META = 0
, DATA = 1
, PERSIST = 2
} |
| Trait types. More...
|
|
◆ KILOBYTES
#define KILOBYTES |
( |
|
n | ) |
(((size_t)n) * 1024) |
◆ MEGABYTES
#define MEGABYTES |
( |
|
n | ) |
(((size_t)n) * 1024 * 1024) |
◆ GIGABYTES
#define GIGABYTES |
( |
|
n | ) |
(((size_t)n) * 1024UL * 1024UL * 1024UL) |
◆ HERMES_NOT_IMPLEMENTED_YET
#define HERMES_NOT_IMPLEMENTED_YET LOG(FATAL) << __func__ << " not implemented yet\n" |
A definition for logging something that is not yet implemented
◆ HERMES_INVALID_CODE_PATH
#define HERMES_INVALID_CODE_PATH LOG(FATAL) << "Invalid code path." << std::endl |
A definition for logging invalid code path
◆ Blob
A Blob is simply an uninterpreted vector of bytes.
◆ PlacementPolicy
Supported data placement policies
Enumerator |
---|
kRandom | Random blob placement
|
kRoundRobin | Round-Robin (around devices) blob placement
|
kMinimizeIoTime | LP-based blob placement, minimize I/O time
|
kNone | No DPE for cases we want it disabled
|
◆ TraitType
Trait types.
Enumerator |
---|
META | The Trait only modifies metadata.
|
DATA | The Trait modifies raw data (Blobs).
|