THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
public interface TupleStore {
/**
* Inserts a record into the table if it doesn't exist or replaces the existing one.
*
* @param txn The transaction or {@code null} to auto commit.
* @param tuple A record to insert into the table. The record cannot be {@code null}.
*/
void upsert(@Nullable Transaction txn, Tuple tuple);
CompletableFuture<Void> upsertAsync(@Nullable Transaction txn, Tuple tuple);
/** Other methods here */
}`1`1 |
Multiple operations accepting the same transaction instance are executed atomically within a passed transaction.
...