File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
fastfilter/src/main/java/org/fastfilter Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 33import java .util .Random ;
44
55public class Hash {
6- private static final Random random = new Random ();
6+ private static Random random = new Random ();
77
88 public static void setSeed (long seed ) {
99 random .setSeed (seed );
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public long getBitCount() {
4646 }
4747
4848 static int calculateSegmentLength (int arity , int size ) {
49- final int segmentLength ;
49+ int segmentLength ;
5050 if (arity == 3 ) {
5151 segmentLength = 1 << (int ) Math .floor (Math .log (size ) / Math .log (3.33 ) + 2.11 );
5252 } else if (arity == 4 ) {
@@ -218,6 +218,7 @@ private void addAll(long[] keys) {
218218 alone = null ;
219219 t2count = null ;
220220 t2hash = null ;
221+
221222 for (int i = reverseOrderPos - 1 ; i >= 0 ; i --) {
222223 long hash = reverseOrder [i ];
223224 int found = reverseH [i ];
You can’t perform that action at this time.
0 commit comments