OmniSciDB
72c90bc290
|
#include <InValuesBitmap.h>
Public Member Functions | |
InValuesBitmap (const std::vector< int64_t > &values, const int64_t null_val, const Data_Namespace::MemoryLevel memory_level, const int device_count, Data_Namespace::DataMgr *data_mgr) | |
~InValuesBitmap () | |
llvm::Value * | codegen (llvm::Value *needle, Executor *executor) const |
bool | isEmpty () const |
bool | hasNull () const |
size_t | gpuBuffers () const |
Private Attributes | |
std::vector < Data_Namespace::AbstractBuffer * > | gpu_buffers_ |
std::vector< int8_t * > | bitsets_ |
bool | rhs_has_null_ |
int64_t | min_val_ |
int64_t | max_val_ |
const int64_t | null_val_ |
const Data_Namespace::MemoryLevel | memory_level_ |
const int | device_count_ |
Data_Namespace::DataMgr * | data_mgr_ |
Definition at line 41 of file InValuesBitmap.h.
InValuesBitmap::InValuesBitmap | ( | const std::vector< int64_t > & | values, |
const int64_t | null_val, | ||
const Data_Namespace::MemoryLevel | memory_level, | ||
const int | device_count, | ||
Data_Namespace::DataMgr * | data_mgr | ||
) |
Definition at line 34 of file InValuesBitmap.cpp.
References agg_count_distinct_bitmap(), Data_Namespace::DataMgr::alloc(), bitsets_, CHECK, CHECK_EQ, checked_calloc(), Data_Namespace::CPU_LEVEL, data_mgr_, device_count_, g_bitmap_memory_limit, getQueryEngineCudaStreamForDevice(), gpu_buffers_, Data_Namespace::GPU_LEVEL, max_val_, memory_level_, min_val_, and rhs_has_null_.
InValuesBitmap::~InValuesBitmap | ( | ) |
Definition at line 108 of file InValuesBitmap.cpp.
References bitsets_, CHECK, CHECK_EQ, Data_Namespace::CPU_LEVEL, data_mgr_, Data_Namespace::DataMgr::free(), gpu_buffers_, and memory_level_.
llvm::Value * InValuesBitmap::codegen | ( | llvm::Value * | needle, |
Executor * | executor | ||
) | const |
Definition at line 123 of file InValuesBitmap.cpp.
References Parser::IntLiteral::analyzeValue(), AUTOMATIC_IR_METADATA, bitsets_, CHECK, CHECK_EQ, CodeGenerator::codegenHoistedConstants(), get_int_type(), inline_int_null_val(), kBOOLEAN, kENCODING_NONE, max_val_, min_val_, and null_val_.
Referenced by CodeGenerator::codegen().
|
inline |
Definition at line 56 of file InValuesBitmap.h.
References gpu_buffers_.
bool InValuesBitmap::hasNull | ( | ) | const |
bool InValuesBitmap::isEmpty | ( | ) | const |
|
private |
Definition at line 60 of file InValuesBitmap.h.
Referenced by codegen(), InValuesBitmap(), isEmpty(), and ~InValuesBitmap().
|
private |
Definition at line 67 of file InValuesBitmap.h.
Referenced by InValuesBitmap(), and ~InValuesBitmap().
|
private |
Definition at line 66 of file InValuesBitmap.h.
Referenced by InValuesBitmap().
|
private |
Definition at line 59 of file InValuesBitmap.h.
Referenced by gpuBuffers(), InValuesBitmap(), and ~InValuesBitmap().
|
private |
Definition at line 63 of file InValuesBitmap.h.
Referenced by codegen(), and InValuesBitmap().
|
private |
Definition at line 65 of file InValuesBitmap.h.
Referenced by InValuesBitmap(), and ~InValuesBitmap().
|
private |
Definition at line 62 of file InValuesBitmap.h.
Referenced by codegen(), and InValuesBitmap().
|
private |
Definition at line 64 of file InValuesBitmap.h.
Referenced by codegen().
|
private |
Definition at line 61 of file InValuesBitmap.h.
Referenced by hasNull(), and InValuesBitmap().