private void bumpScores ( Map < Long , Score > candidates , List < Bucket > buckets , int ix ) { for ( ; ix < buckets . size ( ) ; ix ++ ) { Bucket b = buckets . get ( ix ) ; if ( b . nextfree > CUTOFF_FACTOR_2 * candidates . size ( ) ) return ; double score = b . getScore ( ) ; for ( Score s : candidates . values ( ) ) if ( b . contains ( s . id ) ) s . score += score ; } }
Goes through the buckets from ix and out checking for each candidate if it s in one of the buckets and if so increasing its score accordingly . No new candidates are added .