32 PhantomRangeMap::PhantomRangeMap(
int plan_generation) :
33 m_plan_generation(plan_generation), m_state(0) {
40 for (Map::iterator iter =
m_map.begin(); iter !=
m_map.end(); ++iter)
41 iter->second->purge_incomplete_fragments();
47 const vector<int32_t> &fragments) {
52 make_shared<PhantomRange>(copied_spec, copied_state, schema, fragments);
57 Map::iterator it =
m_map.find(spec);
58 if (it ==
m_map.end())
61 phantom_range = it->second;
Declarations for QualifiedRangeSpec and QualifiedRangeSpecManaged.
Compatibility Macros for C/C++.
void get(const QualifiedRangeSpec &range_spec, PhantomRangePtr &phantom_range)
Gets the phantom range if it is in map.
TableInfoMapPtr m_tableinfo_map
std::shared_ptr< PhantomRange > PhantomRangePtr
Shared smart pointer to PhantomRange.
void reset(int plan_generation)
Qualified (with table identifier) range specification.
std::shared_ptr< Schema > SchemaPtr
Smart pointer to Schema.
void insert(const QualifiedRangeSpec &range, const RangeState &state, SchemaPtr schema, const vector< int32_t > &fragments)
Inserts a phantom range.