@InterfaceAudience.Private class MigrationStoreFileTracker extends StoreFileTrackerBase
| Modifier and Type | Field and Description |
|---|---|
private StoreFileTrackerBase |
dst |
static String |
DST_IMPL |
private StoreFileTrackerBase |
src |
static String |
SRC_IMPL |
conf, ctx, isPrimaryReplica| Constructor and Description |
|---|
MigrationStoreFileTracker(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) |
(package private) static Class<? extends StoreFileTracker> |
getDstTrackerClass(org.apache.hadoop.conf.Configuration conf) |
(package private) static Class<? extends StoreFileTracker> |
getSrcTrackerClass(org.apache.hadoop.conf.Configuration conf) |
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, updateWithTrackerConfigspublic static final String SRC_IMPL
public static final String DST_IMPL
private final StoreFileTrackerBase src
private final StoreFileTrackerBase dst
public MigrationStoreFileTracker(org.apache.hadoop.conf.Configuration conf, boolean isPrimaryReplica, StoreContext ctx)
public List<StoreFileInfo> load() throws IOException
StoreFileTrackerIOExceptionpublic boolean requireWritingToTmpDirFirst()
StoreFileTrackerprotected void doAddNewStoreFiles(Collection<StoreFileInfo> newFiles) throws IOException
doAddNewStoreFiles in class StoreFileTrackerBaseIOExceptionprotected void doAddCompactionResults(Collection<StoreFileInfo> compactedFiles, Collection<StoreFileInfo> newFiles) throws IOException
doAddCompactionResults in class StoreFileTrackerBaseIOExceptionpublic void set(List<StoreFileInfo> files)
StoreFileTrackerstatic Class<? extends StoreFileTracker> getSrcTrackerClass(org.apache.hadoop.conf.Configuration conf)
static Class<? extends StoreFileTracker> getDstTrackerClass(org.apache.hadoop.conf.Configuration conf)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.