Class StoreFileTrackerForTest
java.lang.Object
org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerForTest
- All Implemented Interfaces:
org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.hadoop.conf.Configurationprotected final org.apache.hadoop.hbase.regionserver.StoreContextprotected final booleanprivate static final org.slf4j.Loggerprivate Stringprivate static ConcurrentMap<String,BlockingQueue<org.apache.hadoop.hbase.regionserver.StoreFileInfo>> -
Constructor Summary
ConstructorsConstructorDescriptionStoreFileTrackerForTest(org.apache.hadoop.conf.Configuration conf, boolean isPrimaryReplica, org.apache.hadoop.hbase.regionserver.StoreContext ctx) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidadd(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0) static voidclear()final org.apache.hadoop.hbase.regionserver.StoreFileWritercreateWriter(org.apache.hadoop.hbase.regionserver.CreateStoreFileWriterParams arg0) protected voiddoAddCompactionResults(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0, Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg1) protected voiddoAddNewStoreFiles(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> newFiles) protected List<org.apache.hadoop.hbase.regionserver.StoreFileInfo>doLoadStoreFiles(boolean readOnly) protected voiddoSetStoreFiles(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0) protected final Stringfinal List<org.apache.hadoop.hbase.regionserver.StoreFileInfo>load()final voidreplace(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg0, Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> arg1) booleanfinal voidstatic booleanorg.apache.hadoop.hbase.client.TableDescriptorBuilderupdateWithTrackerConfigs(org.apache.hadoop.hbase.client.TableDescriptorBuilder arg0)
-
Field Details
-
LOG
-
trackedFiles
private static ConcurrentMap<String,BlockingQueue<org.apache.hadoop.hbase.regionserver.StoreFileInfo>> trackedFiles -
storeId
-
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
-
StoreFileTrackerForTest
public StoreFileTrackerForTest(org.apache.hadoop.conf.Configuration conf, boolean isPrimaryReplica, org.apache.hadoop.hbase.regionserver.StoreContext ctx)
-
-
Method Details
-
doAddNewStoreFiles
protected void doAddNewStoreFiles(Collection<org.apache.hadoop.hbase.regionserver.StoreFileInfo> newFiles) throws IOException - Throws:
IOException
-
doLoadStoreFiles
protected List<org.apache.hadoop.hbase.regionserver.StoreFileInfo> doLoadStoreFiles(boolean readOnly) throws IOException - Throws:
IOException
-
tracked
-
clear
-
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
-
load
- Specified by:
loadin 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:
addin 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:
replacein 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:
setin 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:
updateWithTrackerConfigsin 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:
createWriterin interfaceorg.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTracker- Throws:
IOException
-