@@ -33,23 +33,23 @@ public Void parse(ObTableMetaResponse response) throws IOException {
33
33
return null ;
34
34
}
35
35
36
- public void enableTable (String tableName ) throws IOException , TableNotFoundException , TableNotEnabledException {
36
+ public Void enableTable (String tableName ) throws IOException , TableNotFoundException , TableNotEnabledException {
37
37
ObTableMetaRequest request = new ObTableMetaRequest ();
38
38
request .setMetaType (getMetaType ());
39
39
Map <String , Object > requestData = new HashMap <>();
40
40
requestData .put ("table_name" , tableName );
41
41
String jsonData = JSON .toJSONString (requestData );
42
42
request .setData (jsonData );
43
- execute (tableClient , request );
43
+ return execute (tableClient , request );
44
44
}
45
45
46
- public void disableTable (String tableName ) throws IOException , TableNotFoundException , TableNotDisabledException {
46
+ public Void disableTable (String tableName ) throws IOException , TableNotFoundException , TableNotDisabledException {
47
47
ObTableMetaRequest request = new ObTableMetaRequest ();
48
48
request .setMetaType (getMetaType ());
49
49
Map <String , Object > requestData = new HashMap <>();
50
50
requestData .put ("table_name" , tableName );
51
51
String jsonData = JSON .toJSONString (requestData );
52
52
request .setData (jsonData );
53
- execute (tableClient , request );
53
+ return execute (tableClient , request );
54
54
}
55
55
}
0 commit comments