Provides a mapping from table name to TableInfo object. More...
#include <PhantomRangeMap.h>
Public Member Functions | |
PhantomRangeMap (int plan_generation) | |
virtual | ~PhantomRangeMap () |
void | lock () |
void | unlock () |
void | reset (int plan_generation) |
void | insert (const QualifiedRangeSpec &range, const RangeState &state, SchemaPtr schema, const vector< int32_t > &fragments) |
Inserts a phantom range. More... | |
void | get (const QualifiedRangeSpec &range_spec, PhantomRangePtr &phantom_range) |
Gets the phantom range if it is in map. More... | |
TableInfoMapPtr | get_tableinfo_map () |
int | get_plan_generation () |
bool | initial () const |
void | set_loaded () |
bool | loaded () const |
bool | replayed () const |
void | set_prepared () |
bool | prepared () const |
void | set_committed () |
bool | committed () const |
Private Types | |
typedef std::map < QualifiedRangeSpec, PhantomRangePtr > | Map |
Private Attributes | |
std::mutex | m_mutex |
CharArena | m_arena |
TableInfoMapPtr | m_tableinfo_map |
Map | m_map |
int | m_plan_generation |
int | m_state |
Provides a mapping from table name to TableInfo object.
Definition at line 45 of file PhantomRangeMap.h.
|
private |
Definition at line 92 of file PhantomRangeMap.h.
PhantomRangeMap::PhantomRangeMap | ( | int | plan_generation | ) |
Definition at line 32 of file PhantomRangeMap.cc.
|
inlinevirtual |
Definition at line 48 of file PhantomRangeMap.h.
bool PhantomRangeMap::committed | ( | ) | const |
Definition at line 96 of file PhantomRangeMap.cc.
void PhantomRangeMap::get | ( | const QualifiedRangeSpec & | range_spec, |
PhantomRangePtr & | phantom_range | ||
) |
Gets the phantom range if it is in map.
range_spec | Qualified range spec |
phantom_range | phantom range |
Definition at line 56 of file PhantomRangeMap.cc.
|
inline |
Definition at line 76 of file PhantomRangeMap.h.
|
inline |
Definition at line 74 of file PhantomRangeMap.h.
bool PhantomRangeMap::initial | ( | ) | const |
Definition at line 64 of file PhantomRangeMap.cc.
void PhantomRangeMap::insert | ( | const QualifiedRangeSpec & | range, |
const RangeState & | state, | ||
SchemaPtr | schema, | ||
const vector< int32_t > & | fragments | ||
) |
Inserts a phantom range.
range | Qualified range spec |
state | range state |
schema | table schema |
fragments | fragments to be played |
Definition at line 45 of file PhantomRangeMap.cc.
bool PhantomRangeMap::loaded | ( | ) | const |
Definition at line 73 of file PhantomRangeMap.cc.
|
inline |
Definition at line 50 of file PhantomRangeMap.h.
bool PhantomRangeMap::prepared | ( | ) | const |
Definition at line 87 of file PhantomRangeMap.cc.
bool PhantomRangeMap::replayed | ( | ) | const |
Definition at line 78 of file PhantomRangeMap.cc.
void PhantomRangeMap::reset | ( | int | plan_generation | ) |
Definition at line 37 of file PhantomRangeMap.cc.
void PhantomRangeMap::set_committed | ( | ) |
Definition at line 91 of file PhantomRangeMap.cc.
void PhantomRangeMap::set_loaded | ( | ) |
Definition at line 68 of file PhantomRangeMap.cc.
void PhantomRangeMap::set_prepared | ( | ) |
Definition at line 82 of file PhantomRangeMap.cc.
|
inline |
Definition at line 51 of file PhantomRangeMap.h.
|
private |
Definition at line 95 of file PhantomRangeMap.h.
|
private |
Definition at line 97 of file PhantomRangeMap.h.
|
private |
Definition at line 94 of file PhantomRangeMap.h.
|
private |
Definition at line 98 of file PhantomRangeMap.h.
|
private |
Definition at line 99 of file PhantomRangeMap.h.
|
private |
Definition at line 96 of file PhantomRangeMap.h.