private class StripeStoreFileManager.CompactionOrFlushMergeCopy extends Object
Modifier and Type | Field and Description |
---|---|
private Collection<StoreFile> |
compactedFiles |
private boolean |
isFlush |
private List<StoreFile> |
l0Results |
private ArrayList<StoreFile> |
level0Files |
private Collection<StoreFile> |
results |
private ArrayList<byte[]> |
stripeEndRows |
private ArrayList<List<StoreFile>> |
stripeFiles |
Constructor and Description |
---|
StripeStoreFileManager.CompactionOrFlushMergeCopy(boolean isFlush) |
Modifier and Type | Method and Description |
---|---|
private StripeStoreFileManager.State |
createNewState() |
private ArrayList<StoreFile> |
getLevel0Copy() |
private ArrayList<StoreFile> |
getStripeCopy(int index) |
void |
mergeResults(Collection<StoreFile> compactedFiles,
Collection<StoreFile> results) |
private void |
processNewCandidateStripes(TreeMap<byte[],StoreFile> 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[],StoreFile> |
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<byte[]> stripeEndRows
private Collection<StoreFile> compactedFiles
private Collection<StoreFile> results
private final boolean isFlush
public StripeStoreFileManager.CompactionOrFlushMergeCopy(boolean isFlush)
public void mergeResults(Collection<StoreFile> compactedFiles, Collection<StoreFile> results) throws IOException
IOException
private StripeStoreFileManager.State createNewState()
private void updateMetadataMaps()
private final ArrayList<StoreFile> getStripeCopy(int index)
index
- Index of the stripe we need.private final ArrayList<StoreFile> getLevel0Copy()
private TreeMap<byte[],StoreFile> processResults() throws IOException
IOException
private void removeCompactedFiles() throws IOException
compactedFiles
- Compacted files.IOException
private void processNewCandidateStripes(TreeMap<byte[],StoreFile> 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.