@InterfaceAudience.Private class FileBasedStoreFileTracker extends StoreFileTrackerBase
| Modifier and Type | Field and Description |
|---|---|
private StoreFileListFile |
backedFile |
private Map<String,StoreFileInfo> |
storefiles |
conf, ctx, isPrimaryReplica| Constructor and Description |
|---|
FileBasedStoreFileTracker(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.
|
private org.apache.hadoop.hbase.shaded.protobuf.generated.StoreFileTrackerProtos.StoreFileEntry |
toStoreFileEntry(StoreFileInfo info) |
add, createWriter, getTrackerName, replace, updateWithTrackerConfigsprivate final StoreFileListFile backedFile
private final Map<String,StoreFileInfo> storefiles
public FileBasedStoreFileTracker(org.apache.hadoop.conf.Configuration conf, boolean isPrimaryReplica, StoreContext ctx)
public List<StoreFileInfo> load() throws IOException
StoreFileTrackerIOExceptionpublic boolean requireWritingToTmpDirFirst()
StoreFileTrackerprivate org.apache.hadoop.hbase.shaded.protobuf.generated.StoreFileTrackerProtos.StoreFileEntry toStoreFileEntry(StoreFileInfo info)
protected 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) throws IOException
StoreFileTrackerIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.