Examples of MemLongFPSet


Examples of org.archive.util.fingerprint.MemLongFPSet

    private boolean received = false;
   
  protected void setUp() throws Exception {
    super.setUp();
        // 17 makes a MemLongFPSet of one meg of longs (64megs).
    this.filter = new FPUriUniqFilter(new MemLongFPSet(10, 0.75f));
    this.filter.setDestination(this);
    }
View Full Code Here

Examples of org.archive.util.fingerprint.MemLongFPSet

        } else if(MemUriUniqFilter.class.getName().endsWith(testClass)) {
            // mem hashset
            uniq = new MemUriUniqFilter();
        } else if (FPUriUniqFilter.class.getName().endsWith(testClass)) {
            // mem fp set (open-addressing) setup
            uniq = new FPUriUniqFilter(new MemLongFPSet(21,0.75f));
        }
        uniq.setDestination(this);
        return uniq;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.