OmniSciDB  c07336695a
/home/jenkins-slave/workspace/core-os-doxygen/MapDServer.h File Reference
+ Include dependency graph for MapDServer.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::vector< TargetMetaInfotarget_meta_infos_from_thrift (const TRowDescriptor &row_desc)
 
AggregatedColRange column_ranges_from_thrift (const std::vector< TColumnRange > &thrift_column_ranges)
 
StringDictionaryGenerations string_dictionary_generations_from_thrift (const std::vector< TDictionaryGeneration > &thrift_string_dictionary_generations)
 
TableGenerations table_generations_from_thrift (const std::vector< TTableGeneration > &table_generations)
 

Function Documentation

◆ column_ranges_from_thrift()

AggregatedColRange column_ranges_from_thrift ( const std::vector< TColumnRange > &  thrift_column_ranges)

Referenced by target_meta_infos_from_thrift().

+ Here is the caller graph for this function:

◆ string_dictionary_generations_from_thrift()

StringDictionaryGenerations string_dictionary_generations_from_thrift ( const std::vector< TDictionaryGeneration > &  thrift_string_dictionary_generations)

Referenced by target_meta_infos_from_thrift().

+ Here is the caller graph for this function:

◆ table_generations_from_thrift()

TableGenerations table_generations_from_thrift ( const std::vector< TTableGeneration > &  table_generations)

Definition at line 76 of file MapDServer.cpp.

References TableGenerations::setGeneration().

Referenced by target_meta_infos_from_thrift().

77  {
78  TableGenerations table_generations;
79  for (const auto& thrift_table_generation : thrift_table_generations) {
80  table_generations.setGeneration(
81  thrift_table_generation.table_id,
82  TableGeneration{static_cast<size_t>(thrift_table_generation.tuple_count),
83  static_cast<size_t>(thrift_table_generation.start_rowid)});
84  }
85  return table_generations;
86 }
void setGeneration(const uint32_t id, const TableGeneration &generation)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ target_meta_infos_from_thrift()

std::vector<TargetMetaInfo> target_meta_infos_from_thrift ( const TRowDescriptor &  row_desc)
inline

Definition at line 34 of file MapDServer.h.

References column_ranges_from_thrift(), string_dictionary_generations_from_thrift(), table_generations_from_thrift(), and type_info_from_thrift().

35  {
36  std::vector<TargetMetaInfo> target_meta_infos;
37  for (const auto& col : row_desc) {
38  target_meta_infos.emplace_back(col.col_name, type_info_from_thrift(col.col_type));
39  }
40  return target_meta_infos;
41 }
SQLTypeInfo type_info_from_thrift(const TTypeInfo &thrift_ti, const bool strip_geo_encoding=false)
+ Here is the call graph for this function: