OmniSciDB  04ee39c94c
Fragmenter_Namespace::ArrayChunkConverter Struct Reference
+ Inheritance diagram for Fragmenter_Namespace::ArrayChunkConverter:
+ Collaboration diagram for Fragmenter_Namespace::ArrayChunkConverter:

Public Member Functions

 ArrayChunkConverter (const size_t num_rows, const Chunk_NS::Chunk *chunk)
 
 ~ArrayChunkConverter () override
 
void convertToColumnarFormat (size_t row, size_t indexInFragment) override
 
- Public Member Functions inherited from Fragmenter_Namespace::FixedLenArrayChunkConverter
 FixedLenArrayChunkConverter (const size_t num_rows, const Chunk_NS::Chunk *chunk)
 
 ~FixedLenArrayChunkConverter () override
 
void addDataBlocksToInsertData (Fragmenter_Namespace::InsertData &insertData) override
 
- Public Member Functions inherited from Fragmenter_Namespace::ChunkToInsertDataConverter
virtual ~ChunkToInsertDataConverter ()
 

Public Attributes

StringOffsetTindex_buffer_addr_
 
- Public Attributes inherited from Fragmenter_Namespace::FixedLenArrayChunkConverter
const Chunk_NS::Chunkchunk_
 
const ColumnDescriptorcolumn_descriptor_
 
std::unique_ptr< std::vector< ArrayDatum > > column_data_
 
int8_t * data_buffer_addr_
 
size_t fixed_array_length_
 

Detailed Description

Definition at line 205 of file UpdelStorage.cpp.

Constructor & Destructor Documentation

◆ ArrayChunkConverter()

Fragmenter_Namespace::ArrayChunkConverter::ArrayChunkConverter ( const size_t  num_rows,
const Chunk_NS::Chunk chunk 
)
inline

Definition at line 208 of file UpdelStorage.cpp.

References Chunk_NS::Chunk::get_index_buf(), and Data_Namespace::AbstractBuffer::getMemoryPtr().

211  (StringOffsetT*)(chunk->get_index_buf() ? chunk->get_index_buf()->getMemoryPtr()
212  : nullptr);
213  }
const int8_t const int64_t * num_rows
AbstractBuffer * get_index_buf() const
Definition: Chunk.h:95
virtual int8_t * getMemoryPtr()=0
FixedLenArrayChunkConverter(const size_t num_rows, const Chunk_NS::Chunk *chunk)
int32_t StringOffsetT
Definition: sqltypes.h:877
+ Here is the call graph for this function:

◆ ~ArrayChunkConverter()

Fragmenter_Namespace::ArrayChunkConverter::~ArrayChunkConverter ( )
inlineoverride

Definition at line 215 of file UpdelStorage.cpp.

215 {}

Member Function Documentation

◆ convertToColumnarFormat()

void Fragmenter_Namespace::ArrayChunkConverter::convertToColumnarFormat ( size_t  row,
size_t  indexInFragment 
)
inlineoverridevirtual

Reimplemented from Fragmenter_Namespace::FixedLenArrayChunkConverter.

Definition at line 217 of file UpdelStorage.cpp.

217  {
218  size_t src_value_size =
219  index_buffer_addr_[indexInFragment + 1] - index_buffer_addr_[indexInFragment];
220  auto src_value_ptr = data_buffer_addr_ + index_buffer_addr_[indexInFragment];
221  (*column_data_)[row] =
222  ArrayDatum(src_value_size, (int8_t*)src_value_ptr, DoNothingDeleter());
223  }
std::conditional_t< isCudaCC(), DeviceArrayDatum, HostArrayDatum > ArrayDatum
Definition: sqltypes.h:119

Member Data Documentation

◆ index_buffer_addr_

StringOffsetT* Fragmenter_Namespace::ArrayChunkConverter::index_buffer_addr_

Definition at line 206 of file UpdelStorage.cpp.


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