OmniSciDB
a5dc49c757
|
#include "ColumnarResults.h"
#include "Descriptors/RowSetMemoryOwner.h"
#include "ErrorHandling.h"
#include "Execute.h"
#include "Geospatial/Compression.h"
#include "Geospatial/Types.h"
#include "Shared/Intervals.h"
#include "Shared/likely.h"
#include "Shared/sqltypes.h"
#include "Shared/thread_count.h"
#include <tbb/parallel_reduce.h>
#include <atomic>
#include <future>
#include <numeric>
Go to the source code of this file.
Namespaces | |
anonymous_namespace{ColumnarResults.cpp} | |
Functions | |
int64_t | anonymous_namespace{ColumnarResults.cpp}::fixed_encoding_nullable_val (const int64_t val, const SQLTypeInfo &type_info) |
std::vector< size_t > | anonymous_namespace{ColumnarResults.cpp}::get_padded_target_sizes (const ResultSet &rows, const std::vector< SQLTypeInfo > &target_types) |
int64_t | anonymous_namespace{ColumnarResults.cpp}::toBuffer (const TargetValue &col_val, const SQLTypeInfo &type_info, int8_t *buf) |
int64_t | anonymous_namespace{ColumnarResults.cpp}::computeTotalNofValuesForColumnArray (const ResultSet &rows, const size_t column_idx) |
template<typename TargetValue , typename TargetValuePtr > | |
int64_t | anonymous_namespace{ColumnarResults.cpp}::computeTotalNofValuesForColumnGeoType (const ResultSet &rows, const SQLTypeInfo &ti, const size_t column_idx) |
int64_t | anonymous_namespace{ColumnarResults.cpp}::computeTotalNofValuesForColumnTextEncodingNone (const ResultSet &rows, const size_t column_idx) |
template<size_t NDIM, typename GeospatialGeoType , typename GeoTypeTargetValue , typename GeoTypeTargetValuePtr , bool is_multi> | |
void | writeBackCellGeoNestedArray (FlatBufferManager &m, const int64_t index, const SQLTypeInfo &ti, const TargetValue &col_val, std::mutex *write_mutex) |
template<typename scalar_type , typename value_type > | |
void | writeBackCellArrayScalar (FlatBufferManager &m, const size_t row_idx, const TargetValue &col_val, std::mutex *write_mutex) |
void | writeBackCellTextEncodingNone (FlatBufferManager &m, const size_t row_idx, const TargetValue &col_val, std::mutex *write_mutex) |
void | writeBackCellGeoPoint (FlatBufferManager &m, const size_t row_idx, const SQLTypeInfo &type_info, const TargetValue &col_val, std::mutex *write_mutex) |
int64_t | anonymous_namespace{ColumnarResults.cpp}::invalid_read_func (const ResultSet &rows, const size_t input_buffer_entry_idx, const size_t target_idx, const size_t slot_idx) |
template<QueryDescriptionType QUERY_TYPE, bool COLUMNAR_OUTPUT> | |
int64_t | anonymous_namespace{ColumnarResults.cpp}::read_float_key_baseline (const ResultSet &rows, const size_t input_buffer_entry_idx, const size_t target_idx, const size_t slot_idx) |
template<QueryDescriptionType QUERY_TYPE, bool COLUMNAR_OUTPUT> | |
int64_t | anonymous_namespace{ColumnarResults.cpp}::read_int64_func (const ResultSet &rows, const size_t input_buffer_entry_idx, const size_t target_idx, const size_t slot_idx) |
template<QueryDescriptionType QUERY_TYPE, bool COLUMNAR_OUTPUT> | |
int64_t | anonymous_namespace{ColumnarResults.cpp}::read_int32_func (const ResultSet &rows, const size_t input_buffer_entry_idx, const size_t target_idx, const size_t slot_idx) |
template<QueryDescriptionType QUERY_TYPE, bool COLUMNAR_OUTPUT> | |
int64_t | anonymous_namespace{ColumnarResults.cpp}::read_int16_func (const ResultSet &rows, const size_t input_buffer_entry_idx, const size_t target_idx, const size_t slot_idx) |
template<QueryDescriptionType QUERY_TYPE, bool COLUMNAR_OUTPUT> | |
int64_t | anonymous_namespace{ColumnarResults.cpp}::read_int8_func (const ResultSet &rows, const size_t input_buffer_entry_idx, const size_t target_idx, const size_t slot_idx) |
template<QueryDescriptionType QUERY_TYPE, bool COLUMNAR_OUTPUT> | |
int64_t | anonymous_namespace{ColumnarResults.cpp}::read_float_func (const ResultSet &rows, const size_t input_buffer_entry_idx, const size_t target_idx, const size_t slot_idx) |
template<QueryDescriptionType QUERY_TYPE, bool COLUMNAR_OUTPUT> | |
int64_t | anonymous_namespace{ColumnarResults.cpp}::read_double_func (const ResultSet &rows, const size_t input_buffer_entry_idx, const size_t target_idx, const size_t slot_idx) |
void writeBackCellArrayScalar | ( | FlatBufferManager & | m, |
const size_t | row_idx, | ||
const TargetValue & | col_val, | ||
std::mutex * | write_mutex | ||
) |
Definition at line 726 of file ColumnarResults.cpp.
References CHECK_EQ, FlatBufferManager::getItem(), FlatBufferManager::NestedArrayItem< NDIM >::nof_sizes, FlatBufferManager::NestedArrayItem< NDIM >::nof_values, FlatBufferManager::setItem(), FlatBufferManager::setNull(), and FlatBufferManager::NestedArrayItem< NDIM >::values.
void writeBackCellGeoNestedArray | ( | FlatBufferManager & | m, |
const int64_t | index, | ||
const SQLTypeInfo & | ti, | ||
const TargetValue & | col_val, | ||
std::mutex * | write_mutex | ||
) |
Definition at line 564 of file ColumnarResults.cpp.
References CHECK, CHECK_EQ, CHECK_NE, Geospatial::compress_coords(), SQLTypeInfo::get_compression(), SQLTypeInfoLite::is_geoint(), kENCODING_GEOINT, kENCODING_NONE, VarlenDatum::length, VarlenDatum::pointer, FlatBufferManager::setItem(), FlatBufferManager::setNull(), and UNREACHABLE.
Referenced by ColumnarResults::writeBackCell().
|
inline |
Definition at line 792 of file ColumnarResults.cpp.
References CHECK, CHECK_EQ, Geospatial::compress_coords(), FlatBufferManager::dtypeSize(), SQLTypeInfo::get_compression(), kENCODING_GEOINT, VarlenDatum::length, NULL_ARRAY_DOUBLE, VarlenDatum::pointer, FlatBufferManager::setItemOld(), and UNREACHABLE.
Referenced by ColumnarResults::writeBackCell().
|
inline |
Definition at line 767 of file ColumnarResults.cpp.
References CHECK, CHECK_EQ, FlatBufferManager::setItem(), FlatBufferManager::setNull(), and UNREACHABLE.
Referenced by ColumnarResults::writeBackCell().