Class StripeStoreFileManager.CompactionOrFlushMergeCopy
java.lang.Object
org.apache.hadoop.hbase.regionserver.StripeStoreFileManager.CompactionOrFlushMergeCopy
- Enclosing class:
- StripeStoreFileManager
Non-static helper class for merging compaction or flush results. Since we want to merge them
atomically (more or less), it operates on lazy copies, then creates a new state object and puts
it in place.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Collection<HStoreFile>private final booleanprivate List<HStoreFile>private ArrayList<HStoreFile>private Collection<HStoreFile>private ArrayList<byte[]>private ArrayList<List<HStoreFile>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StripeStoreFileManager.StatecreateNewState(boolean delCompactedFiles) private voiddeleteResults(Collection<HStoreFile> compactedFiles) private final ArrayList<HStoreFile>Returns A lazy L0 copy from current state.private final ArrayList<HStoreFile>getStripeCopy(int index) private voidmergeResults(Collection<HStoreFile> compactedFiles, Collection<HStoreFile> results) private voidprocessNewCandidateStripes(TreeMap<byte[], HStoreFile> newStripes) SeeStripeStoreFileManager.addCompactionResults(Collection, Collection)- updates the stripe list with new candidate stripes/removes old stripes; produces new set of stripe end rows.private TreeMap<byte[],HStoreFile> Process new files, and add them either to the structure of existing stripes, or to the list of new candidate stripes.private voidRemove compacted files.private void
-
Field Details
-
stripeFiles
-
level0Files
-
stripeEndRows
-
compactedFiles
-
results
-
l0Results
-
isFlush
-
-
Constructor Details
-
CompactionOrFlushMergeCopy
-
-
Method Details
-
mergeResults
-
deleteResults
-
createNewState
-
updateMetadataMaps
-
getStripeCopy
- Parameters:
index- Index of the stripe we need.- Returns:
- A lazy stripe copy from current stripes.
-
getLevel0Copy
Returns A lazy L0 copy from current state. -
processResults
Process new files, and add them either to the structure of existing stripes, or to the list of new candidate stripes.- Returns:
- New candidate stripes.
-
removeCompactedFiles
Remove compacted files. -
processNewCandidateStripes
SeeStripeStoreFileManager.addCompactionResults(Collection, Collection)- updates the stripe list with new candidate stripes/removes old stripes; produces new set of stripe end rows.- Parameters:
newStripes- New stripes - files by end row.
-