![]() |
Storage Engine API
|
This is used for storing a namespace on disk in a fixed witdh form and should only be used for that, not for passing internally. More...
#include <namespace.h>
This is used for storing a namespace on disk in a fixed witdh form and should only be used for that, not for passing internally.
If you need to pass internally, please use NamespaceString.
Public Types | |
enum | MaxNsLenValue { MaxNsLenWithNUL = 128, MaxNsLen = MaxNsLenWithNUL - 1, MaxNsCollectionLen = MaxNsLen - 7 } |
Public Member Functions | |
Namespace (StringData ns) | |
Namespace & | operator= (StringData ns) |
void | kill () |
bool | operator== (const char *r) const |
bool | operator== (const Namespace &r) const |
bool | operator!= (const char *r) const |
bool | operator!= (const Namespace &r) const |
bool | hasDollarSign () const |
int | hash () const |
Value returned is always > 0. More... | |
size_t | size () const |
std::string | toString () const |
operator std::string () const | |
std::string | extraName (int i) const |
NamespaceDetails::Extra was added after fact to allow chaining of data blocks to support more than 10 indexes (more than 10 IndexDetails). More... | |
bool | isExtra () const |
Returns whether the namespace ends with "$extr...". More... | |
Private Attributes | |
char | buf [MaxNsLenWithNUL] |
|
inline |
|
inline |
NamespaceDetails::Extra was added after fact to allow chaining of data blocks to support more than 10 indexes (more than 10 IndexDetails).
It's a bit hacky because of this late addition with backward file support.
|
inline |
|
inline |
Value returned is always > 0.
|
inline |
Returns whether the namespace ends with "$extr...".
When true it represents an extra block not a normal NamespaceDetails block.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |