OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{ForeignStorageMgr.cpp} Namespace Reference

Functions

void filter_metadata_by_leaf (ChunkMetadataVector &meta_vec, const ChunkKey &key_prefix)
 

Function Documentation

void anonymous_namespace{ForeignStorageMgr.cpp}::filter_metadata_by_leaf ( ChunkMetadataVector meta_vec,
const ChunkKey key_prefix 
)

Definition at line 31 of file ForeignStorageMgr.cpp.

References foreign_storage::fragment_maps_to_leaf(), and foreign_storage::is_shardable_key().

31  {
32  if (!foreign_storage::is_shardable_key(key_prefix)) {
33  return;
34  }
35  for (auto it = meta_vec.begin(); it != meta_vec.end();) {
36  it = foreign_storage::fragment_maps_to_leaf(it->first) ? std::next(it)
37  : meta_vec.erase(it);
38  }
39 }
bool fragment_maps_to_leaf(const ChunkKey &key)
bool is_shardable_key(const ChunkKey &key)

+ Here is the call graph for this function: