OmniSciDB  dfae7c3b14
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 , typename = enable_if_integral<DATA_TYPE>>
 operator const DATA_TYPE () const
 
template<typename DATA_TYPE , typename = enable_if_floating<DATA_TYPE>>
 operator DATA_TYPE () const
 
 operator const std::string () 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 290 of file ArrowImporter.h.

Member Typedef Documentation

◆ VALUE_TYPE

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

Definition at line 291 of file ArrowImporter.h.

Constructor & Destructor Documentation

◆ ArrowValue()

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

Definition at line 292 of file ArrowImporter.h.

Member Function Documentation

◆ operator const DATA_TYPE()

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

Definition at line 295 of file ArrowImporter.h.

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

295  {
298  }
299  return v;
300  }
bool is_boolean() const
Definition: sqltypes.h:424
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
SQLTypeInfo columnType
bool is_number() const
Definition: sqltypes.h:422
+ Here is the call graph for this function:

◆ operator const std::string()

anonymous_namespace{ArrowImporter.h}::ArrowValue< bool >::operator const std::string ( ) const
inlineexplicit

Definition at line 305 of file ArrowImporter.h.

◆ operator DATA_TYPE()

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

Definition at line 302 of file ArrowImporter.h.

302  {
303  return v ? 1 : 0;
304  }

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