I'm trying to persist an object to cassandra through BatchStatement
import com.datastax.driver.mapping.Mapper;
batch.add(mapper.saveQuery(itr.next()));
And i want to have IF NOT EXISTS clause like
INSERT INTO customer_account (customerID, customer_email)
VALUES (‘LauraS’, ‘[email protected]’)
IF NOT EXISTS;
How should i implement IF NOT EXISTS through saveQuery?