OmniSciDB  ca0c39ec8f
 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 99 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 35 of file HashJoin.cpp.

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

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

Member Data Documentation

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

Definition at line 102 of file HashJoin.h.

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

Definition at line 104 of file HashJoin.h.


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