OmniSciDB  85c2d10cdc
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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.


struct  CountDistinctDescriptor


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


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.

Alex Suhan Copyright (c) 2017 MapD Technologies, Inc. All rights reserved.

Definition in file CountDistinctDescriptor.h.

Enumeration Type Documentation

Function Documentation

size_t bitmap_bits_to_bytes ( const size_t  bitmap_sz)

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:

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

Definition at line 76 of file CountDistinctDescriptor.h.

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