test_class.declarator: bf
test_class.modifier: public
test_class.original_string: public BloomFilter bf;
test_class.type: BloomFilter
test_class.var_name: bf
test_class.declarator: ELEMENTS = 10000
test_class.modifier: static final
test_class.original_string: static final int ELEMENTS = 10000;
test_class.type: int
test_class.var_name: ELEMENTS
test_class.file: ml/streaminer/src/test/java/org/streaminer/stream/membership/BloomFilterTest.java
test_class.identifier: BloomFilterTest
test_case.body: @Test
      public void testAdd() {
          System.out.println("add");
          
          for (int i = 0; i < 100; i++) {
              String val = UUID.randomUUID().toString();
              Key k = new Key(val.getBytes());
              bf.add(k);
              assertTrue(bf.membershipTest(k));
          }
      }
test_case.class_method_signature: BloomFilterTest.testAdd()
test_case.full_signature: @Test public void testAdd()
test_case.identifier: testAdd
test_case.invocations: println toString randomUUID getBytes add assertTrue membershipTest
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAdd()
focal_class.declarator: bitvalues = new byte[] {
      (byte)0x01,
      (byte)0x02,
      (byte)0x04,
      (byte)0x08,
      (byte)0x10,
      (byte)0x20,
      (byte)0x40,
      (byte)0x80
    }
focal_class.modifier: private static final
focal_class.original_string: private static final byte[] bitvalues = new byte[] {
      (byte)0x01,
      (byte)0x02,
      (byte)0x04,
      (byte)0x08,
      (byte)0x10,
      (byte)0x20,
      (byte)0x40,
      (byte)0x80
    };
focal_class.type: byte[]
focal_class.var_name: bitvalues
focal_class.declarator: bits
focal_class.original_string: BitSet bits;
focal_class.type: BitSet
focal_class.var_name: bits
focal_class.file: ml/streaminer/src/main/java/org/streaminer/stream/membership/BloomFilter.java
focal_class.identifier: BloomFilter
focal_class.class_method_signature: BloomFilter.BloomFilter()
focal_class.full_signature: public  BloomFilter()
focal_class.identifier: BloomFilter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  BloomFilter()
focal_class.class_method_signature: BloomFilter.BloomFilter(int vectorSize, int nbHash, int hashType)
focal_class.full_signature: public  BloomFilter(int vectorSize, int nbHash, int hashType)
focal_class.identifier: BloomFilter
focal_class.modifiers: public
focal_class.parameters: (int vectorSize, int nbHash, int hashType)
focal_class.signature:  BloomFilter(int vectorSize, int nbHash, int hashType)
focal_class.class_method_signature: BloomFilter.add(Key key)
focal_class.full_signature: @Override public void add(Key key)
focal_class.identifier: add
focal_class.modifiers: @Override public
focal_class.parameters: (Key key)
focal_class.return: void
focal_class.signature: void add(Key key)
focal_class.class_method_signature: BloomFilter.and(AbstractFilter filter)
focal_class.full_signature: @Override public void and(AbstractFilter filter)
focal_class.identifier: and
focal_class.modifiers: @Override public
focal_class.parameters: (AbstractFilter filter)
focal_class.return: void
focal_class.signature: void and(AbstractFilter filter)
focal_class.class_method_signature: BloomFilter.membershipTest(Key key)
focal_class.full_signature: @Override public boolean membershipTest(Key key)
focal_class.identifier: membershipTest
focal_class.modifiers: @Override public
focal_class.parameters: (Key key)
focal_class.return: boolean
focal_class.signature: boolean membershipTest(Key key)
focal_class.class_method_signature: BloomFilter.not()
focal_class.full_signature: @Override public void not()
focal_class.identifier: not
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void not()
focal_class.class_method_signature: BloomFilter.or(AbstractFilter filter)
focal_class.full_signature: @Override public void or(AbstractFilter filter)
focal_class.identifier: or
focal_class.modifiers: @Override public
focal_class.parameters: (AbstractFilter filter)
focal_class.return: void
focal_class.signature: void or(AbstractFilter filter)
focal_class.class_method_signature: BloomFilter.xor(AbstractFilter filter)
focal_class.full_signature: @Override public void xor(AbstractFilter filter)
focal_class.identifier: xor
focal_class.modifiers: @Override public
focal_class.parameters: (AbstractFilter filter)
focal_class.return: void
focal_class.signature: void xor(AbstractFilter filter)
focal_class.class_method_signature: BloomFilter.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: BloomFilter.getVectorSize()
focal_class.full_signature: public int getVectorSize()
focal_class.identifier: getVectorSize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getVectorSize()
focal_class.class_method_signature: BloomFilter.write(DataOutput out)
focal_class.full_signature: @Override public void write(DataOutput out)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (DataOutput out)
focal_class.return: void
focal_class.signature: void write(DataOutput out)
focal_class.class_method_signature: BloomFilter.readFields(DataInput in)
focal_class.full_signature: @Override public void readFields(DataInput in)
focal_class.identifier: readFields
focal_class.modifiers: @Override public
focal_class.parameters: (DataInput in)
focal_class.return: void
focal_class.signature: void readFields(DataInput in)
focal_class.class_method_signature: BloomFilter.getNBytes()
focal_class.full_signature: private int getNBytes()
focal_class.identifier: getNBytes
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getNBytes()
focal_class.superclass: extends AbstractFilter
focal_method.body: @Override
    public void add(Key key) {
      if(key == null) {
        throw new NullPointerException("key cannot be null");
      }
  
      int[] h = hash.hash(key);
      hash.clear();
  
      for(int i = 0; i < nbHash; i++) {
        bits.set(h[i]);
      }
    }
focal_method.class_method_signature: BloomFilter.add(Key key)
focal_method.full_signature: @Override public void add(Key key)
focal_method.identifier: add
focal_method.invocations: hash clear set
focal_method.modifiers: @Override public
focal_method.parameters: (Key key)
focal_method.return: void
focal_method.signature: void add(Key key)