Skip to content

Commit 5b73221

Browse files
committed
Update javadocs
1 parent 8679979 commit 5b73221

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

document-store/src/main/java/org/hypertrace/core/documentstore/Collection.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public interface Collection {
2121
* store.
2222
*
2323
* <p>Note: This method ensures that all the fields defined in the `Document` are set/created. How
24-
* the existing fields are modified is implementation specific. For example, upserting <code>
25-
* { "foo2": "bar2" }
24+
* the existing fields are modified is implementation specific. For example, upserting <code> {
25+
* "foo2": "bar2" }
2626
* </code> if a document <code>
2727
* { "foo1": "bar1" }
2828
* </code> already exists would ensure that "foo2" is set the value of "bar2" and what happens to
@@ -42,8 +42,8 @@ public interface Collection {
4242
* store.
4343
*
4444
* <p>Note: This method ensures that all the fields defined in the `Document` are set/created. How
45-
* the existing fields are modified is implementation specific. For example, upserting <code>
46-
* { "foo2": "bar2" }
45+
* the existing fields are modified is implementation specific. For example, upserting <code> {
46+
* "foo2": "bar2" }
4747
* </code> if a document <code>
4848
* { "foo1": "bar1" }
4949
* </code> already exists would ensure that "foo2" is set the value of "bar2" and what happens to
@@ -405,7 +405,8 @@ CloseableIterator<Document> bulkUpdate(
405405
* <p>This method supports all update operators (SET, UNSET, ADD, APPEND_TO_LIST,
406406
* ADD_TO_LIST_IF_ABSENT, REMOVE_ALL_FROM_LIST). Updates for each individual key are applied
407407
* atomically, but there is no atomicity guarantee across different keys - some keys may be
408-
* updated while others fail. Any atomicity guarantees are implementation-specific.
408+
* updated while others fail. Batch-level atomicity is not guaranteed, while per-key update
409+
* atomicity is guaranteed.
409410
*
410411
* <p>Example usage:
411412
*

document-store/src/main/java/org/hypertrace/core/documentstore/postgres/FlatPostgresCollection.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,6 @@ public BulkUpdateResult bulkUpdate(
923923

924924
Set<Key> updatedKeys = new HashSet<>();
925925

926-
// Use a single connection for all key updates to reduce pool overhead
927926
try (Connection connection = client.getPooledConnection()) {
928927
for (Map.Entry<Key, Collection<SubDocumentUpdate>> entry : updates.entrySet()) {
929928
Key key = entry.getKey();

0 commit comments

Comments
 (0)