Eunwha Park created ZEPPELIN-6264:
-------------------------------------
Summary: Refactor InfluxDBInterpreter for improved readability and
maintainability
Key: ZEPPELIN-6264
URL: https://issues.apache.org/jira/browse/ZEPPELIN-6264
Project: Zeppelin
Issue Type: Improvement
Reporter: Eunwha Park
Assignee: Eunwha Park
*Description*
This change refactors the InfluxDBInterpreter.class to enhance code readability
and maintainability, without altering its core functionality.
*Propsed changes*
* Renamed getInfluxDBClient() to getQueryApi() based on its function and
removed unnecessary parameter for clarity.
* Removed redundant throws declarations from methods where exceptions are not
propagated.
* Extracted complex logic blocks into smaller, well-named private methods to
improve code structure and readability.
* Utilized Java Stream API for collection processing, enhancing readability
and reducing boilerplate code.
* Improved variable and method naming.
These changes do not affect the runtime behavior of the interpreter, but make
the codebase easier to understand and maintain for future contributors.
*Benefits*
* Enhance code clarity and maintainability.
* Reduce cognitive load for new contributors.
* Align with modern Java standards (Stream API) for better code quality and
future-proofing.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)