OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CountDistinctDescriptor.h File Reference

Descriptor for the storage layout use for (approximate) count distinct operations. More...

+ Include dependency graph for CountDistinctDescriptor.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CountDistinctDescriptor
 

Enumerations

enum  CountDistinctImplType { CountDistinctImplType::Invalid, CountDistinctImplType::Bitmap, CountDistinctImplType::UnorderedSet }
 

Functions

size_t bitmap_bits_to_bytes (const size_t bitmap_sz)
 
bool operator== (const CountDistinctDescriptor &lhs, const CountDistinctDescriptor &rhs)
 
bool operator!= (const CountDistinctDescriptor &lhs, const CountDistinctDescriptor &rhs)
 

Detailed Description

Descriptor for the storage layout use for (approximate) count distinct operations.

Definition in file CountDistinctDescriptor.h.

Enumeration Type Documentation

Function Documentation

size_t bitmap_bits_to_bytes ( const size_t  bitmap_sz)
inline

Definition at line 31 of file CountDistinctDescriptor.h.

Referenced by CountDistinctDescriptor::bitmapSizeBytes().

31  {
32  size_t bitmap_byte_sz = bitmap_sz / 8;
33  if (bitmap_sz % 8) {
34  ++bitmap_byte_sz;
35  }
36  return bitmap_byte_sz;
37 }

+ Here is the caller graph for this function:

bool operator!= ( const CountDistinctDescriptor lhs,
const CountDistinctDescriptor rhs 
)
inline

Definition at line 77 of file CountDistinctDescriptor.h.

78  {
79  return !(lhs == rhs);
80 }