Skip to content

Conversation

@rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Dec 10, 2025

Was going crazy trying to figure out if a "writeSet" was a BatchWriteSet or DocumentWriteSet. Now using more explicit names.

Was going crazy trying to figure out if a "writeSet" was a BatchWriteSet or DocumentWriteSet. Now using more explicit names.
Copilot AI review requested due to automatic review settings December 10, 2025 19:50
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves code clarity by renaming variables and methods from the ambiguous "writeSet" to more explicit names that distinguish between BatchWriteSet and DocumentWriteSet objects.

  • Renamed the writeSet field in BatchWriter to batchWriteSet and its getter from getWriteSet() to getBatchWriteSet()
  • Renamed the writeSet field in BatchWriteSet to documentWriteSet and its getter from getWriteSet() to getDocumentWriteSet()
  • Updated all call sites across WriteBatcherImpl to use the new method names

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
WriteBatcherImpl.java Updated all calls from getWriteSet() to getDocumentWriteSet() and from getWriteSet() getter to getBatchWriteSet()
BatchWriter.java Renamed field from writeSet to batchWriteSet and updated getter method name accordingly
BatchWriteSet.java Renamed field from writeSet to documentWriteSet, updated getter method name, and added class-level documentation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

Copyright Validation Results
Total: 3 | Passed: 3 | Failed: 0 | Skipped: 0 | at: 2025-12-10 19:50:22 UTC | commit: dc306db

✅ Valid Files

  • marklogic-client-api/src/main/java/com/marklogic/client/datamovement/impl/BatchWriteSet.java
  • marklogic-client-api/src/main/java/com/marklogic/client/datamovement/impl/BatchWriter.java
  • marklogic-client-api/src/main/java/com/marklogic/client/datamovement/impl/WriteBatcherImpl.java

✅ All files have valid copyright headers!

@rjrudin rjrudin merged commit 1e28465 into develop Dec 10, 2025
3 checks passed
@rjrudin rjrudin deleted the feature/batch-listener-2 branch December 10, 2025 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants