mCurrentWriteBufferSize += mPutBuffer.get(entityId).heapSize();
} else {
final Put put = new Put(entityId.getHBaseRowKey())
.add(family, qualifier, timestamp, value);
mPutBuffer.put(entityId, put);
mCurrentWriteBufferSize += put.heapSize();
}
if (mCurrentWriteBufferSize > mMaxWriteBufferSize) {
flush();
}
}