OmniSciDB  a987f07e93
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dist Namespace Reference

Functions

bool is_distributed ()
 
bool is_first_leaf ()
 
bool is_leaf_node ()
 
bool is_aggregator ()
 

Function Documentation

bool dist::is_aggregator ( )

Definition at line 33 of file distributed.cpp.

References g_distributed_leaf_idx, and is_distributed().

Referenced by foreign_storage::fragment_maps_to_leaf(), foreign_storage::InternalCatalogDataWrapper::initializeObjectsForTable(), and foreign_storage::is_shardable_key().

33  {
34  return (is_distributed() && g_distributed_leaf_idx == -1);
35 }
int32_t g_distributed_leaf_idx
Definition: Catalog.cpp:98
bool is_distributed()
Definition: distributed.cpp:21

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool dist::is_distributed ( )

Definition at line 21 of file distributed.cpp.

References g_cluster.

Referenced by foreign_storage::fragment_maps_to_leaf(), foreign_storage::CachingForeignStorageMgr::getChunkMetadataVecForKeyPrefix(), foreign_storage::InternalCatalogDataWrapper::initializeObjectsForTable(), is_aggregator(), is_first_leaf(), is_leaf_node(), and foreign_storage::is_shardable_key().

21  {
22  return g_cluster;
23 }
bool g_cluster

+ Here is the caller graph for this function:

bool dist::is_first_leaf ( )

Definition at line 25 of file distributed.cpp.

References g_distributed_leaf_idx, and is_distributed().

Referenced by foreign_storage::InternalCatalogDataWrapper::initializeObjectsForTable().

25  {
26  return (is_distributed() && g_distributed_leaf_idx == 0);
27 }
int32_t g_distributed_leaf_idx
Definition: Catalog.cpp:98
bool is_distributed()
Definition: distributed.cpp:21

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool dist::is_leaf_node ( )

Definition at line 29 of file distributed.cpp.

References g_distributed_leaf_idx, and is_distributed().

Referenced by foreign_storage::anonymous_namespace{LogFileBufferParser.cpp}::get_node_name(), foreign_storage::refresh_foreign_table(), and foreign_storage::set_node_name().

29  {
30  return (is_distributed() && g_distributed_leaf_idx >= 0);
31 }
int32_t g_distributed_leaf_idx
Definition: Catalog.cpp:98
bool is_distributed()
Definition: distributed.cpp:21

+ Here is the call graph for this function:

+ Here is the caller graph for this function: