Line | Count | Source |
1 | // Copyright (c) YugaByte, Inc. | |
2 | // | |
3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
4 | // in compliance with the License. You may obtain a copy of the License at | |
5 | // | |
6 | // http://www.apache.org/licenses/LICENSE-2.0 | |
7 | // | |
8 | // Unless required by applicable law or agreed to in writing, software distributed under the License | |
9 | // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | |
10 | // or implied. See the License for the specific language governing permissions and limitations | |
11 | // under the License. | |
12 | // | |
13 | ||
14 | #ifndef YB_MASTER_TABLET_SPLIT_DRIVER_H | |
15 | #define YB_MASTER_TABLET_SPLIT_DRIVER_H | |
16 | ||
17 | #include <set> | |
18 | #include <utility> | |
19 | ||
20 | #include "yb/common/entity_ids_types.h" | |
21 | ||
22 | #include "yb/util/status_fwd.h" | |
23 | ||
24 | namespace yb { | |
25 | namespace master { | |
26 | ||
27 | class TabletSplitDriverIf { | |
28 | public: | |
29 | 92 | virtual ~TabletSplitDriverIf() {} |
30 | virtual CHECKED_STATUS SplitTablet( | |
31 | const TabletId& tablet_id, bool select_all_tablets_for_split) = 0; | |
32 | }; | |
33 | ||
34 | } // namespace master | |
35 | } // namespace yb | |
36 | #endif // YB_MASTER_TABLET_SPLIT_DRIVER_H |