@@ -0,0 +1,1227 @@
+package to.etc.util;%0A%0A/**%0A * @author %3Ca href=%22mailto:jal@etc.to%22%3EFrits Jalvingh%3C/a%3E%0A * Created on 14-04-21.%0A */%0Afinal public class PrimeFinder %7B%0A%09private PrimeFinder() %7B%7D%0A%0A%09/**%0A%09 * List of primes for calculating hash bucket count, from http://compoasso.free.fr/primelistweb/page/prime/liste_online_en.php%0A%09 */%0A%09static private final int%5B%5D PRIMES = %7B%0A%09%0917, 61, 103, 181, 367, 691, 997, 1721, 2281, 3169,%0A%09%093803, 4409, 5077, 6131, 7109, 8009, 9109, 10093,%0A%09%0911069, 12037, 13009, 14084, 15077, 16073, 17011,%0A%09%0918061, 20089, 25801, 30881, 40177, 50077, 60037,%0A%09%0970051, 80071, 90073, 100003, 150001, 200029,%0A%09%09300007, 400009, 500009, 600011, 700001, 800011,%0A%09%09900001, 1000003, 2000003, 3000017, 4000037,%0A%09%095000011, 6000011, 8000009,%0A%09%0910000019, 15000017, 20000003, 30000001, 50000017,%0A%09%0980000023, 120000007, 170_000_009, 230_000_003,%0A%09%09250_000_117,%0A%09%09400_000_079,%0A%09%09600_000_041,%0A%09%09800_000_063,%0A%09%092_000_000_089,%0A%09%7D;%0A%0A%09/**%0A%09 * Find the first prime number larger than the value specified.%0A%09 */%0A%09static public int findFirstPrimeLargerThan(int size) %7B%0A%09%09for(int prime : PRIMES) %7B%09%09%09%09// Find the 1st higher prime%0A%09%09%09if(size %3C prime) %7B%0A%09%09%09%09return prime;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return PRIMES%5BPRIMES.length - 1%5D;%09%09// We'll abort anyway, I assume.%0A%09%7D%0A%0A%0A%7D%0A

Fix relations between ColumnStore and PhysicalTypes; implement a ColumnStore based bloom filter (incomplete).