Rename VanillaChronicleHash.tierHashLookupEntrySize field to tierHashLookupSlotSize, update the memory layout specification, and key hashing and checksum algorithms specification

This commit is contained in:
leventov
2016-01-30 19:20:50 +07:00
parent 040a8d69b6
commit 0d93fb1d22
10 changed files with 422 additions and 78 deletions
@@ -84,10 +84,10 @@ public abstract class CompactOffHeapLinearHashTable {
private final long keyMask;
private final long valueMask;
CompactOffHeapLinearHashTable(long capacity, int entrySize, int keyBits, int valueBits) {
CompactOffHeapLinearHashTable(long capacity, int slotSize, int keyBits, int valueBits) {
this.capacityMask = capacity - 1L;
this.capacityMask2 = capacityMask * entrySize;
this.capacityMask2 = capacityMask * slotSize;
this.keyBits = keyBits;
this.keyMask = mask(keyBits);
@@ -95,7 +95,7 @@ public abstract class CompactOffHeapLinearHashTable {
}
CompactOffHeapLinearHashTable(VanillaChronicleHash h) {
this(h.tierHashLookupCapacity, h.tierHashLookupEntrySize, h.tierHashLookupKeyBits,
this(h.tierHashLookupCapacity, h.tierHashLookupSlotSize, h.tierHashLookupKeyBits,
h.tierHashLookupValueBits);
}