0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Types | Private Attributes | List of all members
Hypertable::PhantomRangeMap Class Reference

Provides a mapping from table name to TableInfo object. More...

#include <PhantomRangeMap.h>

Collaboration diagram for Hypertable::PhantomRangeMap:
Collaboration graph
[legend]

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
 

Detailed Description

Provides a mapping from table name to TableInfo object.

Definition at line 45 of file PhantomRangeMap.h.

Member Typedef Documentation

Definition at line 92 of file PhantomRangeMap.h.

Constructor & Destructor Documentation

PhantomRangeMap::PhantomRangeMap ( int  plan_generation)

Definition at line 32 of file PhantomRangeMap.cc.

virtual Hypertable::PhantomRangeMap::~PhantomRangeMap ( )
inlinevirtual

Definition at line 48 of file PhantomRangeMap.h.

Member Function Documentation

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.

Parameters
range_specQualified range spec
phantom_rangephantom range

Definition at line 56 of file PhantomRangeMap.cc.

int Hypertable::PhantomRangeMap::get_plan_generation ( )
inline

Definition at line 76 of file PhantomRangeMap.h.

TableInfoMapPtr Hypertable::PhantomRangeMap::get_tableinfo_map ( )
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.

Parameters
rangeQualified range spec
staterange state
schematable schema
fragmentsfragments to be played

Definition at line 45 of file PhantomRangeMap.cc.

bool PhantomRangeMap::loaded ( ) const

Definition at line 73 of file PhantomRangeMap.cc.

void Hypertable::PhantomRangeMap::lock ( )
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.

void Hypertable::PhantomRangeMap::unlock ( )
inline

Definition at line 51 of file PhantomRangeMap.h.

Member Data Documentation

CharArena Hypertable::PhantomRangeMap::m_arena
private

Definition at line 95 of file PhantomRangeMap.h.

Map Hypertable::PhantomRangeMap::m_map
private

Definition at line 97 of file PhantomRangeMap.h.

std::mutex Hypertable::PhantomRangeMap::m_mutex
private

Definition at line 94 of file PhantomRangeMap.h.

int Hypertable::PhantomRangeMap::m_plan_generation
private

Definition at line 98 of file PhantomRangeMap.h.

int Hypertable::PhantomRangeMap::m_state
private

Definition at line 99 of file PhantomRangeMap.h.

TableInfoMapPtr Hypertable::PhantomRangeMap::m_tableinfo_map
private

Definition at line 96 of file PhantomRangeMap.h.


The documentation for this class was generated from the following files: