File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
src/main/java/com/alibaba/druid/pool Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 1
1
package com .alibaba .druid .pool ;
2
2
3
- import com .alibaba .druid .util .jdbc .ResultSetBase ;
4
- import com .alibaba .druid .util .jdbc .ResultSetMetaDataBase ;
5
-
3
+ import java .sql .SQLException ;
6
4
import java .util .ArrayList ;
7
5
import java .util .List ;
8
6
7
+ import com .alibaba .druid .util .jdbc .ResultSetMetaDataBase ;
8
+
9
9
/**
10
10
* Created by allwefantasy on 8/31/16.
11
11
*/
12
12
public class ElasticSearchResultSetMetaDataBase extends ResultSetMetaDataBase {
13
+
13
14
private final List <ColumnMetaData > columns = new ArrayList <ColumnMetaData >();
14
15
15
16
public ElasticSearchResultSetMetaDataBase (List <String > headers ) {
@@ -20,4 +21,16 @@ public ElasticSearchResultSetMetaDataBase(List<String> headers) {
20
21
columns .add (columnMetaData );
21
22
}
22
23
}
24
+
25
+ @ Override
26
+ public List <ColumnMetaData > getColumns () {
27
+ return columns ;
28
+ }
29
+
30
+ @ Override
31
+ public int getColumnCount () throws SQLException {
32
+ return columns .size ();
33
+ }
34
+
35
+
23
36
}
You can’t perform that action at this time.
0 commit comments