Search in sources :

Example 6 with EntityDuplicateTracker

use of org.bboxdb.storage.util.EntityDuplicateTracker in project bboxdb by jnidzwetzki.

the class TestTupleDuplicateRemover method testTupleDuplicateRemoverDiffKey.

@Test(timeout = 60000)
public void testTupleDuplicateRemoverDiffKey() {
    final EntityDuplicateTracker tupleDuplicateRemover = new EntityDuplicateTracker();
    final Tuple tuple1 = new Tuple("key1", BoundingBox.FULL_SPACE, "".getBytes(), 1);
    Assert.assertFalse(tupleDuplicateRemover.isElementAlreadySeen(tuple1));
    Assert.assertTrue(tupleDuplicateRemover.isElementAlreadySeen(tuple1));
    final Tuple tuple2 = new Tuple("key2", BoundingBox.FULL_SPACE, "".getBytes(), 1);
    Assert.assertFalse(tupleDuplicateRemover.isElementAlreadySeen(tuple2));
    Assert.assertTrue(tupleDuplicateRemover.isElementAlreadySeen(tuple2));
}
Also used : EntityDuplicateTracker(org.bboxdb.storage.util.EntityDuplicateTracker) JoinedTuple(org.bboxdb.storage.entity.JoinedTuple) Tuple(org.bboxdb.storage.entity.Tuple) Test(org.junit.Test)

Aggregations

EntityDuplicateTracker (org.bboxdb.storage.util.EntityDuplicateTracker)6 JoinedTuple (org.bboxdb.storage.entity.JoinedTuple)5 Tuple (org.bboxdb.storage.entity.Tuple)5 Test (org.junit.Test)4