OmniSciDB  04ee39c94c
ResultSet.cpp File Reference

Basic constructors and methods of the row set interface. More...

#include "ResultSet.h"
#include "Allocators/CudaAllocator.h"
#include "DataMgr/BufferMgr/BufferMgr.h"
#include "Execute.h"
#include "GpuMemUtils.h"
#include "InPlaceSort.h"
#include "OutputBufferInitialization.h"
#include "RuntimeFunctions.h"
#include "Shared/SqlTypesLayout.h"
#include "Shared/checked_alloc.h"
#include "Shared/likely.h"
#include "Shared/thread_count.h"
#include <algorithm>
#include <bitset>
#include <future>
#include <numeric>
+ Include dependency graph for ResultSet.cpp:

Go to the source code of this file.

Functions

bool can_use_parallel_algorithms (const ResultSet &rows)
 
bool use_parallel_algorithms (const ResultSet &rows)
 

Detailed Description

Basic constructors and methods 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 ResultSet.cpp.

Function Documentation

◆ can_use_parallel_algorithms()

bool can_use_parallel_algorithms ( const ResultSet rows)

Definition at line 869 of file ResultSet.cpp.

Referenced by anonymous_namespace{RelAlgTranslator.cpp}::get_in_values_expr(), RelAlgTranslator::getInIntegerSetExpr(), RowSortException::RowSortException(), and use_parallel_algorithms().

869  {
870  return !rows.isTruncated();
871 }
+ Here is the caller graph for this function:

◆ use_parallel_algorithms()

bool use_parallel_algorithms ( const ResultSet rows)

Definition at line 873 of file ResultSet.cpp.

References can_use_parallel_algorithms().

Referenced by ColumnarResults::materializeAllLazyColumns(), RowSortException::RowSortException(), and anonymous_namespace{InputMetadata.cpp}::synthesize_metadata().

873  {
874  return can_use_parallel_algorithms(rows) && rows.entryCount() >= 20000;
875 }
bool can_use_parallel_algorithms(const ResultSet &rows)
Definition: ResultSet.cpp:869
+ Here is the call graph for this function:
+ Here is the caller graph for this function: