Skip to content

Comments

MLE-26918 Dropping eval implementation for incremental write#1909

Merged
rjrudin merged 1 commit intodevelopfrom
feature/26918-remove-eval
Feb 23, 2026
Merged

MLE-26918 Dropping eval implementation for incremental write#1909
rjrudin merged 1 commit intodevelopfrom
feature/26918-remove-eval

Conversation

@rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Feb 23, 2026

Also renamed the other two classes to make it clear what their distinction is - fromLexicons and fromView

Also renamed the other two classes to make it clear what their distinction is - fromLexicons and fromView
Copilot AI review requested due to automatic review settings February 23, 2026 18:21
@github-actions
Copy link

Copyright Validation Results
Total: 6 | Passed: 6 | Failed: 0 | Skipped: 0 | at: 2026-02-23 18:21:43 UTC | commit: 3fa9613

✅ Valid Files

  • marklogic-client-api/src/main/java/com/marklogic/client/datamovement/filter/FilterException.java
  • marklogic-client-api/src/main/java/com/marklogic/client/datamovement/filter/IncrementalWriteConfig.java
  • marklogic-client-api/src/main/java/com/marklogic/client/datamovement/filter/IncrementalWriteFilter.java
  • marklogic-client-api/src/main/java/com/marklogic/client/datamovement/filter/IncrementalWriteFromLexiconsFilter.java
  • marklogic-client-api/src/main/java/com/marklogic/client/datamovement/filter/IncrementalWriteFromViewFilter.java
  • marklogic-client-api/src/test/java/com/marklogic/client/datamovement/filter/IncrementalWriteTest.java

✅ All files have valid copyright headers!

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 removes the eval-based implementation for incremental write filtering and renames the remaining filter classes to clearly distinguish between the fromLexicons and fromView approaches. Additionally, it refactors IncrementalWriteConfig from a traditional class to a Java record, which simplifies the code and removes boilerplate getter methods.

Changes:

  • Removed the eval-based query implementation (IncrementalWriteEvalFilter class and useEvalQuery builder method)
  • Renamed filter classes: IncrementalWriteOpticFilter → IncrementalWriteFromLexiconsFilter, IncrementalWriteViewFilter → IncrementalWriteFromViewFilter
  • Converted IncrementalWriteConfig from a class with getters to a record with accessor methods
  • Extracted duplicate URI extraction logic into a shared getUrisInBatch method
  • Removed tests for the eval implementation and updated test names to reflect the new naming convention
  • Added @since javadoc annotation to FilterException

Reviewed changes

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

Show a summary per file
File Description
IncrementalWriteTest.java Removed eval-related tests and renamed test methods to reflect the new filter naming (fromView and fromLexicons)
IncrementalWriteFromViewFilter.java Renamed from IncrementalWriteViewFilter, refactored to use getUrisInBatch helper and record accessor methods
IncrementalWriteFromLexiconsFilter.java Renamed from IncrementalWriteOpticFilter, refactored to use getUrisInBatch helper and record accessor methods
IncrementalWriteFilter.java Removed useEvalQuery builder method, updated to instantiate renamed classes, converted to use record accessor methods, added getUrisInBatch helper
IncrementalWriteEvalFilter.java Completely removed file containing the eval-based implementation
IncrementalWriteConfig.java Converted from traditional class to Java record with custom canonical constructor for xmlNamespaces handling
FilterException.java Added @since 8.1.0 javadoc annotation

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

@rjrudin rjrudin merged commit 1d19be9 into develop Feb 23, 2026
9 checks passed
@rjrudin rjrudin deleted the feature/26918-remove-eval branch February 23, 2026 19:08
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.

2 participants