OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
StatsRequestPredicate Struct Reference

#include <TableFunctionsStats.hpp>

Public Member Functions

 StatsRequestPredicate ()
 
 StatsRequestPredicate (const StatsRequestPredicateOp predicate_op, const double filter_val)
 
 StatsRequestPredicate (const StatsRequestPredicate &other)
 
std::string to_string () const
 
template<typename T >
bool operator() (const T val) const
 
bool operator== (StatsRequestPredicate const &rhs) const
 

Public Attributes

StatsRequestPredicateOp predicate_op
 
double filter_val
 
bool is_gt
 
bool is_no_op
 

Detailed Description

Definition at line 32 of file TableFunctionsStats.hpp.

Constructor & Destructor Documentation

StatsRequestPredicate::StatsRequestPredicate ( )
inline
StatsRequestPredicate::StatsRequestPredicate ( const StatsRequestPredicateOp  predicate_op,
const double  filter_val 
)
inline
StatsRequestPredicate::StatsRequestPredicate ( const StatsRequestPredicate other)
inline

Definition at line 45 of file TableFunctionsStats.hpp.

Member Function Documentation

template<typename T >
bool StatsRequestPredicate::operator() ( const T  val) const
inline

Definition at line 72 of file TableFunctionsStats.hpp.

References filter_val, is_gt, and is_no_op.

bool StatsRequestPredicate::operator== ( StatsRequestPredicate const &  rhs) const
inline

Definition at line 76 of file TableFunctionsStats.hpp.

References filter_val, and predicate_op.

76  {
77  return predicate_op == rhs.predicate_op && filter_val == rhs.filter_val;
78  }
StatsRequestPredicateOp predicate_op
std::string StatsRequestPredicate::to_string ( ) const
inline

Definition at line 51 of file TableFunctionsStats.hpp.

References filter_val, GT, LT, NONE, predicate_op, and to_string().

Referenced by get_column_stats().

51  {
52  std::string str;
53  switch (predicate_op) {
55  str += "NONE";
56  break;
57  }
59  str += "LT";
60  break;
61  }
63  str += "GT";
64  break;
65  }
66  }
67  str += "|" + std::to_string(filter_val);
68  return str;
69  }
std::string to_string(char const *&&v)
StatsRequestPredicateOp predicate_op

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

double StatsRequestPredicate::filter_val

Definition at line 81 of file TableFunctionsStats.hpp.

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

bool StatsRequestPredicate::is_gt

Definition at line 82 of file TableFunctionsStats.hpp.

Referenced by operator()().

bool StatsRequestPredicate::is_no_op

Definition at line 83 of file TableFunctionsStats.hpp.

Referenced by operator()().

StatsRequestPredicateOp StatsRequestPredicate::predicate_op

Definition at line 80 of file TableFunctionsStats.hpp.

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


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