|
46 | 46 | * that came in as a single transaction. All the edits for a given transaction are written out as a
|
47 | 47 | * single record, in PB format, followed (optionally) by Cells written via the WALCellEncoder.
|
48 | 48 | * <p>
|
49 |
| - * This class is LimitedPrivate for CPs to read-only. The {@link #add} methods are classified as |
50 |
| - * private methods, not for use by CPs. |
51 |
| - * </p> |
52 |
| - * <p> |
53 | 49 | * A particular WALEdit 'type' is the 'meta' type used to mark key operational events in the WAL
|
54 | 50 | * such as compaction, flush, or region open. These meta types do not traverse hbase memstores. They
|
55 | 51 | * are edits made by the hbase system rather than edit data submitted by clients. They only show in
|
|
73 | 69 | * file. See the hand-off in FSWALEntry Constructor.
|
74 | 70 | * @see WALKey
|
75 | 71 | */
|
76 |
| -// TODO: Do not expose this class to Coprocessors. It has set methods. A CP might meddle. |
77 | 72 | @InterfaceAudience.LimitedPrivate({ HBaseInterfaceAudience.REPLICATION,
|
78 | 73 | HBaseInterfaceAudience.COPROC })
|
79 | 74 | public class WALEdit implements HeapSize {
|
@@ -253,20 +248,17 @@ public boolean isReplay() {
|
253 | 248 | return this.replay;
|
254 | 249 | }
|
255 | 250 |
|
256 |
| - @InterfaceAudience.Private |
257 | 251 | public WALEdit add(Cell cell, byte[] family) {
|
258 | 252 | getOrCreateFamilies().add(family);
|
259 | 253 | return addCell(cell);
|
260 | 254 | }
|
261 | 255 |
|
262 |
| - @InterfaceAudience.Private |
263 | 256 | public WALEdit add(Cell cell) {
|
264 | 257 | // We clone Family each time we add a Cell. Expensive but safe. For CPU savings, use
|
265 | 258 | // add(Map) or add(Cell, family).
|
266 | 259 | return add(cell, CellUtil.cloneFamily(cell));
|
267 | 260 | }
|
268 | 261 |
|
269 |
| - @InterfaceAudience.Private |
270 | 262 | public WALEdit add(List<? extends Cell> cells) {
|
271 | 263 | if (cells == null || cells.isEmpty()) {
|
272 | 264 | return this;
|
@@ -294,7 +286,6 @@ public ArrayList<Cell> getCells() {
|
294 | 286 | * that nothing else depends on the contents being immutable.
|
295 | 287 | * @param cells the list of cells that this WALEdit now contains.
|
296 | 288 | */
|
297 |
| - @InterfaceAudience.Private |
298 | 289 | // Used by replay.
|
299 | 290 | public void setCells(ArrayList<Cell> cells) {
|
300 | 291 | this.cells = cells;
|
|
0 commit comments