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
Modifier and TypeClassDescriptionstatic enum
Maps between configuration names for trackers and implementation classes. -
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map<Class<? extends StoreFileTracker>,
StoreFileTrackerFactory.Trackers> private static final org.slf4j.Logger
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StoreFileTracker
create
(org.apache.hadoop.conf.Configuration conf, boolean isPrimaryReplica, StoreContext ctx) 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.static StoreFileTracker
create
(org.apache.hadoop.conf.Configuration conf, TableDescriptor td, ColumnFamilyDescriptor cfd, HRegionFileSystem regionFs, boolean isPrimaryReplica) (package private) 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
.(package private) static Class<? extends StoreFileTrackerBase>
getStoreFileTrackerClassForMigration
(org.apache.hadoop.conf.Configuration conf, String configName) static String
getStoreFileTrackerName
(Class<? extends StoreFileTracker> clazz) static String
getStoreFileTrackerName
(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 boolean
isMigration
(Class<?> clazz) private static org.apache.hadoop.conf.Configuration
mergeConfigurations
(org.apache.hadoop.conf.Configuration global, TableDescriptor table, ColumnFamilyDescriptor family) private static Map<Class<? extends StoreFileTracker>,
StoreFileTrackerFactory.Trackers> reverse()
static TableDescriptor
updateWithTrackerConfigs
(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. -
create
public static StoreFileTracker create(org.apache.hadoop.conf.Configuration conf, TableDescriptor td, ColumnFamilyDescriptor cfd, HRegionFileSystem regionFs, boolean isPrimaryReplica) -
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
-