@InterfaceAudience.Private abstract class StoreFileTrackerBase extends Object implements StoreFileTracker
| Modifier and Type | Field and Description |
|---|---|
private boolean |
cacheOnWriteLogged |
protected org.apache.hadoop.conf.Configuration |
conf |
protected StoreContext |
ctx |
protected boolean |
isPrimaryReplica |
private static org.slf4j.Logger |
LOG |
| Modifier | Constructor and Description |
|---|---|
protected |
StoreFileTrackerBase(org.apache.hadoop.conf.Configuration conf,
boolean isPrimaryReplica,
StoreContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Collection<StoreFileInfo> newFiles)
Add new store files.
|
private HFileContext |
createFileContext(Compression.Algorithm compression,
boolean includeMVCCReadpoint,
boolean includesTag,
Encryption.Context encryptionContext) |
StoreFileWriter |
createWriter(CreateStoreFileWriterParams params)
Create a writer for writing new store files.
|
protected abstract void |
doAddCompactionResults(Collection<StoreFileInfo> compactedFiles,
Collection<StoreFileInfo> newFiles) |
protected abstract void |
doAddNewStoreFiles(Collection<StoreFileInfo> newFiles) |
protected String |
getTrackerName() |
void |
replace(Collection<StoreFileInfo> compactedFiles,
Collection<StoreFileInfo> newFiles)
Add new store files and remove compacted store files after compaction.
|
TableDescriptorBuilder |
updateWithTrackerConfigs(TableDescriptorBuilder builder)
Adds StoreFileTracker implementations specific configurations into the table descriptor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitload, requireWritingToTmpDirFirst, setprivate static final org.slf4j.Logger LOG
protected final org.apache.hadoop.conf.Configuration conf
protected final boolean isPrimaryReplica
protected final StoreContext ctx
private volatile boolean cacheOnWriteLogged
protected StoreFileTrackerBase(org.apache.hadoop.conf.Configuration conf, boolean isPrimaryReplica, StoreContext ctx)
public final void add(Collection<StoreFileInfo> newFiles) throws IOException
StoreFileTrackeradd in interface StoreFileTrackerIOExceptionpublic final void replace(Collection<StoreFileInfo> compactedFiles, Collection<StoreFileInfo> newFiles) throws IOException
StoreFileTrackerreplace in interface StoreFileTrackerIOExceptionpublic TableDescriptorBuilder updateWithTrackerConfigs(TableDescriptorBuilder builder)
StoreFileTrackerupdateWithTrackerConfigs in interface StoreFileTrackerbuilder - The table descriptor builder for the given table.protected final String getTrackerName()
private HFileContext createFileContext(Compression.Algorithm compression, boolean includeMVCCReadpoint, boolean includesTag, Encryption.Context encryptionContext)
public final StoreFileWriter createWriter(CreateStoreFileWriterParams params) throws IOException
StoreFileTrackercreateWriter in interface StoreFileTrackerIOExceptionprotected abstract void doAddNewStoreFiles(Collection<StoreFileInfo> newFiles) throws IOException
IOExceptionprotected abstract void doAddCompactionResults(Collection<StoreFileInfo> compactedFiles, Collection<StoreFileInfo> newFiles) throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.