OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{ArrowImporter.h}::ArrowValue< bool > Struct Template Reference

#include <ArrowImporter.h>

+ Inheritance diagram for anonymous_namespace{ArrowImporter.h}::ArrowValue< bool >:
+ Collaboration diagram for anonymous_namespace{ArrowImporter.h}::ArrowValue< bool >:

Public Types

using VALUE_TYPE = bool
 

Public Member Functions

 ArrowValue (const DataBufferBase &data, const VALUE_TYPE &v)
 
template<typename DATA_TYPE >
 operator DATA_TYPE () const
 
- Public Member Functions inherited from anonymous_namespace{ArrowImporter.h}::ArrowValueBase< bool >
 ArrowValueBase (const DataBufferBase &data, const bool &v)
 
int64_t resolve_time (const bool &v, std::enable_if_t< enabled > *=0) const
 
int64_t resolve_time (const bool &v, std::enable_if_t<!enabled > *=0) const
 

Additional Inherited Members

- Public Attributes inherited from anonymous_namespace{ArrowImporter.h}::ArrowValueBase< bool >
const DataBufferBasedata
 
const bool v
 
const int32_t dimension
 

Detailed Description

template<>
struct anonymous_namespace{ArrowImporter.h}::ArrowValue< bool >

Definition at line 293 of file ArrowImporter.h.

Member Typedef Documentation

using anonymous_namespace{ArrowImporter.h}::ArrowValue< bool >::VALUE_TYPE = bool

Definition at line 294 of file ArrowImporter.h.

Constructor & Destructor Documentation

anonymous_namespace{ArrowImporter.h}::ArrowValue< bool >::ArrowValue ( const DataBufferBase data,
const VALUE_TYPE v 
)
inline

Definition at line 295 of file ArrowImporter.h.

Member Function Documentation

template<typename DATA_TYPE >
anonymous_namespace{ArrowImporter.h}::ArrowValue< bool >::operator DATA_TYPE ( ) const
inlineexplicit

Definition at line 299 of file ArrowImporter.h.

References anonymous_namespace{ArrowImporter.h}::type_conversion_error().

299  {
300  if constexpr (std::is_integral<DATA_TYPE>::value) { // NOLINT
303  }
304  return v;
305  } else if constexpr (std::is_floating_point<DATA_TYPE>::value) { // NOLINT
306  return v ? 1 : 0;
307  } else if constexpr (std::is_same<DATA_TYPE, std::string>::value) { // NOLINT
308  return v ? "T" : "F";
309  }
310  }
bool is_number() const
Definition: sqltypes.h:574
void type_conversion_error(const std::string pt, const ColumnDescriptor *cd, import_export::BadRowsTracker *const bad_rows_tracker)
import_export::BadRowsTracker *const bad_rows_tracker
bool is_boolean() const
Definition: sqltypes.h:580
SQLTypeInfo columnType

+ Here is the call graph for this function:


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