OmniSciDB
a5dc49c757
|
Iteration part of the row set interface. More...
#include "Execute.h"
#include "Geospatial/Compression.h"
#include "Geospatial/Types.h"
#include "ParserNode.h"
#include "QueryEngine/QueryEngine.h"
#include "QueryEngine/TargetValue.h"
#include "QueryEngine/Utils/FlatBuffer.h"
#include "ResultSet.h"
#include "ResultSetGeoSerialization.h"
#include "RuntimeFunctions.h"
#include "Shared/SqlTypesLayout.h"
#include "Shared/likely.h"
#include "Shared/sqltypes.h"
#include "TypePunning.h"
#include <boost/math/special_functions/fpclassify.hpp>
#include <memory>
#include <utility>
Go to the source code of this file.
Namespaces | |
anonymous_namespace{ResultSetIteration.cpp} | |
Macros | |
#define | DEF_GET_ENTRY_AT(query_type, columnar_output) |
#define | DATA_T int64_t |
#define | DATA_T int32_t |
#define | DATA_T int16_t |
#define | DATA_T int8_t |
#define | DATA_T float |
#define | DATA_T double |
Functions | |
TargetValue | anonymous_namespace{ResultSetIteration.cpp}::make_avg_target_value (const int8_t *ptr1, const int8_t compact_sz1, const int8_t *ptr2, const int8_t compact_sz2, const TargetInfo &target_info) |
const int8_t * | anonymous_namespace{ResultSetIteration.cpp}::advance_col_buff_to_slot (const int8_t *buff, const QueryMemoryDescriptor &query_mem_desc, const std::vector< TargetInfo > &targets, const size_t slot_idx, const bool separate_varlen_storage) |
const int8_t * | anonymous_namespace{ResultSetIteration.cpp}::columnar_elem_ptr (const size_t entry_idx, const int8_t *col1_ptr, const int8_t compact_sz1) |
int64_t | anonymous_namespace{ResultSetIteration.cpp}::int_resize_cast (const int64_t ival, const size_t sz) |
template<class T > | |
ScalarTargetValue | anonymous_namespace{ResultSetIteration.cpp}::make_scalar_tv (const T val) |
template<> | |
ScalarTargetValue | anonymous_namespace{ResultSetIteration.cpp}::make_scalar_tv (const float val) |
template<> | |
ScalarTargetValue | anonymous_namespace{ResultSetIteration.cpp}::make_scalar_tv (const double val) |
template<class T > | |
TargetValue | anonymous_namespace{ResultSetIteration.cpp}::build_array_target_value (const int8_t *buff, const size_t buff_sz, std::shared_ptr< RowSetMemoryOwner > row_set_mem_owner) |
TargetValue | anonymous_namespace{ResultSetIteration.cpp}::build_string_array_target_value (const int32_t *buff, const size_t buff_sz, const shared::StringDictKey &dict_key, const bool translate_strings, std::shared_ptr< RowSetMemoryOwner > row_set_mem_owner) |
TargetValue | anonymous_namespace{ResultSetIteration.cpp}::build_array_target_value (const SQLTypeInfo &array_ti, const int8_t *buff, const size_t buff_sz, const bool translate_strings, std::shared_ptr< RowSetMemoryOwner > row_set_mem_owner) |
template<class Tuple , size_t... indices> | |
std::vector< std::pair< const int8_t *, const int64_t > > | anonymous_namespace{ResultSetIteration.cpp}::make_vals_vector (std::index_sequence< indices...>, const Tuple &tuple) |
std::unique_ptr< ArrayDatum > | anonymous_namespace{ResultSetIteration.cpp}::lazy_fetch_chunk (const int8_t *ptr, const int64_t varlen_ptr) |
std::unique_ptr< ArrayDatum > | anonymous_namespace{ResultSetIteration.cpp}::fetch_data_from_gpu (int64_t varlen_ptr, const int64_t length, Data_Namespace::DataMgr *data_mgr, const int device_id) |
template<typename T > | |
std::pair< int64_t, int64_t > | anonymous_namespace{ResultSetIteration.cpp}::get_frag_id_and_local_idx (const std::vector< std::vector< T >> &frag_offsets, const size_t tab_or_col_idx, const int64_t global_idx) |
template<size_t NDIM, typename GeospatialGeoType , typename GeoTypeTargetValue , typename GeoTypeTargetValuePtr > | |
TargetValue | NestedArrayToGeoTargetValue (const int8_t *buf, const int64_t index, const SQLTypeInfo &ti, const ResultSet::GeoReturnType return_type) |
TargetValue | getTargetValueFromFlatBuffer (const int8_t *col_ptr, const TargetInfo &target_info, const size_t slot_idx, const size_t target_logical_idx, const size_t global_entry_idx, const size_t local_entry_idx, const bool translate_strings, const std::shared_ptr< RowSetMemoryOwner > &row_set_mem_owner_) |
template<typename T > | |
size_t | anonymous_namespace{ResultSetIteration.cpp}::make_bin_search (size_t l, size_t r, T &&is_empty_fn) |
Iteration part of the row set interface.
Definition in file ResultSetIteration.cpp.
#define DATA_T int64_t |
Definition at line 1273 of file ResultSetIteration.cpp.
#define DATA_T int32_t |
Definition at line 1273 of file ResultSetIteration.cpp.
#define DATA_T int16_t |
Definition at line 1273 of file ResultSetIteration.cpp.
#define DATA_T int8_t |
Definition at line 1273 of file ResultSetIteration.cpp.
#define DATA_T float |
Definition at line 1273 of file ResultSetIteration.cpp.
#define DATA_T double |
Definition at line 1273 of file ResultSetIteration.cpp.
#define DEF_GET_ENTRY_AT | ( | query_type, | |
columnar_output | |||
) |
Definition at line 1234 of file ResultSetIteration.cpp.
TargetValue getTargetValueFromFlatBuffer | ( | const int8_t * | col_ptr, |
const TargetInfo & | target_info, | ||
const size_t | slot_idx, | ||
const size_t | target_logical_idx, | ||
const size_t | global_entry_idx, | ||
const size_t | local_entry_idx, | ||
const bool | translate_strings, | ||
const std::shared_ptr< RowSetMemoryOwner > & | row_set_mem_owner_ | ||
) |
Definition at line 2214 of file ResultSetIteration.cpp.
References anonymous_namespace{ResultSetIteration.cpp}::build_array_target_value(), CHECK, CHECK_EQ, CHECK_GE, SQLTypeInfo::get_type(), FlatBufferManager::NestedArrayItem< NDIM >::is_null, FlatBufferManager::isFlatBuffer(), kARRAY, FlatBufferManager::NestedArrayItem< NDIM >::nof_values, run_benchmark_import::optional, TargetInfo::sql_type, UNREACHABLE, and FlatBufferManager::NestedArrayItem< NDIM >::values.
Referenced by ResultSet::getTargetValueFromBufferColwise().
TargetValue NestedArrayToGeoTargetValue | ( | const int8_t * | buf, |
const int64_t | index, | ||
const SQLTypeInfo & | ti, | ||
const ResultSet::GeoReturnType | return_type | ||
) |
Definition at line 1520 of file ResultSetIteration.cpp.
References CHECK_EQ, Geospatial::decompress_coords< double, SQLTypeInfo >(), ResultSet::GeoTargetValue, ResultSet::GeoTargetValueGpuPtr, ResultSet::GeoTargetValuePtr, SQLTypeInfo::get_compression(), SQLTypeInfoLite::is_geoint(), FlatBufferManager::NestedArrayItem< NDIM >::is_null, kENCODING_GEOINT, kENCODING_NONE, FlatBufferManager::NestedArrayItem< NDIM >::nof_sizes, FlatBufferManager::NestedArrayItem< NDIM >::nof_values, FlatBufferManager::NestedArrayItem< NDIM >::sizes_buffers, FlatBufferManager::NestedArrayItem< NDIM >::sizes_lengths, UNREACHABLE, FlatBufferManager::NestedArrayItem< NDIM >::values, and ResultSet::WktString.
Referenced by ResultSet::makeGeoTargetValue().