|
|
static constexpr uint32_t | CHIMP_GROUP_SIZE = 1024 |
|
static constexpr uint32_t | LEADING_ZERO_BITS_SIZE = 3 |
|
static constexpr uint32_t | LEADING_ZERO_BLOCK_SIZE = 8 |
|
static constexpr uint32_t | LEADING_ZERO_BLOCK_BIT_SIZE = LEADING_ZERO_BLOCK_SIZE * LEADING_ZERO_BITS_SIZE |
|
static constexpr uint32_t | MAX_LEADING_ZERO_BLOCKS = CHIMP_GROUP_SIZE / LEADING_ZERO_BLOCK_SIZE |
|
static constexpr uint32_t | MAX_BITS_USED_BY_ZERO_BLOCKS = MAX_LEADING_ZERO_BLOCKS * LEADING_ZERO_BLOCK_BIT_SIZE |
|
static constexpr uint32_t | MAX_BYTES_USED_BY_ZERO_BLOCKS = MAX_BITS_USED_BY_ZERO_BLOCKS / 8 |
| static constexpr uint32_t | BUFFER_SIZE |
◆ LeadingZeroBuffer()
396554 : current(0), counter(0), buffer(nullptr) {
396555 }
◆ Load()
template<bool EMPTY>
template<typename T>
396547 {
396551 }
Definition duckdb.cpp:396532
◆ SetBuffer()
396556 {
396557
396558
396559 this->buffer = buffer;
396560 this->counter = 0;
396561 }
◆ Flush()
396562 {
396563 if ((counter & 7) != 0) {
396564 FlushBuffer();
396565 }
396566 }
◆ BitsWritten()
396568 {
396569 return counter * 3ULL;
396570 }
◆ Reset()
396573 {
396574 this->counter = 0;
396575 current = 0;
396576#ifdef DEBUG
396578#endif
396579 }
◆ BlockIndex()
396589 {
396590 return ((counter >> 3ULL) * (LEADING_ZERO_BLOCK_BIT_SIZE / 8ULL));
396591 }
◆ FlushBuffer()
396593 {
396595 return;
396596 }
396599#ifdef DEBUG
396600
396601
396606 }
396608#endif
396609 }
◆ Insert()
396611 {
396613#ifdef DEBUG
396615#endif
396617#ifdef DEBUG
396618
396620#endif
396621
396622 if ((counter & (LEADING_ZERO_BLOCK_SIZE - 1)) == 7) {
396623 FlushBuffer();
396624 current = 0;
396625 }
396626 }
396627 counter++;
396628 }
◆ Extract()
396630 {
396633
396636 counter++;
396638 }
◆ GetCount()
396639 {
396640 return counter;
396641 }
◆ BlockCount()
396642 {
396643 return (counter >> 3) + ((counter & 7) != 0);
396644 }
◆ BUFFER_SIZE
Initial value:=
MAX_BYTES_USED_BY_ZERO_BLOCKS + (
sizeof(
uint32_t) - (LEADING_ZERO_BLOCK_BIT_SIZE / 8))
The documentation for this class was generated from the following file: