OmniSciDB  c07336695a
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 Array &array, Importer_NS::BadRowsTracker *const bad_rows_tracker)
 

Public Attributes

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

Detailed Description

Definition at line 162 of file ArrowImporter.h.

Constructor & Destructor Documentation

◆ DataBufferBase()

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

Definition at line 172 of file ArrowImporter.h.

175  : cd(cd)
176  , array(array)
177  , bad_rows_tracker(bad_rows_tracker)
178  , arrow_type(*array.type())
179  , arrow_decimal_scale(arrow_type.id() == Type::DECIMAL
180  ? static_cast<const Decimal128Type&>(arrow_type).scale()
181  : 0)
182  , old_type(cd->columnType.get_type(),
183  cd->columnType.get_dimension(),
185  true)
186  , new_type(cd->columnType.get_type(),
187  cd->columnType.get_dimension(),
188  cd->columnType.get_scale(),
189  true) {}
Importer_NS::BadRowsTracker *const bad_rows_tracker

Member Data Documentation

◆ array

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

Definition at line 164 of file ArrowImporter.h.

◆ arrow_decimal_scale

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

Definition at line 169 of file ArrowImporter.h.

◆ arrow_type

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

◆ bad_rows_tracker

Importer_NS::BadRowsTracker* const anonymous_namespace{ArrowImporter.h}::DataBufferBase::bad_rows_tracker

◆ cd

const ColumnDescriptor* anonymous_namespace{ArrowImporter.h}::DataBufferBase::cd

◆ new_type

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

Definition at line 171 of file ArrowImporter.h.

◆ old_type

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

Definition at line 170 of file ArrowImporter.h.


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