Class StoreFileTrackerFactory
java.lang.Object
org.apache.hadoop.hbase.regionserver.storefiletracker.StoreFileTrackerFactory
Factory method for creating store file tracker.
The current implementations are:
- default: DefaultStoreFileTracker, see
DefaultStoreFileTracker. - file:FileBasedStoreFileTracker, see
FileBasedStoreFileTracker. - migration:MigrationStoreFileTracker, see
MigrationStoreFileTracker.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumMaps between configuration names for trackers and implementation classes. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<Class<? extends StoreFileTracker>,StoreFileTrackerFactory.Trackers> private static final org.slf4j.Loggerstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StoreFileTrackercreate(org.apache.hadoop.conf.Configuration conf, boolean isPrimaryReplica, StoreContext ctx) static StoreFileTrackercreate(org.apache.hadoop.conf.Configuration conf, TableDescriptor td, ColumnFamilyDescriptor cfd, HRegionFileSystem regionFs) Used at master side when splitting/merging regions, as we do not have a Store, thus no StoreContext at master side.(package private) static StoreFileTrackerBasecreateForMigration(org.apache.hadoop.conf.Configuration conf, String configName, boolean isPrimaryReplica, StoreContext ctx) Create store file tracker to be used as source or destination forMigrationStoreFileTracker.(package private) static Class<? extends StoreFileTrackerBase>getStoreFileTrackerClassForMigration(org.apache.hadoop.conf.Configuration conf, String configName) static StringgetStoreFileTrackerName(Class<? extends StoreFileTracker> clazz) static StringgetStoreFileTrackerName(org.apache.hadoop.conf.Configuration conf) static Class<? extends StoreFileTracker>getTrackerClass(String trackerNameOrClass) static Class<? extends StoreFileTracker>getTrackerClass(org.apache.hadoop.conf.Configuration conf) static booleanisMigration(Class<?> clazz) private static org.apache.hadoop.conf.ConfigurationmergeConfigurations(org.apache.hadoop.conf.Configuration global, TableDescriptor table, ColumnFamilyDescriptor family) private static Map<Class<? extends StoreFileTracker>,StoreFileTrackerFactory.Trackers> reverse()static TableDescriptorupdateWithTrackerConfigs(org.apache.hadoop.conf.Configuration conf, TableDescriptor descriptor)
-
Field Details
-
LOG
-
TRACKER_IMPL
- See Also:
-
CLASS_TO_ENUM
private static final Map<Class<? extends StoreFileTracker>,StoreFileTrackerFactory.Trackers> CLASS_TO_ENUM
-
-
Constructor Details
-
StoreFileTrackerFactory
private StoreFileTrackerFactory()
-
-
Method Details
-
reverse
-
getStoreFileTrackerName
-
getStoreFileTrackerName
-
getTrackerClass
public static Class<? extends StoreFileTracker> getTrackerClass(org.apache.hadoop.conf.Configuration conf) -
getTrackerClass
-
create
public static StoreFileTracker create(org.apache.hadoop.conf.Configuration conf, boolean isPrimaryReplica, StoreContext ctx) -
create
public static StoreFileTracker create(org.apache.hadoop.conf.Configuration conf, TableDescriptor td, ColumnFamilyDescriptor cfd, HRegionFileSystem regionFs) Used at master side when splitting/merging regions, as we do not have a Store, thus no StoreContext at master side. -
mergeConfigurations
private static org.apache.hadoop.conf.Configuration mergeConfigurations(org.apache.hadoop.conf.Configuration global, TableDescriptor table, ColumnFamilyDescriptor family) -
getStoreFileTrackerClassForMigration
static Class<? extends StoreFileTrackerBase> getStoreFileTrackerClassForMigration(org.apache.hadoop.conf.Configuration conf, String configName) -
createForMigration
static StoreFileTrackerBase createForMigration(org.apache.hadoop.conf.Configuration conf, String configName, boolean isPrimaryReplica, StoreContext ctx) Create store file tracker to be used as source or destination forMigrationStoreFileTracker. -
updateWithTrackerConfigs
public static TableDescriptor updateWithTrackerConfigs(org.apache.hadoop.conf.Configuration conf, TableDescriptor descriptor) -
isMigration
-