@InterfaceAudience.Private public interface StoreFileTracker
Modifier and Type | Method and Description |
---|---|
void |
add(Collection<StoreFileInfo> newFiles)
Add new store files.
|
StoreFileWriter |
createWriter(CreateStoreFileWriterParams params)
Create a writer for writing new store files.
|
List<StoreFileInfo> |
load()
Load the store files list when opening a region.
|
void |
replace(Collection<StoreFileInfo> compactedFiles,
Collection<StoreFileInfo> newFiles)
Add new store files and remove compacted store files after compaction.
|
boolean |
requireWritingToTmpDirFirst()
Whether the implementation of this tracker requires you to write to temp directory first, i.e,
does not allow broken store files under the actual data directory.
|
void |
set(List<StoreFileInfo> files)
Set the store files.
|
TableDescriptorBuilder |
updateWithTrackerConfigs(TableDescriptorBuilder builder)
Adds StoreFileTracker implementations specific configurations into the table descriptor.
|
List<StoreFileInfo> load() throws IOException
IOException
void add(Collection<StoreFileInfo> newFiles) throws IOException
IOException
void replace(Collection<StoreFileInfo> compactedFiles, Collection<StoreFileInfo> newFiles) throws IOException
IOException
void set(List<StoreFileInfo> files) throws IOException
IOException
StoreFileWriter createWriter(CreateStoreFileWriterParams params) throws IOException
IOException
TableDescriptorBuilder updateWithTrackerConfigs(TableDescriptorBuilder builder)
builder
- The table descriptor builder for the given table.boolean requireWritingToTmpDirFirst()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.