Class TestHStore.MyDefaultMemStore
java.lang.Object
org.apache.hadoop.hbase.regionserver.AbstractMemStore
org.apache.hadoop.hbase.regionserver.DefaultMemStore
org.apache.hadoop.hbase.regionserver.TestHStore.MyDefaultMemStore
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.hadoop.hbase.regionserver.MemStore
- Enclosing class:
- TestHStore
public static class TestHStore.MyDefaultMemStore
extends org.apache.hadoop.hbase.regionserver.DefaultMemStore
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AtomicInteger
private static final String
private static final String
private final CyclicBarrier
Only when flush thread entersAbstractMemStore.doClearSnapShot()
, getScanner thread could start.private final AtomicInteger
private final CyclicBarrier
Used by flush thread notifies getScanner threadAbstractMemStore.doClearSnapShot()
completed,DefaultMemStore.getScanners(long)
could continue.private final CyclicBarrier
Used by getScanner thread notifies flush threadDefaultMemStore.getSnapshotSegments()
completed,AbstractMemStore.doClearSnapShot()
could continue.private boolean
private org.apache.hadoop.hbase.regionserver.HStore
Fields inherited from class org.apache.hadoop.hbase.regionserver.DefaultMemStore
DEEP_OVERHEAD, FIXED_OVERHEAD
Fields inherited from class org.apache.hadoop.hbase.regionserver.AbstractMemStore
regionServices, snapshot, snapshotId
-
Constructor Summary
ConstructorDescriptionMyDefaultMemStore
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.CellComparator cellComparator, org.apache.hadoop.hbase.regionserver.RegionServicesForStores regionServices) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected List<org.apache.hadoop.hbase.regionserver.Segment>
Methods inherited from class org.apache.hadoop.hbase.regionserver.DefaultMemStore
getFlushableSize, getNextRow, getScanners, getSegments, heapSize, isSloppy, keySize, main, postUpdate, preFlushSeqIDEstimation, preUpdate, size, sizeAddedPreOperation, snapshot, updateLowestUnflushedSequenceIdInWAL
Methods inherited from class org.apache.hadoop.hbase.regionserver.AbstractMemStore
add, add, addToScanners, addToScanners, clearSnapshot, close, doAdd, dump, getActive, getComparator, getConfiguration, getLowest, getNextRow, getSnapshot, getSnapshotSize, resetActive, resetTimeOfOldestEdit, timeOfOldestEdit, toString, upsert
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.regionserver.MemStore
startReplayingFromWAL, stopReplayingFromWAL
-
Field Details
-
GET_SCANNER_THREAD_NAME
- See Also:
-
FLUSH_THREAD_NAME
- See Also:
-
getScannerCyclicBarrier
Only when flush thread entersAbstractMemStore.doClearSnapShot()
, getScanner thread could start. -
preClearSnapShotCyclicBarrier
Used by getScanner thread notifies flush threadDefaultMemStore.getSnapshotSegments()
completed,AbstractMemStore.doClearSnapShot()
could continue. -
postClearSnapShotCyclicBarrier
Used by flush thread notifies getScanner threadAbstractMemStore.doClearSnapShot()
completed,DefaultMemStore.getScanners(long)
could continue. -
getSnapshotSegmentsCounter
-
clearSnapshotCounter
-
shouldWait
-
store
-
-
Constructor Details
-
MyDefaultMemStore
public MyDefaultMemStore(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.CellComparator cellComparator, org.apache.hadoop.hbase.regionserver.RegionServicesForStores regionServices) throws IOException - Throws:
IOException
-
-
Method Details
-
getSnapshotSegments
- Overrides:
getSnapshotSegments
in classorg.apache.hadoop.hbase.regionserver.DefaultMemStore
-
doClearSnapShot
- Overrides:
doClearSnapShot
in classorg.apache.hadoop.hbase.regionserver.AbstractMemStore
-