This is an automated email from the ASF dual-hosted git repository.

jianglongtao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 98183f3431a Remove `DistSQLResultSet` (#24145)
98183f3431a is described below

commit 98183f3431a544cedcdf90f6a2f3be1b2fccf99f
Author: Zichao <[email protected]>
AuthorDate: Mon Feb 13 21:20:15 2023 +0800

    Remove `DistSQLResultSet` (#24145)
---
 .../resultset/DatabaseDistSQLResultSet.java        | 35 ----------------
 .../handler/resultset/DistSQLResultSet.java        | 49 ----------------------
 2 files changed, 84 deletions(-)

diff --git 
a/distsql/handler/src/main/java/org/apache/shardingsphere/distsql/handler/resultset/DatabaseDistSQLResultSet.java
 
b/distsql/handler/src/main/java/org/apache/shardingsphere/distsql/handler/resultset/DatabaseDistSQLResultSet.java
deleted file mode 100644
index d815b2efda3..00000000000
--- 
a/distsql/handler/src/main/java/org/apache/shardingsphere/distsql/handler/resultset/DatabaseDistSQLResultSet.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.distsql.handler.resultset;
-
-import 
org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase;
-import org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement;
-
-/**
- * DistSQL result set for database.
- */
-public interface DatabaseDistSQLResultSet extends DistSQLResultSet {
-    
-    /**
-     * Initialize data.
-     *
-     * @param database database
-     * @param sqlStatement SQL statement
-     */
-    void init(ShardingSphereDatabase database, SQLStatement sqlStatement);
-}
diff --git 
a/distsql/handler/src/main/java/org/apache/shardingsphere/distsql/handler/resultset/DistSQLResultSet.java
 
b/distsql/handler/src/main/java/org/apache/shardingsphere/distsql/handler/resultset/DistSQLResultSet.java
deleted file mode 100644
index e49a1300ae2..00000000000
--- 
a/distsql/handler/src/main/java/org/apache/shardingsphere/distsql/handler/resultset/DistSQLResultSet.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.distsql.handler.resultset;
-
-import org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI;
-
-import java.util.Collection;
-
-/**
- * DistSQL result set.
- */
-public interface DistSQLResultSet extends TypedSPI {
-    
-    /**
-     * Get result set column names.
-     *
-     * @return result set column names
-     */
-    Collection<String> getColumnNames();
-    
-    /**
-     * Go to next data.
-     *
-     * @return true if next data exist
-     */
-    boolean next();
-    
-    /**
-     * Get row data.
-     *
-     * @return row data
-     */
-    Collection<Object> getRowData();
-}

Reply via email to