[Client] Kvscan java client#3295
Open
polyzos wants to merge 7 commits intoapache:mainfrom
Open
Conversation
Contributor
Author
|
@wuchong @fresh-borzoni PTAL |
Contributor
There was a problem hiding this comment.
Pull request overview
Extends the Fluss Java client to support full primary-key (KV) table scans (“KvScan”) via a new KvBatchScanner, exposing it through the existing TableScan#createBatchScanner(...) APIs and documenting the new behavior and configuration.
Changes:
- Add
KvBatchScannerimplementation for streaming full-bucket KV scans viaScanKvRPC with snapshot isolation semantics. - Wire KV batch scanning into
TableScan#createBatchScanner(...)for primary-key tables when nolimitis set, and add a new client config option to control per-RPC payload size. - Add unit/integration tests plus Java client documentation for full PK-table batch scans.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| website/docs/apis/java-client.md | Documents full PK-table batch scanning usage, semantics, projection, and related configs. |
| fluss-common/src/main/java/org/apache/fluss/config/ConfigOptions.java | Adds client.scanner.kv.fetch.max-bytes config option for KV scan batch sizing. |
| fluss-client/src/main/java/org/apache/fluss/client/table/scanner/Scan.java | Updates scan API Javadocs to describe KV batch scan behavior vs. log-table limit requirement. |
| fluss-client/src/main/java/org/apache/fluss/client/table/scanner/TableScan.java | Routes PK-table batch scans (no limit) to KvBatchScanner and reads the new config. |
| fluss-client/src/main/java/org/apache/fluss/client/table/scanner/batch/KvBatchScanner.java | New KV full-scan batch scanner implementation (ScanKv open/continue/close, retries, projection). |
| fluss-client/src/test/java/org/apache/fluss/client/table/scanner/batch/KvBatchScannerTest.java | New protocol-level unit tests for request/response sequencing and error handling. |
| fluss-client/src/test/java/org/apache/fluss/client/table/TableKvScanITCase.java | New end-to-end IT coverage for whole-table, per-bucket, partitioned, projection, and snapshot behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #3126