CellUtil.setSequenceId(cell, mvccNum); size += store.add(cell);
/** * Used by tests * @param s Store to add edit too. * @param kv KeyValue to add. * @return True if we should flush. */ protected boolean restoreEdit(final Store s, final KeyValue kv) { long kvSize = s.add(kv); if (this.rsAccounting != null) { rsAccounting.addAndGetRegionReplayEditsSize(this.regionInfo.getRegionName(), kvSize); } return isFlushSize(this.addAndGetGlobalMemstoreSize(kvSize)); }
for (KeyValue kv: edits) { kv.setMemstoreTS(localizedWriteEntry.getWriteNumber()); size += store.add(kv);
/** * Used by tests * @param s Store to add edit too. * @param cell Cell to add. * @return True if we should flush. */ protected boolean restoreEdit(final Store s, final Cell cell) { long kvSize = s.add(cell); if (this.rsAccounting != null) { rsAccounting.addAndGetRegionReplayEditsSize(getRegionInfo().getRegionName(), kvSize); } return isFlushSize(this.addAndGetGlobalMemstoreSize(kvSize)); }
size += store.add(cell); doRollBackMemstore = true;
accumulatedResultSize += store.add(cell); doRollBackMemstore = true;
addedSize += store.add(cell);