Class MemStoreCompactionStrategy
java.lang.Object
org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy
- Direct Known Subclasses:
AdaptiveMemStoreCompactionStrategy
,BasicMemStoreCompactionStrategy
,EagerMemStoreCompactionStrategy
MemStoreCompactionStrategy is the root of a class hierarchy which defines the strategy for
choosing the next action to apply in an (in-memory) memstore compaction. Possible action are: -
No-op - do nothing - Flatten - to change the segment's index from CSLM to a flat representation -
Merge - to merge the indices of the segments in the pipeline - Compact - to merge the indices
while removing data redundancies In addition while applying flat/merge actions it is possible to
count the number of unique keys in the result segment.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Types of actions to be done on the pipeline upon MemStoreCompaction invocation. -
Field Summary
-
Constructor Summary
ConstructorDescriptionMemStoreCompactionStrategy
(org.apache.hadoop.conf.Configuration conf, String cfName) -
Method Summary
Modifier and TypeMethodDescriptionprotected MemStoreCompactionStrategy.Action
compact
(VersionedSegmentsList versionedList, String strategyInfo) abstract MemStoreCompactionStrategy.Action
getAction
(VersionedSegmentsList versionedList) protected MemStoreCompactionStrategy.Action
protected MemStoreCompactionStrategy.Action
protected abstract String
getName()
void
protected MemStoreCompactionStrategy.Action
simpleMergeOrFlatten
(VersionedSegmentsList versionedList, String strategy) toString()
void
updateStats
(Segment replacement)
-
Field Details
-
LOG
-
COMPACTING_MEMSTORE_THRESHOLD_KEY
- See Also:
-
COMPACTING_MEMSTORE_THRESHOLD_DEFAULT
- See Also:
-
cfName
-
pipelineThreshold
-
-
Constructor Details
-
MemStoreCompactionStrategy
-
-
Method Details
-
toString
-
getName
-
getAction
-
updateStats
-
resetStats
-
simpleMergeOrFlatten
protected MemStoreCompactionStrategy.Action simpleMergeOrFlatten(VersionedSegmentsList versionedList, String strategy) -
getMergingAction
-
getFlattenAction
-
compact
protected MemStoreCompactionStrategy.Action compact(VersionedSegmentsList versionedList, String strategyInfo)
-