OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
anonymous_namespace{ArrowImporter.h}::DataBufferBase Struct Reference

#include <ArrowImporter.h>

+ Inheritance diagram for anonymous_namespace{ArrowImporter.h}::DataBufferBase:
+ Collaboration diagram for anonymous_namespace{ArrowImporter.h}::DataBufferBase:

Public Member Functions

 DataBufferBase (const ColumnDescriptor *cd, const arrow::Array &array, import_export::BadRowsTracker *const bad_rows_tracker)
 

Public Attributes

const ColumnDescriptorcd
 
const arrow::Array & array
 
import_export::BadRowsTracker
*const 
bad_rows_tracker
 
const arrow::DataType & arrow_type
 
const int arrow_decimal_scale
 
const SQLTypeInfo old_type
 
const SQLTypeInfo new_type
 

Detailed Description

Definition at line 164 of file ArrowImporter.h.

Constructor & Destructor Documentation

anonymous_namespace{ArrowImporter.h}::DataBufferBase::DataBufferBase ( const ColumnDescriptor cd,
const arrow::Array &  array,
import_export::BadRowsTracker *const  bad_rows_tracker 
)
inline

Definition at line 174 of file ArrowImporter.h.

177  : cd(cd)
178  , array(array)
179  , bad_rows_tracker(bad_rows_tracker)
180  , arrow_type(*array.type())
182  arrow_type.id() == arrow::Type::DECIMAL
183  ? static_cast<const arrow::Decimal128Type&>(arrow_type).scale()
184  : 0)
185  , old_type(cd->columnType.get_type(),
186  cd->columnType.get_dimension(),
188  true)
189  , new_type(cd->columnType.get_type(),
190  cd->columnType.get_dimension(),
191  cd->columnType.get_scale(),
192  true) {}
DEVICE double get_scale(const double domain_min, const double domain_max, const int32_t num_bins)
import_export::BadRowsTracker *const bad_rows_tracker
bool g_enable_smem_group_by true

Member Data Documentation

const arrow::Array& anonymous_namespace{ArrowImporter.h}::DataBufferBase::array

Definition at line 166 of file ArrowImporter.h.

const int anonymous_namespace{ArrowImporter.h}::DataBufferBase::arrow_decimal_scale

Definition at line 171 of file ArrowImporter.h.

const arrow::DataType& anonymous_namespace{ArrowImporter.h}::DataBufferBase::arrow_type

Definition at line 170 of file ArrowImporter.h.

import_export::BadRowsTracker* const anonymous_namespace{ArrowImporter.h}::DataBufferBase::bad_rows_tracker
const ColumnDescriptor* anonymous_namespace{ArrowImporter.h}::DataBufferBase::cd
const SQLTypeInfo anonymous_namespace{ArrowImporter.h}::DataBufferBase::new_type

Definition at line 173 of file ArrowImporter.h.

const SQLTypeInfo anonymous_namespace{ArrowImporter.h}::DataBufferBase::old_type

Definition at line 172 of file ArrowImporter.h.


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