OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BaselineJoinHashTable::HashTableCacheKey Struct Reference

#include <BaselineJoinHashTable.h>

Public Member Functions

bool operator== (const struct HashTableCacheKey &that) const
 
bool operator< (const struct HashTableCacheKey &that) const
 

Public Attributes

const size_t num_elements
 
const std::vector< ChunkKeychunk_keys
 
const SQLOps optype
 
const boost::optional< double > overlaps_hashjoin_bucket_threshold
 

Detailed Description

Definition at line 204 of file BaselineJoinHashTable.h.

Member Function Documentation

bool BaselineJoinHashTable::HashTableCacheKey::operator< ( const struct HashTableCacheKey that) const
inline

Definition at line 223 of file BaselineJoinHashTable.h.

References chunk_keys, num_elements, optype, and overlaps_hashjoin_bucket_threshold.

223  {
224  bool oeq;
225  if (overlaps_hashjoin_bucket_threshold && that.overlaps_hashjoin_bucket_threshold) {
226  oeq = (std::abs(*overlaps_hashjoin_bucket_threshold -
227  *that.overlaps_hashjoin_bucket_threshold) <= 0.00000001);
228  } else {
230  that.overlaps_hashjoin_bucket_threshold);
231  }
232  return num_elements < that.num_elements && chunk_keys < that.chunk_keys &&
233  optype < that.optype && !oeq &&
234  overlaps_hashjoin_bucket_threshold < that.overlaps_hashjoin_bucket_threshold;
235  }
const boost::optional< double > overlaps_hashjoin_bucket_threshold
bool BaselineJoinHashTable::HashTableCacheKey::operator== ( const struct HashTableCacheKey that) const
inline

Definition at line 210 of file BaselineJoinHashTable.h.

References chunk_keys, num_elements, optype, and overlaps_hashjoin_bucket_threshold.

210  {
211  bool oeq;
212  if (overlaps_hashjoin_bucket_threshold && that.overlaps_hashjoin_bucket_threshold) {
213  oeq = (std::abs(*overlaps_hashjoin_bucket_threshold -
214  *that.overlaps_hashjoin_bucket_threshold) <= 0.00000001);
215  } else {
217  that.overlaps_hashjoin_bucket_threshold);
218  }
219  return num_elements == that.num_elements && chunk_keys == that.chunk_keys &&
220  optype == that.optype && oeq;
221  }
const boost::optional< double > overlaps_hashjoin_bucket_threshold

Member Data Documentation

const std::vector<ChunkKey> BaselineJoinHashTable::HashTableCacheKey::chunk_keys

Definition at line 206 of file BaselineJoinHashTable.h.

Referenced by operator<(), and operator==().

const size_t BaselineJoinHashTable::HashTableCacheKey::num_elements

Definition at line 205 of file BaselineJoinHashTable.h.

Referenced by operator<(), and operator==().

const SQLOps BaselineJoinHashTable::HashTableCacheKey::optype

Definition at line 207 of file BaselineJoinHashTable.h.

Referenced by operator<(), and operator==().

const boost::optional<double> BaselineJoinHashTable::HashTableCacheKey::overlaps_hashjoin_bucket_threshold

Definition at line 208 of file BaselineJoinHashTable.h.

Referenced by operator<(), and operator==().


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