OmniSciDB  bf83d84833
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ResultSetIteration.cpp File Reference

Iteration part of the row set interface. More...

#include "Execute.h"
#include "Geospatial/Compression.h"
#include "Geospatial/Types.h"
#include "ParserNode.h"
#include "QueryEngine/TargetValue.h"
#include "ResultSet.h"
#include "ResultSetGeoSerialization.h"
#include "RuntimeFunctions.h"
#include "Shared/SqlTypesLayout.h"
#include "Shared/likely.h"
#include "Shared/quantile.h"
#include "Shared/sqltypes.h"
#include "TypePunning.h"
#include <boost/math/special_functions/fpclassify.hpp>
#include <memory>
#include <utility>
+ Include dependency graph for ResultSetIteration.cpp:

Go to the source code of this file.

Classes

struct  anonymous_namespace{ResultSetIteration.cpp}::GeoLazyFetchHandler
 
struct  anonymous_namespace{ResultSetIteration.cpp}::GeoQueryOutputFetchHandler
 
struct  anonymous_namespace{ResultSetIteration.cpp}::GeoTargetValueBuilder< GEO_SOURCE_TYPE, GeoTargetFetcher >
 

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 int dict_id, const bool translate_strings, std::shared_ptr< RowSetMemoryOwner > row_set_mem_owner, const Catalog_Namespace::Catalog *catalog)
 
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, const Catalog_Namespace::Catalog *catalog)
 
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< ArrayDatumanonymous_namespace{ResultSetIteration.cpp}::lazy_fetch_chunk (const int8_t *ptr, const int64_t varlen_ptr)
 
std::unique_ptr< ArrayDatumanonymous_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)
 
double anonymous_namespace{ResultSetIteration.cpp}::calculate_quantile (int8_t const *ptr, double const q)
 
template<typename T >
size_t anonymous_namespace{ResultSetIteration.cpp}::make_bin_search (size_t l, size_t r, T &&is_empty_fn)
 

Detailed Description

Iteration part of the row set interface.

Author
Alex Suhan alex@.nosp@m.mapd.nosp@m..com Copyright (c) 2014 MapD Technologies, Inc. All rights reserved.

Definition in file ResultSetIteration.cpp.

Macro Definition Documentation

#define DATA_T   int64_t

Definition at line 1213 of file ResultSetIteration.cpp.

#define DATA_T   int32_t

Definition at line 1213 of file ResultSetIteration.cpp.

#define DATA_T   int16_t

Definition at line 1213 of file ResultSetIteration.cpp.

#define DATA_T   int8_t

Definition at line 1213 of file ResultSetIteration.cpp.

#define DATA_T   float

Definition at line 1213 of file ResultSetIteration.cpp.

#define DATA_T   double

Definition at line 1213 of file ResultSetIteration.cpp.

#define DEF_GET_ENTRY_AT (   query_type,
  columnar_output 
)
Value:
template DATA_T ResultSet::getEntryAt<DATA_T, query_type, columnar_output>( \
const size_t row_idx, const size_t target_idx, const size_t slot_idx) const;
#define DATA_T

Definition at line 1174 of file ResultSetIteration.cpp.