hash = basis for each octet_of_data to be hashed hash = hash * FNV_prime hash = hash xor octet_of_data return hash
hash = basis for each octet_of_data to be hashed hash = hash xor octet_of_data hash = hash * FNV_prime return hash
172173174175176177178
StoreParams.NUM_SYNC_BATCHES_DEFAULT, StoreParams.SEGMENT_FILE_SIZE_MB_DEFAULT, segmentFactory, StoreParams.SEGMENT_COMPACT_FACTOR_DEFAULT, StoreParams.HASH_LOAD_FACTOR_DEFAULT, new FnvHashFunction()); }
236237238239240241242
StoreParams.NUM_SYNC_BATCHES_DEFAULT, segmentFileSizeMB, segmentFactory, StoreParams.SEGMENT_COMPACT_FACTOR_DEFAULT, StoreParams.HASH_LOAD_FACTOR_DEFAULT, new FnvHashFunction()); }
304305306307308309310
numSyncBatches, segmentFileSizeMB, segmentFactory, StoreParams.SEGMENT_COMPACT_FACTOR_DEFAULT, StoreParams.HASH_LOAD_FACTOR_DEFAULT, new FnvHashFunction()); }
506507508509510511512
batchSize, numSyncBatches, segmentFileSizeMB, segmentFactory, segmentCompactFactor, new FnvHashFunction()); }
686687688689690691692
numSyncBatches, segmentFileSizeMB, segmentFactory, segmentCompactFactor, hashLoadFactor, new FnvHashFunction()); }
911912913914915916917
1091109210931094109510961097
24252627282930
super(TestFnvTieredHashFunction.class.getSimpleName()); } @Override protected HashFunction<byte[]> createHashFunction() { return new FnvHashFunction(); }
super(TestFnvHash.class.getSimpleName()); } @Override protected HashFunction<byte[]> createHashFunction() { return new FnvHashFunction(); }
8788899091929394959697
// Set the default segment factory this.setSegmentFactory(new MappedSegmentFactory()); // Set the default hash function this.setHashFunction(new FnvHashFunction()); // Load properties from the default configuration file File file = new File(homeDir, CONFIG_PROPERTIES_FILE); if(file.exists()) { this.load(file);