Skip to content

Commit

Permalink
Merge pull request #573 from apache/quotient-filter
Browse files Browse the repository at this point in the history
style changes
  • Loading branch information
AlexanderSaydakov authored Jun 18, 2024
2 parents 2a558a4 + 078c1f4 commit 5359b6a
Show file tree
Hide file tree
Showing 4 changed files with 610 additions and 753 deletions.
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

0 comments on commit 5359b6a

Please sign in to comment.