private class StripeStoreFileManager.CompactionOrFlushMergeCopy extends Object
Modifier and Type | Field and Description |
---|---|
private Collection<HStoreFile> |
compactedFiles |
private boolean |
isFlush |
private List<HStoreFile> |
l0Results |
private ArrayList<HStoreFile> |
level0Files |
private Collection<HStoreFile> |
results |
private ArrayList<byte[]> |
stripeEndRows |
private ArrayList<List<HStoreFile>> |
stripeFiles |
Constructor and Description |
---|
CompactionOrFlushMergeCopy(boolean isFlush) |
Modifier and Type | Method and Description |
---|---|
private StripeStoreFileManager.State |
createNewState(boolean delCompactedFiles) |
private void |
deleteResults(Collection<HStoreFile> compactedFiles) |
private ArrayList<HStoreFile> |
getLevel0Copy() |
private ArrayList<HStoreFile> |
getStripeCopy(int index) |
private void |
mergeResults(Collection<HStoreFile> compactedFiles,
Collection<HStoreFile> results) |
private void |
processNewCandidateStripes(TreeMap<byte[],HStoreFile> newStripes)
See
StripeStoreFileManager.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> |
processResults()
Process new files, and add them either to the structure of existing stripes,
or to the list of new candidate stripes.
|
private void |
removeCompactedFiles()
Remove compacted files.
|
private void |
updateMetadataMaps() |
private ArrayList<List<HStoreFile>> stripeFiles
private ArrayList<HStoreFile> level0Files
private ArrayList<byte[]> stripeEndRows
private Collection<HStoreFile> compactedFiles
private Collection<HStoreFile> results
private List<HStoreFile> l0Results
private final boolean isFlush
public CompactionOrFlushMergeCopy(boolean isFlush)
private void mergeResults(Collection<HStoreFile> compactedFiles, Collection<HStoreFile> results) throws IOException
IOException
private void deleteResults(Collection<HStoreFile> compactedFiles) throws IOException
IOException
private StripeStoreFileManager.State createNewState(boolean delCompactedFiles)
private void updateMetadataMaps()
private final ArrayList<HStoreFile> getStripeCopy(int index)
index
- Index of the stripe we need.private final ArrayList<HStoreFile> getLevel0Copy()
private TreeMap<byte[],HStoreFile> processResults() throws IOException
IOException
private void removeCompactedFiles() throws IOException
IOException
private void processNewCandidateStripes(TreeMap<byte[],HStoreFile> newStripes) throws IOException
StripeStoreFileManager.addCompactionResults(Collection, Collection)
- updates the stripe list with
new candidate stripes/removes old stripes; produces new set of stripe end rows.newStripes
- New stripes - files by end row.IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.