OmniSciDB  c07336695a
ArrayContextTypeSizer< CORE_TYPE > Class Template Reference

#include <sqltypes.h>

Public Member Functions

int get_array_context_logical_size () const
 

Detailed Description

template<typename CORE_TYPE>
class ArrayContextTypeSizer< CORE_TYPE >

Definition at line 208 of file sqltypes.h.

Member Function Documentation

◆ get_array_context_logical_size()

template<typename CORE_TYPE>
int ArrayContextTypeSizer< CORE_TYPE >::get_array_context_logical_size ( ) const
inline

Definition at line 210 of file sqltypes.h.

210  {
211  CORE_TYPE const* derived(static_cast<CORE_TYPE const*>(this));
212  if (is_member_of_typeset<kCHAR, kTEXT, kVARCHAR>(*derived)) {
213  auto comp_type(derived->get_compression());
214  if (comp_type == kENCODING_DICT || comp_type == kENCODING_FIXED ||
215  comp_type == kENCODING_NONE) {
216  return sizeof(int32_t);
217  }
218  }
219  return derived->get_logical_size();
220  }

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