-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: HashTable::toString() used to show incorrect total number of occupied slots. Sample output: ``` [HashTable keys: 1 hash mode: HASH capacity: 2048 distinct count: 1000 tombstones count: 0] <VectorHasher type=BIGINT isRange_=0 rangeSize= 1 min=0 max=0 multiplier=1 numDistinct=0> 0 probes 1000 tag loads 512 row loads 500 hits Total buckets: 128 Total slots used: 500 8 buckets with 1 slots used 21 buckets with 2 slots used 25 buckets with 3 slots used 27 buckets with 4 slots used 18 buckets with 5 slots used 12 buckets with 6 slots used 10 buckets with 7 slots used 2 buckets with 8 slots used 1 buckets with 9 slots used 1 buckets with 10 slots used ``` Also, add toString(startBucket, numBuckets) API to print details for a range of buckets. For each bucket, prints 16 tags: a value, E if empty, T if tombstone. For example, toString(31, 5): ``` 31: 194, 208, 249, 224, E, E, E, E, E, E, E, E, E, E, E, E 32: 130, 249, 134, 129, 136, 161, 134, E, E, E, E, E, E, E, E, E 33: 227, 208, 245, 147, 182, E, E, E, E, E, E, E, E, E, E, E 34: 180, 193, E, E, E, E, E, E, E, E, E, E, E, E, E, E 35: 246, 134, 241, E, E, E, E, E, E, E, E, E, E, E, E, E ``` Pull Request resolved: #7921 Reviewed By: xiaoxmeng Differential Revision: D51961035 Pulled By: mbasmanova fbshipit-source-id: 478c879c1ab2b5cfe6ed993363f2ad3aaa194f78
- Loading branch information
1 parent
b908e77
commit 8d97086
Showing
3 changed files
with
154 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters