OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
/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

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)

Definition at line 92 of file MapDServer.cpp.

References TableGenerations::setGeneration().

93  {
94  TableGenerations table_generations;
95  for (const auto& thrift_table_generation : thrift_table_generations) {
96  table_generations.setGeneration(
97  thrift_table_generation.table_id,
98  TableGeneration{static_cast<size_t>(thrift_table_generation.tuple_count),
99  static_cast<size_t>(thrift_table_generation.start_rowid)});
100  }
101  return table_generations;
102 }
void setGeneration(const uint32_t id, const TableGeneration &generation)

+ Here is the call graph for this function:

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

Definition at line 34 of file MapDServer.h.

References 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: