kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 3b8b6fab7abf9a417dfc4e3a9c460fd589565af25962414e7734d569bfcebdc0 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-03-17 10:23 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-03-17 10:23 +01:00 |
| Parents | 1e50cb6351fa |
2 files changed
modified driver-core/src/main/java/com/datastax/driver/core/BatchStatement.java +2 −1
| @@ -43,7 +43,8 @@ | ||
| 43 | 43 | public enum Type { |
| 44 | 44 | /** |
| 45 | 45 | * A logged batch: Cassandra will first write the batch to its distributed batch log |
| 46 | - * to ensure the atomicity of the batch. | |
| 46 | + * to ensure the atomicity of the batch (atomicity meaning that if any statement in | |
| 47 | + * the batch succeeds, all will eventually succeed). | |
| 47 | 48 | */ |
| 48 | 49 | LOGGED, |
| 49 | 50 |
modified driver-core/src/main/java/com/datastax/driver/core/WriteType.java +4 −1
| @@ -26,7 +26,10 @@ | ||
| 26 | 26 | { |
| 27 | 27 | /** A write to a single partition key. Such writes are guaranteed to be atomic and isolated. */ |
| 28 | 28 | SIMPLE, |
| 29 | - /** A write to a multiple partition key that used the distributed batch log to ensure atomicity. */ | |
| 29 | + /** | |
| 30 | + * A write to a multiple partition key that used the distributed batch log to ensure atomicity | |
| 31 | + * (atomicity meaning that if any statement in the batch succeeds, all will eventually succeed). | |
| 32 | + */ | |
| 30 | 33 | BATCH, |
| 31 | 34 | /** A write to a multiple partition key that doesn't use the distributed batch log. Atomicity for such writes is not guaranteed */ |
| 32 | 35 | UNLOGGED_BATCH, |