Examples of membershipTest()


Examples of edu.isi.karma.kr2rml.writer.KR2RMLBloomFilter.membershipTest()

      k = new Key(("<http://lod.isi.edu/cs548/person/Taheriyan>").getBytes());
      assertTrue(schedulePersonBF.membershipTest(k));
      k = new Key(("<http://lod.isi.edu/cs548/person/Ambite>").getBytes());
      assertTrue(schedulePersonBF.membershipTest(k));
      k = new Key(("<http://lod.isi.edu/cs548/person/Szekely>").getBytes());
      assertTrue(schedulePersonBF.membershipTest(k));
      k = new Key(("<http://lod.isi.edu/cs548/person/Knoblock>").getBytes());
      assertTrue(schedulePersonBF.membershipTest(k));
      assertEquals(5, schedulePersonBF.estimateNumberOfHashedValues());
     
      KR2RMLBloomFilter intersectionBF = new KR2RMLBloomFilter(KR2RMLBloomFilter.defaultVectorSize, KR2RMLBloomFilter.defaultnbHash, Hash.JENKINS_HASH);
View Full Code Here

Examples of edu.isi.karma.kr2rml.writer.KR2RMLBloomFilter.membershipTest()

      k = new Key(("<http://lod.isi.edu/cs548/person/Ambite>").getBytes());
      assertTrue(schedulePersonBF.membershipTest(k));
      k = new Key(("<http://lod.isi.edu/cs548/person/Szekely>").getBytes());
      assertTrue(schedulePersonBF.membershipTest(k));
      k = new Key(("<http://lod.isi.edu/cs548/person/Knoblock>").getBytes());
      assertTrue(schedulePersonBF.membershipTest(k));
      assertEquals(5, schedulePersonBF.estimateNumberOfHashedValues());
     
      KR2RMLBloomFilter intersectionBF = new KR2RMLBloomFilter(KR2RMLBloomFilter.defaultVectorSize, KR2RMLBloomFilter.defaultnbHash, Hash.JENKINS_HASH);
      intersectionBF.or(peoplePersonWithTwitterIdBF);
      intersectionBF.and(schedulePersonBF);
View Full Code Here

Examples of edu.isi.karma.kr2rml.writer.KR2RMLBloomFilter.membershipTest()

      assertEquals(3, intersectionBF.estimateNumberOfHashedValues());
     
      KR2RMLBloomFilter hasInstructorBF = scheduleBloomFilterManager.getBloomFilter("http://isi.edu/integration/karma/dev#RefObjectMap_bb82f923-2953-4bd4-bc7b-d1196e05dbf6");
     
      k = new Key(("<http://lod.isi.edu/cs548/person/Szekely>").getBytes());
      assertTrue(hasInstructorBF.membershipTest(k));
      intersectionBF = new KR2RMLBloomFilter(KR2RMLBloomFilter.defaultVectorSize, KR2RMLBloomFilter.defaultnbHash, Hash.JENKINS_HASH);
      intersectionBF.or(hasInstructorBF);
      intersectionBF.and(peoplePersonWithTwitterIdBF);
      assertEquals(3, intersectionBF.estimateNumberOfHashedValues());
     
View Full Code Here

Examples of edu.isi.karma.kr2rml.writer.KR2RMLBloomFilter.membershipTest()

      Statement st = iterator.next();
      String subject = "<" + st.getSubject().toString() + ">";
      String object = "<" + st.getObject().toString() + ">";
      for (Entry<String, KR2RMLBloomFilter> entry : mapping.entrySet()) {
        KR2RMLBloomFilter bf = entry.getValue();
        if (bf.membershipTest(new Key(subject.getBytes("UTF-8"))))
          bf.add(new Key(object.getBytes("UTF-8")));
        if (bf.membershipTest(new Key(object.getBytes("UTF-8"))))
          bf.add(new Key(subject.getBytes("UTF-8")));
      }
    }
View Full Code Here

Examples of edu.isi.karma.kr2rml.writer.KR2RMLBloomFilter.membershipTest()

      String object = "<" + st.getObject().toString() + ">";
      for (Entry<String, KR2RMLBloomFilter> entry : mapping.entrySet()) {
        KR2RMLBloomFilter bf = entry.getValue();
        if (bf.membershipTest(new Key(subject.getBytes("UTF-8"))))
          bf.add(new Key(object.getBytes("UTF-8")));
        if (bf.membershipTest(new Key(object.getBytes("UTF-8"))))
          bf.add(new Key(subject.getBytes("UTF-8")));
      }
    }
   
    utilObj.updateTripleStoreWithBloomFilters(mapping, serializedmapping, triplestoreURL, null);
View Full Code Here

Examples of org.apache.hadoop.util.bloom.BloomFilter.membershipTest()

        verify(context).write(
                any(),
                argument.capture());

        BloomFilter f=argument.getValue();
        assertFalse(f.membershipTest(BloomReducer.toKey("Michigan")));
        assertTrue(f.membershipTest(BloomReducer.toKey("New Jersey")));
        assertTrue(f.membershipTest(BloomReducer.toKey("New Mexico")));
        assertTrue(f.membershipTest(BloomReducer.toKey("Lady Gaga")));
        assertTrue(f.membershipTest(BloomReducer.toKey("Beyonce")));
        assertFalse(f.membershipTest(BloomReducer.toKey("Olivia Newton-John")));
View Full Code Here

Examples of org.apache.hadoop.util.bloom.BloomFilter.membershipTest()

                any(),
                argument.capture());

        BloomFilter f=argument.getValue();
        assertFalse(f.membershipTest(BloomReducer.toKey("Michigan")));
        assertTrue(f.membershipTest(BloomReducer.toKey("New Jersey")));
        assertTrue(f.membershipTest(BloomReducer.toKey("New Mexico")));
        assertTrue(f.membershipTest(BloomReducer.toKey("Lady Gaga")));
        assertTrue(f.membershipTest(BloomReducer.toKey("Beyonce")));
        assertFalse(f.membershipTest(BloomReducer.toKey("Olivia Newton-John")));
    }
View Full Code Here

Examples of org.apache.hadoop.util.bloom.BloomFilter.membershipTest()

                argument.capture());

        BloomFilter f=argument.getValue();
        assertFalse(f.membershipTest(BloomReducer.toKey("Michigan")));
        assertTrue(f.membershipTest(BloomReducer.toKey("New Jersey")));
        assertTrue(f.membershipTest(BloomReducer.toKey("New Mexico")));
        assertTrue(f.membershipTest(BloomReducer.toKey("Lady Gaga")));
        assertTrue(f.membershipTest(BloomReducer.toKey("Beyonce")));
        assertFalse(f.membershipTest(BloomReducer.toKey("Olivia Newton-John")));
    }
View Full Code Here

Examples of org.apache.hadoop.util.bloom.BloomFilter.membershipTest()

        BloomFilter f=argument.getValue();
        assertFalse(f.membershipTest(BloomReducer.toKey("Michigan")));
        assertTrue(f.membershipTest(BloomReducer.toKey("New Jersey")));
        assertTrue(f.membershipTest(BloomReducer.toKey("New Mexico")));
        assertTrue(f.membershipTest(BloomReducer.toKey("Lady Gaga")));
        assertTrue(f.membershipTest(BloomReducer.toKey("Beyonce")));
        assertFalse(f.membershipTest(BloomReducer.toKey("Olivia Newton-John")));
    }

    @Test
View Full Code Here

Examples of org.apache.hadoop.util.bloom.BloomFilter.membershipTest()

        BloomFilter f=argument.getValue();
        assertFalse(f.membershipTest(BloomReducer.toKey("Michigan")));
        assertTrue(f.membershipTest(BloomReducer.toKey("New Jersey")));
        assertTrue(f.membershipTest(BloomReducer.toKey("New Mexico")));
        assertTrue(f.membershipTest(BloomReducer.toKey("Lady Gaga")));
        assertTrue(f.membershipTest(BloomReducer.toKey("Beyonce")));
        assertFalse(f.membershipTest(BloomReducer.toKey("Olivia Newton-John")));
    }

    @Test
    public void justBloom() {
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.