Class MemStoreSnapshot

java.lang.Object
org.apache.hadoop.hbase.regionserver.MemStoreSnapshot

@Private public class MemStoreSnapshot extends Object
MemStoreSnapshot is a Context Object to hold details of the snapshot taken on a MemStore. Details include the snapshot's identifier, count of cells in it and total memory size occupied by all the cells, timestamp information of all the cells and the snapshot immutableSegment.

NOTE:Every time when getScanners() is called, we create new SnapshotSegmentScanners on the snapshotImmutableSegment,and Segment.incScannerCount() is invoked in the SnapshotSegmentScanner ctor to increase the reference count of MemStoreLAB which used by snapshotImmutableSegment, so after we finish using these scanners, we must call their close method to invoke Segment.decScannerCount().