Hermes
0.9.5-beta
Hierarchical Distributed I/O Buffering System
|
#include <buffer_pool.h>
Public Attributes | |
struct { | |
u32 header_index | |
u32 node_id | |
} | bits |
u64 | as_int |
A unique identifier for any buffer in the system.
This number is unique for each buffer when read as a 64 bit integer. The top 32 bits signify the node that "owns" the buffer, and the bottom 32 bits form an index into the array of BufferHeaders in the BufferPool on that node. Node indexing begins at 1 so that a BufferID of 0 represents the NULL BufferID.
u32 hermes::BufferID::header_index |
An index into the BufferHeaders array in the BufferPool on node node_id
.
u32 hermes::BufferID::node_id |
The node identifier where this BufferID's BufferHeader resides (1-based index).
struct { ... } hermes::BufferID::bits |
A structure to represent 64 bits with 32-bit header index and node id
u64 hermes::BufferID::as_int |
A single integer that uniquely identifies a buffer.