Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
#include <bitmap.h>
Public Member Functions | |
Bitmap (int64_t num_bits) | |
template<bool mod> | |
void | Set (int64_t bit_index, bool v) |
template<bool mod> | |
bool | Get (int64_t bit_index) const |
void | And (const Bitmap *src) |
Bitwise ANDs the src bitmap into this one. More... | |
void | Or (const Bitmap *src) |
Bitwise ORs the src bitmap into this one. More... | |
void | SetAllBits (bool b) |
int64_t | size () const |
std::string | DebugString (bool print_bits) |
If 'print_bits' prints 0/1 per bit, otherwise it prints the int64_t value. More... | |
Private Attributes | |
std::vector< uint64_t > | buffer_ |
int64_t | size_ |
Bitmap vector utility class. TODO: investigate perf.
|
inline |
Definition at line 31 of file bitmap.h.
References buffer_, impala::BitUtil::RoundUpNumi64(), and size_.
|
inline |
Bitwise ANDs the src bitmap into this one.
Definition at line 63 of file bitmap.h.
References buffer_, and size().
Referenced by impala::RuntimeState::AddBitmapFilter().
string Bitmap::DebugString | ( | bool | print_bits | ) |
|
inline |
Returns true if the bit at 'bit_index' is set. If mod is true, this function will first mod the bit_index by the bitmap size.
Definition at line 54 of file bitmap.h.
References buffer_, and size().
Referenced by impala::HdfsParquetScanner::ColumnReader< T >::ReadSlot().
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 88 of file bitmap.h.
Referenced by And(), Bitmap(), DebugString(), Get(), Or(), Set(), and SetAllBits().
|
private |
Definition at line 89 of file bitmap.h.
Referenced by Bitmap(), DebugString(), and size().