Class TestCompactionArchiveConcurrentClose.WaitingStoreFileTracker
java.lang.Object
org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerForTest
org.apache.hadoop.hbase.regionserver.TestCompactionArchiveConcurrentClose.WaitingStoreFileTracker
- All Implemented Interfaces:
org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker
- Enclosing class:
- TestCompactionArchiveConcurrentClose
public static class TestCompactionArchiveConcurrentClose.WaitingStoreFileTracker
extends StoreFileTrackerForTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.hadoop.conf.Configuration
protected final org.apache.hadoop.hbase.regionserver.StoreContext
protected final boolean
-
Constructor Summary
ConstructorsConstructorDescriptionWaitingStoreFileTracker
(org.apache.hadoop.conf.Configuration conf, boolean isPrimaryReplica, org.apache.hadoop.hbase.regionserver.StoreContext ctx) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
add
(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0) protected void
archiveStoreFiles
(List<org.apache.hadoop.hbase.regionserver.HStoreFile> arg0) createFromHFileLink
(String arg0, boolean arg1) createHFileLink
(org.apache.hadoop.hbase.TableName arg0, String arg1, String arg2, boolean arg3) org.apache.hadoop.hbase.io.Reference
createReference
(org.apache.hadoop.hbase.io.Reference arg0, org.apache.hadoop.fs.Path arg1) final org.apache.hadoop.hbase.regionserver.StoreFileWriter
createWriter
(org.apache.hadoop.hbase.regionserver.CreateStoreFileWriterParams arg0) protected void
doAddCompactionResults
(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0, Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg1) protected void
doSetStoreFiles
(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0) org.apache.hadoop.hbase.regionserver.StoreFileInfo
getStoreFileInfo
(org.apache.hadoop.fs.FileStatus arg0, org.apache.hadoop.fs.Path arg1, boolean arg2) org.apache.hadoop.hbase.regionserver.StoreFileInfo
getStoreFileInfo
(org.apache.hadoop.fs.Path arg0, boolean arg1) List<org.apache.hadoop.hbase.regionserver.StoreFileInfo>
getStoreFiles
(String arg0) protected final String
boolean
final List<org.apache.hadoop.hbase.regionserver.StoreFileInfo>
load()
void
removeStoreFiles
(List<org.apache.hadoop.hbase.regionserver.HStoreFile> storeFiles) final void
replace
(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0, Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg1) boolean
final void
org.apache.hadoop.hbase.client.TableDescriptorBuilder
updateWithTrackerConfigs
(org.apache.hadoop.hbase.client.TableDescriptorBuilder arg0) Methods inherited from class org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerForTest
clear, doAddNewStoreFiles, doLoadStoreFiles, readReference, tracked
-
Field Details
-
conf
protected final org.apache.hadoop.conf.Configuration conf -
isPrimaryReplica
protected final boolean isPrimaryReplica -
ctx
protected final org.apache.hadoop.hbase.regionserver.StoreContext ctx
-
-
Constructor Details
-
WaitingStoreFileTracker
public WaitingStoreFileTracker(org.apache.hadoop.conf.Configuration conf, boolean isPrimaryReplica, org.apache.hadoop.hbase.regionserver.StoreContext ctx)
-
-
Method Details
-
removeStoreFiles
public void removeStoreFiles(List<org.apache.hadoop.hbase.regionserver.HStoreFile> storeFiles) throws IOException - Specified by:
removeStoreFiles
in interfaceorg.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker
- Throws:
IOException
-
requireWritingToTmpDirFirst
public boolean requireWritingToTmpDirFirst() -
doAddCompactionResults
protected void doAddCompactionResults(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0, Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg1) throws IOException - Throws:
IOException
-
doSetStoreFiles
protected void doSetStoreFiles(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0) throws IOException - Throws:
IOException
-
getStoreFiles
public List<org.apache.hadoop.hbase.regionserver.StoreFileInfo> getStoreFiles(String arg0) throws IOException - Throws:
IOException
-
load
- Specified by:
load
in interfaceorg.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker
- Throws:
IOException
-
add
public final void add(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0) throws IOException - Specified by:
add
in interfaceorg.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker
- Throws:
IOException
-
replace
public final void replace(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0, Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg1) throws IOException - Specified by:
replace
in interfaceorg.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker
- Throws:
IOException
-
set
public final void set(List<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0) throws IOException - Specified by:
set
in interfaceorg.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker
- Throws:
IOException
-
updateWithTrackerConfigs
public org.apache.hadoop.hbase.client.TableDescriptorBuilder updateWithTrackerConfigs(org.apache.hadoop.hbase.client.TableDescriptorBuilder arg0) - Specified by:
updateWithTrackerConfigs
in interfaceorg.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker
-
getTrackerName
-
createWriter
public final org.apache.hadoop.hbase.regionserver.StoreFileWriter createWriter(org.apache.hadoop.hbase.regionserver.CreateStoreFileWriterParams arg0) throws IOException - Specified by:
createWriter
in interfaceorg.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker
- Throws:
IOException
-
createReference
public org.apache.hadoop.hbase.io.Reference createReference(org.apache.hadoop.hbase.io.Reference arg0, org.apache.hadoop.fs.Path arg1) throws IOException - Specified by:
createReference
in interfaceorg.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker
- Throws:
IOException
-
hasReferences
- Specified by:
hasReferences
in interfaceorg.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker
- Throws:
IOException
-
getStoreFileInfo
public org.apache.hadoop.hbase.regionserver.StoreFileInfo getStoreFileInfo(org.apache.hadoop.fs.Path arg0, boolean arg1) throws IOException - Specified by:
getStoreFileInfo
in interfaceorg.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker
- Throws:
IOException
-
getStoreFileInfo
public org.apache.hadoop.hbase.regionserver.StoreFileInfo getStoreFileInfo(org.apache.hadoop.fs.FileStatus arg0, org.apache.hadoop.fs.Path arg1, boolean arg2) throws IOException - Specified by:
getStoreFileInfo
in interfaceorg.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker
- Throws:
IOException
-
createHFileLink
public String createHFileLink(org.apache.hadoop.hbase.TableName arg0, String arg1, String arg2, boolean arg3) throws IOException - Specified by:
createHFileLink
in interfaceorg.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker
- Throws:
IOException
-
createFromHFileLink
- Specified by:
createFromHFileLink
in interfaceorg.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker
- Throws:
IOException
-
archiveStoreFiles
protected void archiveStoreFiles(List<org.apache.hadoop.hbase.regionserver.HStoreFile> arg0) throws IOException - Throws:
IOException
-