Skip to content

[JDBC] Add Javadoc to IoTDBConnectionParams public methods and class#17517

Open
Ishani-10 wants to merge 1 commit intoapache:masterfrom
Ishani-10:add-javadoc-iotdbconnectionparams
Open

[JDBC] Add Javadoc to IoTDBConnectionParams public methods and class#17517
Ishani-10 wants to merge 1 commit intoapache:masterfrom
Ishani-10:add-javadoc-iotdbconnectionparams

Conversation

@Ishani-10
Copy link
Copy Markdown

Summary

All public methods, the constructor, and the class declaration in
IoTDBConnectionParams.java were missing Javadoc documentation.

Changes

Added Javadoc comments to:

  • Class declaration: explains the role of this class in JDBC URL parsing
  • Constructor: documents the url parameter
  • getHost() / setHost(): host connection parameter
  • getPort() / setPort(): port connection parameter
  • getJdbcUriString() / setJdbcUriString(): full JDBC URI
  • getSeriesName() / setSeriesName(): time-series path prefix
  • getUsername() / setUsername(): authentication credentials
  • getPassword() / setPassword(): authentication credentials
  • getThriftDefaultBufferSize() / setThriftDefaultBufferSize(): RPC buffer
  • getThriftMaxFrameSize() / setThriftMaxFrameSize(): RPC frame size
  • getVersion() / setVersion(): client version for compatibility
  • setNetworkTimeout() / getNetworkTimeout(): timeout with negative-value handling
  • setTimeZone() / getTimeZone(): timestamp formatting timezone
  • setCharset() / getCharset(): string encoding charset
  • isUseSSL() / setUseSSL(): SSL/TLS flag with trustStore dependency note
  • getTrustStore() / setTrustStore(): SSL trust store path
  • getTrustStorePwd() / setTrustStorePwd(): SSL trust store password
  • getSqlDialect() / setSqlDialect(): tree vs table SQL dialect
  • getDb() / setDb(): Optional database name for Table Model context

Type of Change

  • Documentation improvement
  • Bug fix
  • New feature

Notes

No functional changes. Documentation only.

I am a GSoC 2026 applicant for the Trino connector project for Apache IoTDB.
This contribution was motivated by reading this class while studying the JDBC
module for the connector design.

All public methods, the constructor, and the class declaration in
IoTDBConnectionParams.java were missing Javadoc documentation.

Added Javadoc comments covering:
- Class-level description explaining the role of this class in JDBC URL parsing
- Constructor: documents the url parameter
- All getter and setter pairs: documents return values and parameters
- Special cases: setNetworkTimeout (negative value handling), setUseSSL (trustStore dependency), getSqlDialect (tree vs table dialect explanation), getDb (Optional semantics)

No functional changes. Documentation only.
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.

1 participant