OmniSciDB  04ee39c94c
AggregatedColRange Class Reference

#include <AggregatedColRange.h>

Public Member Functions

ExpressionRange getColRange (const PhysicalInput &) const
 
void setColRange (const PhysicalInput &, const ExpressionRange &)
 
const std::unordered_map< PhysicalInput, ExpressionRange > & asMap () const
 
void clear ()
 

Private Attributes

std::unordered_map< PhysicalInput, ExpressionRangecache_
 

Detailed Description

Definition at line 33 of file AggregatedColRange.h.

Member Function Documentation

◆ asMap()

const std::unordered_map< PhysicalInput, ExpressionRange > & AggregatedColRange::asMap ( ) const

Definition at line 31 of file AggregatedColRange.cpp.

References cache_.

32  {
33  return cache_;
34 }
std::unordered_map< PhysicalInput, ExpressionRange > cache_

◆ clear()

void AggregatedColRange::clear ( )

Definition at line 36 of file AggregatedColRange.cpp.

References cache_.

Referenced by Executor::clearMetaInfoCache().

36  {
37  decltype(cache_)().swap(cache_);
38 }
std::unordered_map< PhysicalInput, ExpressionRange > cache_
+ Here is the caller graph for this function:

◆ getColRange()

ExpressionRange AggregatedColRange::getColRange ( const PhysicalInput phys_input) const

Definition at line 19 of file AggregatedColRange.cpp.

References cache_, and CHECK.

Referenced by Executor::getColRange().

19  {
20  const auto it = cache_.find(phys_input);
21  CHECK(it != cache_.end());
22  return it->second;
23 }
#define CHECK(condition)
Definition: Logger.h:187
std::unordered_map< PhysicalInput, ExpressionRange > cache_
+ Here is the caller graph for this function:

◆ setColRange()

void AggregatedColRange::setColRange ( const PhysicalInput phys_input,
const ExpressionRange expr_range 
)

Definition at line 25 of file AggregatedColRange.cpp.

References cache_, and CHECK.

Referenced by RelAlgExecutor::computeColRangesCache().

26  {
27  const auto it_ok = cache_.emplace(phys_input, expr_range);
28  CHECK(it_ok.second);
29 }
#define CHECK(condition)
Definition: Logger.h:187
std::unordered_map< PhysicalInput, ExpressionRange > cache_
+ Here is the caller graph for this function:

Member Data Documentation

◆ cache_

std::unordered_map<PhysicalInput, ExpressionRange> AggregatedColRange::cache_
private

Definition at line 44 of file AggregatedColRange.h.

Referenced by asMap(), clear(), getColRange(), and setColRange().


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