OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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,
ExpressionRange
cache_
 

Detailed Description

Definition at line 31 of file AggregatedColRange.h.

Member Function Documentation

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

Definition at line 31 of file AggregatedColRange.cpp.

References cache_.

Referenced by Executor::dumpCache().

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

+ Here is the caller graph for this function:

void AggregatedColRange::clear ( )

Definition at line 36 of file AggregatedColRange.cpp.

References cache_, and gpu_enabled::swap().

Referenced by Executor::clearMetaInfoCache().

36  {
37  decltype(cache_)().swap(cache_);
38 }
std::unordered_map< PhysicalInput, ExpressionRange > cache_
DEVICE void swap(ARGS &&...args)
Definition: gpu_enabled.h:114

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:291
std::unordered_map< PhysicalInput, ExpressionRange > cache_

+ Here is the caller graph for this function:

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 ThriftSerializers::column_ranges_from_thrift(), and Executor::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:291
std::unordered_map< PhysicalInput, ExpressionRange > cache_

+ Here is the caller graph for this function:

Member Data Documentation

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

Definition at line 42 of file AggregatedColRange.h.

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


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