1 /* ---------------------------------------------------------------------------- 2 * This file was automatically generated by SWIG (http://www.swig.org). 3 * Version 4.0.2 4 * 5 * Do not make changes to this file unless you know what you are doing--modify 6 * the SWIG interface file instead. 7 * ----------------------------------------------------------------------------- */ 8 9 package btllib; 10 11 public class SeedBloomFilter { 12 private transient long swigCPtr; 13 protected transient boolean swigCMemOwn; 14 SeedBloomFilter(long cPtr, boolean cMemoryOwn)15 protected SeedBloomFilter(long cPtr, boolean cMemoryOwn) { 16 swigCMemOwn = cMemoryOwn; 17 swigCPtr = cPtr; 18 } 19 getCPtr(SeedBloomFilter obj)20 protected static long getCPtr(SeedBloomFilter obj) { 21 return (obj == null) ? 0 : obj.swigCPtr; 22 } 23 24 @SuppressWarnings("deprecation") finalize()25 protected void finalize() { 26 delete(); 27 } 28 delete()29 public synchronized void delete() { 30 if (swigCPtr != 0) { 31 if (swigCMemOwn) { 32 swigCMemOwn = false; 33 btllibJNI.delete_SeedBloomFilter(swigCPtr); 34 } 35 swigCPtr = 0; 36 } 37 } 38 SeedBloomFilter()39 public SeedBloomFilter() { 40 this(btllibJNI.new_SeedBloomFilter__SWIG_0(), true); 41 } 42 SeedBloomFilter(long bytes, long k, SWIGTYPE_p_std__vectorT_std__string_t seeds, long hash_num_per_seed)43 public SeedBloomFilter(long bytes, long k, SWIGTYPE_p_std__vectorT_std__string_t seeds, long hash_num_per_seed) { 44 this(btllibJNI.new_SeedBloomFilter__SWIG_1(bytes, k, SWIGTYPE_p_std__vectorT_std__string_t.getCPtr(seeds), hash_num_per_seed), true); 45 } 46 SeedBloomFilter(String path)47 public SeedBloomFilter(String path) { 48 this(btllibJNI.new_SeedBloomFilter__SWIG_2(path), true); 49 } 50 insert(String seq, long seq_len)51 public void insert(String seq, long seq_len) { 52 btllibJNI.SeedBloomFilter_insert__SWIG_0(swigCPtr, this, seq, seq_len); 53 } 54 insert(String seq)55 public void insert(String seq) { 56 btllibJNI.SeedBloomFilter_insert__SWIG_1(swigCPtr, this, seq); 57 } 58 contains(String seq, long seq_len)59 public SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_int_t_t contains(String seq, long seq_len) { 60 return new SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_int_t_t(btllibJNI.SeedBloomFilter_contains__SWIG_0(swigCPtr, this, seq, seq_len), true); 61 } 62 contains(String seq)63 public SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_int_t_t contains(String seq) { 64 return new SWIGTYPE_p_std__vectorT_std__vectorT_unsigned_int_t_t(btllibJNI.SeedBloomFilter_contains__SWIG_1(swigCPtr, this, seq), true); 65 } 66 contains(SWIGTYPE_p_uint64_t hashes)67 public boolean contains(SWIGTYPE_p_uint64_t hashes) { 68 return btllibJNI.SeedBloomFilter_contains__SWIG_2(swigCPtr, this, SWIGTYPE_p_uint64_t.getCPtr(hashes)); 69 } 70 contains(SWIGTYPE_p_std__vectorT_uint64_t_t hashes)71 public boolean contains(SWIGTYPE_p_std__vectorT_uint64_t_t hashes) { 72 return btllibJNI.SeedBloomFilter_contains__SWIG_3(swigCPtr, this, SWIGTYPE_p_std__vectorT_uint64_t_t.getCPtr(hashes)); 73 } 74 get_bytes()75 public long get_bytes() { 76 return btllibJNI.SeedBloomFilter_get_bytes(swigCPtr, this); 77 } 78 get_pop_cnt()79 public SWIGTYPE_p_uint64_t get_pop_cnt() { 80 return new SWIGTYPE_p_uint64_t(btllibJNI.SeedBloomFilter_get_pop_cnt(swigCPtr, this), true); 81 } 82 get_occupancy()83 public double get_occupancy() { 84 return btllibJNI.SeedBloomFilter_get_occupancy(swigCPtr, this); 85 } 86 get_hash_num()87 public long get_hash_num() { 88 return btllibJNI.SeedBloomFilter_get_hash_num(swigCPtr, this); 89 } 90 get_fpr()91 public double get_fpr() { 92 return btllibJNI.SeedBloomFilter_get_fpr(swigCPtr, this); 93 } 94 get_k()95 public long get_k() { 96 return btllibJNI.SeedBloomFilter_get_k(swigCPtr, this); 97 } 98 get_seeds()99 public SWIGTYPE_p_std__vectorT_std__string_t get_seeds() { 100 return new SWIGTYPE_p_std__vectorT_std__string_t(btllibJNI.SeedBloomFilter_get_seeds(swigCPtr, this), false); 101 } 102 get_parsed_seeds()103 public SWIGTYPE_p_std__vectorT_SpacedSeed_t get_parsed_seeds() { 104 return new SWIGTYPE_p_std__vectorT_SpacedSeed_t(btllibJNI.SeedBloomFilter_get_parsed_seeds(swigCPtr, this), false); 105 } 106 get_hash_num_per_seed()107 public long get_hash_num_per_seed() { 108 return btllibJNI.SeedBloomFilter_get_hash_num_per_seed(swigCPtr, this); 109 } 110 get_kmer_bloom_filter()111 public KmerBloomFilter get_kmer_bloom_filter() { 112 return new KmerBloomFilter(btllibJNI.SeedBloomFilter_get_kmer_bloom_filter(swigCPtr, this), false); 113 } 114 write(String path)115 public void write(String path) { 116 btllibJNI.SeedBloomFilter_write(swigCPtr, this, path); 117 } 118 119 } 120