Skip to content

Commit

Permalink
javadoc complaints
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Alfonsi <[email protected]>
  • Loading branch information
Peter Alfonsi committed Jan 26, 2024
1 parent 6be8c6c commit 61cb54d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,19 @@
* Getters should be exposed by the KeyLookupStore which uses it.
*/
public class KeyStoreStats {
// Number of entries
protected CounterMetric size;
// Memory cap in bytes
protected long memSizeCapInBytes;
// Number of add attempts
protected CounterMetric numAddAttempts;
// Number of collisions
protected CounterMetric numCollisions;
// True if the store is at capacity
protected AtomicBoolean atCapacity;
// Number of removal attempts
protected CounterMetric numRemovalAttempts;
// Number of successful removal attempts
protected CounterMetric numSuccessfulRemovals;

protected KeyStoreStats(long memSizeCapInBytes) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,17 @@ public int getValue() {
}
}

// The modulo applied to values before adding into the RBM
protected final int modulo;
protected final int modulo_bitmask;
private final int modulo_bitmask;
// Since our modulo is always a power of two we can optimize it by ANDing with a particular bitmask
KeyStoreStats stats;
protected RoaringBitmap rbm;
private RoaringBitmap rbm;
private HashMap<Integer, CounterMetric> collidedIntCounters;
private HashMap<Integer, HashSet<Integer>> removalSets;
protected final ReentrantReadWriteLock lock = new ReentrantReadWriteLock();
protected final Lock readLock = lock.readLock();
protected final Lock writeLock = lock.writeLock();
private final ReentrantReadWriteLock lock = new ReentrantReadWriteLock();
private final Lock readLock = lock.readLock();
private final Lock writeLock = lock.writeLock();
private long mostRecentByteEstimate;

// Refresh size estimate every X new elements. Refreshes use the RBM's internal size estimator, which takes ~0.01 ms,
Expand Down

0 comments on commit 61cb54d

Please sign in to comment.