MCPcopy Create free account
hub / github.com/BirolLab/RNA-Bloom / BloomFilter

Method BloomFilter

src/rnabloom/bloom/BloomFilter.java:47–59  ·  view source on GitHub ↗
(long size, int numHash, HashFunction hashFunction)

Source from the content-addressed store, hash-verified

45 protected long popcount = -1;
46
47 public BloomFilter(long size, int numHash, HashFunction hashFunction) {
48
49 this.size = size;
50 try {
51 //System.out.println("unsafe");
52 this.bitArray = new UnsafeBitBuffer(size);
53 }
54 catch(NoSuchFieldException | IllegalArgumentException | IllegalAccessException e) {
55 this.bitArray = new LargeBitBuffer(size);
56 }
57 this.numHash = numHash;
58 this.hashFunction = hashFunction;
59 }
60
61 private static final String LABEL_SEPARATOR = ":";
62 private static final String LABEL_SIZE = "size";

Callers

nothing calls this directly

Calls 2

closeMethod · 0.65
readMethod · 0.45

Tested by

no test coverage detected