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

#include <CustomExpression.h>

+ Collaboration diagram for Catalog_Namespace::CustomExpression:

Public Member Functions

 CustomExpression (const std::string &name, const std::string &expression_json, DataSourceType data_source_type, int32_t data_source_id)
 
 CustomExpression (int32_t id, const std::string &name, const std::string &expression_json, DataSourceType data_source_type, int32_t data_source_id, bool is_deleted)
 

Static Public Member Functions

static std::string dataSourceTypeToString (DataSourceType type_enum)
 
static DataSourceType dataSourceTypeFromString (const std::string &type_str)
 

Public Attributes

int32_t id {-1}
 
std::string name
 
std::string expression_json
 
DataSourceType data_source_type
 
int32_t data_source_id {-1}
 
bool is_deleted {false}
 

Detailed Description

Definition at line 24 of file CustomExpression.h.

Constructor & Destructor Documentation

Catalog_Namespace::CustomExpression::CustomExpression ( const std::string &  name,
const std::string &  expression_json,
DataSourceType  data_source_type,
int32_t  data_source_id 
)
inline
Catalog_Namespace::CustomExpression::CustomExpression ( int32_t  id,
const std::string &  name,
const std::string &  expression_json,
DataSourceType  data_source_type,
int32_t  data_source_id,
bool  is_deleted 
)
inline

Member Function Documentation

static DataSourceType Catalog_Namespace::CustomExpression::dataSourceTypeFromString ( const std::string &  type_str)
inlinestatic

Definition at line 54 of file CustomExpression.h.

References CHECK_EQ, and Catalog_Namespace::TABLE.

54  {
55  // Only table data source type is currently supported
56  CHECK_EQ(type_str, "TABLE");
57  return DataSourceType::TABLE;
58  }
#define CHECK_EQ(x, y)
Definition: Logger.h:301
static std::string Catalog_Namespace::CustomExpression::dataSourceTypeToString ( DataSourceType  type_enum)
inlinestatic

Definition at line 47 of file CustomExpression.h.

References CHECK, and Catalog_Namespace::TABLE.

47  {
48  // Only table data source type is currently supported
49  CHECK(type_enum == DataSourceType::TABLE)
50  << "Unexpected data source type: " << static_cast<int>(type_enum);
51  return "TABLE";
52  }
#define CHECK(condition)
Definition: Logger.h:291

Member Data Documentation


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