Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ long get_hash(long input) {
return XxHash.hashLong(input, 0L) ; // CD edit for datasketches hash function using same seed.
}

public long get_space_use() { return 0 ; }
public long getSpaceUse() { return 0 ; }
// public int get_bits_per_entry() { return 0 ; }
//
// public abstract long get_num_entries(boolean include_all_internal_filters);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,22 @@ void clear() {

boolean next() {

if (index == qf.get_num_slots()) {
if (index == qf.getNumSlots()) {
return false;
}

long slot = qf.get_slot(index);
long slot = qf.getSlot(index);
boolean occupied = (slot & 1) != 0;
boolean continuation = (slot & 2) != 0;
boolean shifted = (slot & 4) != 0;


while (!occupied && !continuation && !shifted && index < qf.get_num_slots()) {
while (!occupied && !continuation && !shifted && index < qf.getNumSlots()) {
index++;
if (index == qf.get_num_slots()) {
if (index == qf.getNumSlots()) {
return false;
}
slot = qf.get_slot(index);
slot = qf.getSlot(index);
occupied = (slot & 1) != 0;
continuation = (slot & 2) != 0;
shifted = (slot & 4) != 0;
Expand Down
Loading