OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ThriftSerializers.h File Reference

Serializers for query engine types to/from thrift. More...

#include "gen-cpp/serialized_result_set_types.h"
#include "CompilationOptions.h"
#include "Descriptors/CountDistinctDescriptor.h"
#include "Descriptors/Types.h"
#include <Shared/ThriftTypesConvert.h>
#include "Shared/Logger.h"
+ Include dependency graph for ThriftSerializers.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ThriftSerializers
 

Macros

#define THRIFT_LAYOUT_CASE(layout)
 
#define UNTHRIFT_LAYOUT_CASE(layout)
 
#define THRIFT_AGGKIND_CASE(kind)
 
#define UNTHRIFT_AGGKIND_CASE(kind)
 
#define THRIFT_COUNTDESCRIPTORIMPL_CASE(kind)
 
#define UNTHRIFT_COUNTDESCRIPTORIMPL_CASE(kind)
 

Functions

TResultSetLayout::type ThriftSerializers::layout_to_thrift (const QueryDescriptionType layout)
 
QueryDescriptionType ThriftSerializers::layout_from_thrift (const TResultSetLayout::type layout)
 
TAggKind::type ThriftSerializers::agg_kind_to_thrift (const SQLAgg agg)
 
SQLAgg ThriftSerializers::agg_kind_from_thrift (const TAggKind::type agg)
 
TTypeInfo ThriftSerializers::type_info_to_thrift (const SQLTypeInfo &ti)
 
bool ThriftSerializers::takes_arg (const TargetInfo &target_info)
 
TTargetInfo ThriftSerializers::target_info_to_thrift (const TargetInfo &target_info)
 
TargetInfo ThriftSerializers::target_info_from_thrift (const TTargetInfo &thrift_target_info)
 
std::vector< TTargetInfo > ThriftSerializers::target_infos_to_thrift (const std::vector< TargetInfo > &targets)
 
std::vector< TargetInfoThriftSerializers::target_infos_from_thrift (const std::vector< TTargetInfo > &thrift_targets)
 
TCountDistinctImplType::type ThriftSerializers::count_distinct_impl_type_to_thrift (const CountDistinctImplType impl_type)
 
TCountDistinctDescriptor ThriftSerializers::count_distinct_descriptor_to_thrift (const CountDistinctDescriptor &count_distinct_descriptor)
 
CountDistinctImplType ThriftSerializers::count_distinct_impl_type_from_thrift (const TCountDistinctImplType::type impl_type)
 
CountDistinctDescriptor ThriftSerializers::count_distinct_descriptor_from_thrift (const TCountDistinctDescriptor &thrift_count_distinct_descriptor)
 

Detailed Description

Serializers for query engine types to/from thrift.

Author
Alex Baden alex..nosp@m.bade.nosp@m.n@map.nosp@m.d.co.nosp@m.m

Definition in file ThriftSerializers.h.

Macro Definition Documentation

#define THRIFT_AGGKIND_CASE (   kind)
Value:
case k##kind: \
return TAggKind::kind;

Definition at line 73 of file ThriftSerializers.h.

Referenced by ThriftSerializers::agg_kind_to_thrift().

#define THRIFT_COUNTDESCRIPTORIMPL_CASE (   kind)
Value:
case CountDistinctImplType::kind: \
return TCountDistinctImplType::kind;

Definition at line 178 of file ThriftSerializers.h.

Referenced by ThriftSerializers::count_distinct_impl_type_to_thrift().

#define THRIFT_LAYOUT_CASE (   layout)
Value:
case QueryDescriptionType::layout: \
return TResultSetLayout::layout;

Definition at line 37 of file ThriftSerializers.h.

Referenced by ThriftSerializers::layout_to_thrift().

#define UNTHRIFT_AGGKIND_CASE (   kind)
Value:
case TAggKind::kind: \
return k##kind;

Definition at line 94 of file ThriftSerializers.h.

Referenced by ThriftSerializers::agg_kind_from_thrift().

#define UNTHRIFT_COUNTDESCRIPTORIMPL_CASE (   kind)
Value:
case TCountDistinctImplType::kind: \
return CountDistinctImplType::kind;

Definition at line 213 of file ThriftSerializers.h.

Referenced by ThriftSerializers::count_distinct_impl_type_from_thrift().

#define UNTHRIFT_LAYOUT_CASE (   layout)
Value:
case TResultSetLayout::layout: \
return QueryDescriptionType::layout;

Definition at line 55 of file ThriftSerializers.h.

Referenced by ThriftSerializers::layout_from_thrift().