OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ColumnsForDevice Struct Reference

#include <HashJoin.h>

Public Member Functions

void setBucketInfo (const std::vector< double > &bucket_sizes_for_dimension, const std::vector< InnerOuter > inner_outer_pairs)
 

Public Attributes

const std::vector< JoinColumnjoin_columns
 
const std::vector
< JoinColumnTypeInfo
join_column_types
 
const std::vector
< std::shared_ptr
< Chunk_NS::Chunk > > 
chunks_owner
 
std::vector< JoinBucketInfojoin_buckets
 
const std::vector
< std::shared_ptr< void > > 
malloc_owner
 

Detailed Description

Definition at line 109 of file HashJoin.h.

Member Function Documentation

void ColumnsForDevice::setBucketInfo ( const std::vector< double > &  bucket_sizes_for_dimension,
const std::vector< InnerOuter inner_outer_pairs 
)

Definition at line 37 of file HashJoin.cpp.

References CHECK_EQ, join_buckets, join_column_types, join_columns, and kDOUBLE.

39  {
40  join_buckets.clear();
41 
42  CHECK_EQ(inner_outer_pairs.size(), join_columns.size());
43  CHECK_EQ(join_columns.size(), join_column_types.size());
44  for (size_t i = 0; i < join_columns.size(); i++) {
45  const auto& inner_outer_pair = inner_outer_pairs[i];
46  const auto inner_col = inner_outer_pair.first;
47  const auto& ti = inner_col->get_type_info();
48  const auto elem_ti = ti.get_elem_type();
49  // CHECK(elem_ti.is_fp());
50 
51  join_buckets.emplace_back(JoinBucketInfo{inverse_bucket_sizes_for_dimension,
52  elem_ti.get_type() == kDOUBLE});
53  }
54 }
#define CHECK_EQ(x, y)
Definition: Logger.h:301
const std::vector< JoinColumnTypeInfo > join_column_types
Definition: HashJoin.h:111
std::vector< JoinBucketInfo > join_buckets
Definition: HashJoin.h:113
const std::vector< JoinColumn > join_columns
Definition: HashJoin.h:110

Member Data Documentation

const std::vector<std::shared_ptr<Chunk_NS::Chunk> > ColumnsForDevice::chunks_owner

Definition at line 112 of file HashJoin.h.

const std::vector<std::shared_ptr<void> > ColumnsForDevice::malloc_owner

Definition at line 114 of file HashJoin.h.


The documentation for this struct was generated from the following files: