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 {
@@ -240,13 +235,11 @@ public boolean isReplay() {
240
235
return this .replay ;
241
236
}
242
237
243
- @ InterfaceAudience .Private
244
238
public WALEdit add (Cell cell , byte [] family ) {
245
239
getOrCreateFamilies ().add (family );
246
240
return addCell (cell );
247
241
}
248
242
249
- @ InterfaceAudience .Private
250
243
public WALEdit add (Cell cell ) {
251
244
// We clone Family each time we add a Cell. Expensive but safe. For CPU savings, use
252
245
// add(Map) or add(Cell, family).
@@ -270,7 +263,6 @@ public ArrayList<Cell> getCells() {
270
263
* that nothing else depends on the contents being immutable.
271
264
* @param cells the list of cells that this WALEdit now contains.
272
265
*/
273
- @ InterfaceAudience .Private
274
266
// Used by replay.
275
267
public void setCells (ArrayList <Cell > cells ) {
276
268
this .cells = cells ;
0 commit comments