mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-08-20 13:36:53 +00:00
Make Bloom size configurable without system properties
* BloomUriUniqFilter.java
make bloom size configurable via bean properties
change implementing class to BloomFilter64bit (given growing prevalance of 64bit JVMs and larger heaps)
* BloomUriUniqFilterTest.java
update test for property-set sizing
* BloomFilter64bit.java
improve comment
This commit is contained in:
@@ -52,7 +52,10 @@ implements UriUniqFilter.CrawlUriReceiver {
|
||||
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
this.filter = new BloomUriUniqFilter(2000,24);
|
||||
this.filter = new BloomUriUniqFilter();
|
||||
this.filter.setExpectedInserts(2000);
|
||||
this.filter.setHashCount(24);
|
||||
this.filter.afterPropertiesSet();
|
||||
this.filter.setDestination(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user