OmniSciDB  04ee39c94c
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::StdSet }
 

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.

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

Definition in file CountDistinctDescriptor.h.

Enumeration Type Documentation

◆ CountDistinctImplType

Function Documentation

◆ bitmap_bits_to_bytes()

size_t bitmap_bits_to_bytes ( const size_t  bitmap_sz)
inline

Definition at line 33 of file CountDistinctDescriptor.h.

Referenced by CountDistinctDescriptor::bitmapSizeBytes(), and InValuesBitmap::InValuesBitmap().

33  {
34  size_t bitmap_byte_sz = bitmap_sz / 8;
35  if (bitmap_sz % 8) {
36  ++bitmap_byte_sz;
37  }
38  return bitmap_byte_sz;
39 }
+ Here is the caller graph for this function:

◆ operator!=()

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

Definition at line 76 of file CountDistinctDescriptor.h.

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

◆ operator==()