@InterfaceAudience.Private public final class StoreFileTrackerFactory extends Object
DefaultStoreFileTracker
.FileBasedStoreFileTracker
.MigrationStoreFileTracker
.Modifier and Type | Class and Description |
---|---|
static class |
StoreFileTrackerFactory.Trackers
Maps between configuration names for trackers and implementation classes.
|
Modifier and Type | Field and Description |
---|---|
private static Map<Class<? extends StoreFileTracker>,StoreFileTrackerFactory.Trackers> |
CLASS_TO_ENUM |
private static org.slf4j.Logger |
LOG |
static String |
TRACKER_IMPL |
Modifier | Constructor and Description |
---|---|
private |
StoreFileTrackerFactory() |
Modifier and Type | Method and Description |
---|---|
static 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.
|
(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 for
MigrationStoreFileTracker . |
(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(org.apache.hadoop.conf.Configuration conf) |
static Class<? extends StoreFileTracker> |
getTrackerClass(String trackerNameOrClass) |
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) |
private static final org.slf4j.Logger LOG
public static final String TRACKER_IMPL
private static final Map<Class<? extends StoreFileTracker>,StoreFileTrackerFactory.Trackers> CLASS_TO_ENUM
private StoreFileTrackerFactory()
private static Map<Class<? extends StoreFileTracker>,StoreFileTrackerFactory.Trackers> reverse()
public static String getStoreFileTrackerName(org.apache.hadoop.conf.Configuration conf)
public static String getStoreFileTrackerName(Class<? extends StoreFileTracker> clazz)
public static Class<? extends StoreFileTracker> getTrackerClass(org.apache.hadoop.conf.Configuration conf)
public static Class<? extends StoreFileTracker> getTrackerClass(String trackerNameOrClass)
public static StoreFileTracker create(org.apache.hadoop.conf.Configuration conf, boolean isPrimaryReplica, StoreContext ctx)
public static StoreFileTracker create(org.apache.hadoop.conf.Configuration conf, TableDescriptor td, ColumnFamilyDescriptor cfd, HRegionFileSystem regionFs)
private static org.apache.hadoop.conf.Configuration mergeConfigurations(org.apache.hadoop.conf.Configuration global, TableDescriptor table, ColumnFamilyDescriptor family)
static Class<? extends StoreFileTrackerBase> getStoreFileTrackerClassForMigration(org.apache.hadoop.conf.Configuration conf, String configName)
static StoreFileTrackerBase createForMigration(org.apache.hadoop.conf.Configuration conf, String configName, boolean isPrimaryReplica, StoreContext ctx)
MigrationStoreFileTracker
.public static TableDescriptor updateWithTrackerConfigs(org.apache.hadoop.conf.Configuration conf, TableDescriptor descriptor)
public static boolean isMigration(Class<?> clazz)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.