@@ -33,23 +33,23 @@ public Void parse(ObTableMetaResponse response) throws IOException {
3333 return null ;
3434 }
3535
36- public void enableTable (String tableName ) throws IOException , TableNotFoundException , TableNotEnabledException {
36+ public Void enableTable (String tableName ) throws IOException , TableNotFoundException , TableNotEnabledException {
3737 ObTableMetaRequest request = new ObTableMetaRequest ();
3838 request .setMetaType (getMetaType ());
3939 Map <String , Object > requestData = new HashMap <>();
4040 requestData .put ("table_name" , tableName );
4141 String jsonData = JSON .toJSONString (requestData );
4242 request .setData (jsonData );
43- execute (tableClient , request );
43+ return execute (tableClient , request );
4444 }
4545
46- public void disableTable (String tableName ) throws IOException , TableNotFoundException , TableNotDisabledException {
46+ public Void disableTable (String tableName ) throws IOException , TableNotFoundException , TableNotDisabledException {
4747 ObTableMetaRequest request = new ObTableMetaRequest ();
4848 request .setMetaType (getMetaType ());
4949 Map <String , Object > requestData = new HashMap <>();
5050 requestData .put ("table_name" , tableName );
5151 String jsonData = JSON .toJSONString (requestData );
5252 request .setData (jsonData );
53- execute (tableClient , request );
53+ return execute (tableClient , request );
5454 }
5555}
0 commit comments