-
Notifications
You must be signed in to change notification settings - Fork 44
Remove config duplication in examples #427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
luoyuxia
merged 1 commit into
apache:main
from
charlesdong1991:deduplicate-api-reference
Mar 7, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,25 +7,25 @@ Complete API reference for the Fluss Python client. | |
|
|
||
| ## `Config` | ||
|
|
||
| | Method / Property | Description | | ||
| |---------------------------------------|-----------------------------------------------------------------------------------------| | ||
| | `Config(properties: dict = None)` | Create config from a dict of key-value pairs | | ||
| | `bootstrap_servers` | Get/set coordinator server address | | ||
| | `writer_request_max_size` | Get/set max request size in bytes | | ||
| | `writer_acks` | Get/set acknowledgment setting (`"all"` for all replicas) | | ||
| | `writer_retries` | Get/set number of retries on failure | | ||
| | `writer_batch_size` | Get/set write batch size in bytes | | ||
| | `writer_batch_timeout_ms` | Get/set max time in ms to wait for a writer batch to fill up before sending | | ||
| | `writer.bucket.no-key-assigner` | Bucket assignment strategy (`"sticky"` or `"round_robin"`); set via `Config(dict)` only | | ||
| | `scanner_remote_log_prefetch_num` | Get/set number of remote log segments to prefetch | | ||
| | `remote_file_download_thread_num` | Get/set number of threads for remote log downloads | | ||
| | `scanner_remote_log_read_concurrency` | Get/set streaming read concurrency within a remote log file | | ||
| | `scanner_log_max_poll_records` | Get/set max number of records returned in a single poll() | | ||
| | `connect_timeout_ms` | Get/set TCP connect timeout in milliseconds | | ||
| | `security_protocol` | Get/set security protocol (`"PLAINTEXT"` or `"sasl"`) | | ||
| | `security_sasl_mechanism` | Get/set SASL mechanism (only `"PLAIN"` is supported) | | ||
| | `security_sasl_username` | Get/set SASL username (required when protocol is `"sasl"`) | | ||
| | `security_sasl_password` | Get/set SASL password (required when protocol is `"sasl"`) | | ||
| | Method / Property | Config Key | Description | | ||
| |---------------------------------------|---------------------------------------|-----------------------------------------------------------------------------------------| | ||
| | `Config(properties: dict = None)` | | Create config from a dict of key-value pairs | | ||
| | `bootstrap_servers` | `bootstrap.servers` | Get/set coordinator server address | | ||
| | `writer_request_max_size` | `writer.request-max-size` | Get/set max request size in bytes | | ||
| | `writer_acks` | `writer.acks` | Get/set acknowledgment setting (`"all"` for all replicas) | | ||
| | `writer_retries` | `writer.retries` | Get/set number of retries on failure | | ||
| | `writer_batch_size` | `writer.batch-size` | Get/set write batch size in bytes | | ||
| | `writer_batch_timeout_ms` | `writer.batch-timeout-ms` | Get/set max time in ms to wait for a writer batch to fill up before sending | | ||
| | `writer_bucket_no_key_assigner` | `writer.bucket.no-key-assigner` | Get/set bucket assignment strategy (`"sticky"` or `"round_robin"`) | | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this property seems to be mis-spelled, and also description is outdated as well because it now has both setter and getter |
||
| | `scanner_remote_log_prefetch_num` | `scanner.remote-log.prefetch-num` | Get/set number of remote log segments to prefetch | | ||
| | `remote_file_download_thread_num` | `remote-file.download-thread-num` | Get/set number of threads for remote log downloads | | ||
| | `scanner_remote_log_read_concurrency` | `scanner.remote-log.read-concurrency` | Get/set streaming read concurrency within a remote log file | | ||
| | `scanner_log_max_poll_records` | `scanner.log.max-poll-records` | Get/set max number of records returned in a single poll() | | ||
| | `connect_timeout_ms` | `connect-timeout` | Get/set TCP connect timeout in milliseconds | | ||
| | `security_protocol` | `security.protocol` | Get/set security protocol (`"PLAINTEXT"` or `"sasl"`) | | ||
| | `security_sasl_mechanism` | `security.sasl.mechanism` | Get/set SASL mechanism (only `"PLAIN"` is supported) | | ||
| | `security_sasl_username` | `security.sasl.username` | Get/set SASL username (required when protocol is `"sasl"`) | | ||
| | `security_sasl_password` | `security.sasl.password` | Get/set SASL password (required when protocol is `"sasl"`) | | ||
|
|
||
| ## `FlussConnection` | ||
|
|
||
|
|
||
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Different from what was proposed in the GH Issue, i think it's better to replace the duplicates in configuration.md in examples/, and reference api-reference instead.
Because configuration lives in examples, so intuitively to me, its primary role is showing how to use config with code examples.