RdbRelation extends AbstractRdbRelation { @Override public boolean contains(ITuple tuple) { return viewRelation.contains(tuple); } RdbRelation(Connection connection, IPredicate predicate);  RdbRelation(Connection connection, IPredicate predicate,
			String prefix);  RdbRelation(Connection connection, String tableName, int arity); @Override boolean add(ITuple tuple); @Override boolean addAll(IRelation relation); @Override boolean contains(ITuple tuple); @Override ITuple get(int index); @Override int getArity(); @Override int size(); String getTableName(); String getIndexName(); @Override void drop(); @Override String toString(); @Override void close(); @Override CloseableIterator<ITuple> iterator(); static final String ID_NAME; }
@Test public void testContains() { Assert.assertFalse(relation1.contains(tuple1)); Assert.assertTrue(relation1.add(tuple1)); Assert.assertTrue(relation1.add(tuple2)); Assert.assertTrue(relation1.contains(tuple1)); Assert.assertTrue(relation1.contains(tuple2)); Assert.assertFalse(relation1.add(tuple1)); }