@InterfaceAudience.Private class DefaultStoreFileTracker extends StoreFileTrackerBase
conf, ctx, isPrimaryReplica
Constructor and Description |
---|
DefaultStoreFileTracker(org.apache.hadoop.conf.Configuration conf,
boolean isPrimaryReplica,
StoreContext ctx) |
Modifier and Type | Method and Description |
---|---|
protected void |
doAddCompactionResults(Collection<StoreFileInfo> compactedFiles,
Collection<StoreFileInfo> newFiles) |
protected void |
doAddNewStoreFiles(Collection<StoreFileInfo> newFiles) |
List<StoreFileInfo> |
load()
Load the store files list when opening a region.
|
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.
|
add, createWriter, getTrackerName, replace, updateWithTrackerConfigs
public DefaultStoreFileTracker(org.apache.hadoop.conf.Configuration conf, boolean isPrimaryReplica, StoreContext ctx)
public List<StoreFileInfo> load() throws IOException
StoreFileTracker
IOException
public boolean requireWritingToTmpDirFirst()
StoreFileTracker
protected void doAddNewStoreFiles(Collection<StoreFileInfo> newFiles) throws IOException
doAddNewStoreFiles
in class StoreFileTrackerBase
IOException
protected void doAddCompactionResults(Collection<StoreFileInfo> compactedFiles, Collection<StoreFileInfo> newFiles) throws IOException
doAddCompactionResults
in class StoreFileTrackerBase
IOException
public void set(List<StoreFileInfo> files)
StoreFileTracker
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.