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
Nested ClassesModifier and TypeClassDescriptionstatic enumTypes of actions to be done on the pipeline upon MemStoreCompaction invocation. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMemStoreCompactionStrategy(org.apache.hadoop.conf.Configuration conf, String cfName) -
Method Summary
Modifier and TypeMethodDescriptionprotected MemStoreCompactionStrategy.Actioncompact(VersionedSegmentsList versionedList, String strategyInfo) abstract MemStoreCompactionStrategy.ActiongetAction(VersionedSegmentsList versionedList) protected MemStoreCompactionStrategy.Actionprotected MemStoreCompactionStrategy.Actionprotected abstract StringgetName()voidprotected MemStoreCompactionStrategy.ActionsimpleMergeOrFlatten(VersionedSegmentsList versionedList, String strategy) toString()voidupdateStats(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)
-