Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
// Inserts a row and adds it into the indexes. Returns a rowId for the inserted row.
CompletableFuture<RowId> put(Tuple row, UUID txId); 

// Updates a row and related index entries. Returns a previous value.
CompletableFuture<Tuple> update(RowId rowId, Tuple newVal, UUID txId);

// Removes a row and related index entries. Returns a removed row.
CompletableFuture<Tuple> remove(RowId rowId, UUID txId);

// Get a tuple by rowId.
CompletableFuture<Tuple> get(RowId rowId, UUID txId);

// Executes the query in RW mode.
AsyncCursor<RowId> query(@Nullable Query query, UUID txId);

// Executes the query in RO mode.
Cursor<Tuple> query(@Nullable Query query, Timestamp readTs);

// Commits a transaction with a timestamp.
CompletableFuture<Boolean> commit(UUID txId, Timestamp commitTs);

// Aborts a transaction
CompletableFuture<Boolean> abort(UUID txId);

...