sandynz commented on code in PR #19124:
URL: https://github.com/apache/shardingsphere/pull/19124#discussion_r921096229


##########
shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-scaling/src/test/java/org/apache/shardingsphere/integration/data/pipeline/util/ResultSetUtil.java:
##########
@@ -15,18 +15,26 @@
  * limitations under the License.
  */
 
-package org.apache.shardingsphere.integration.data.pipeline.cases.entity;
+package org.apache.shardingsphere.integration.data.pipeline.util;
 
-import lombok.Data;
-import lombok.RequiredArgsConstructor;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.LinkedList;
+import java.util.List;
 
-@RequiredArgsConstructor
-@Data
-public final class JdbcInfoEntity {
+public final class ResultSetUtil {
     
-    private final String username;
-    
-    private final String password;
-    
-    private final int port;
+    /**
+     * Get first column value from result set.
+     * @param resultSet result set
+     * @return first column value list
+     * @throws SQLException sql exception
+     */
+    public static List<String> getFirstColumnValueFromResult(final ResultSet 
resultSet) throws SQLException {
+        List<String> result = new LinkedList<>();

Review Comment:
   `getFirstColumnValueFromResult` is not common enough, and it is just used in 
one class.
   Could we just put it in used class?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to