public class HMSPropertyManager extends PropertyManager
| Modifier and Type | Class and Description |
|---|---|
static class |
HMSPropertyManager.MaintenanceOpStatus
Table maintenance operation status.
|
static class |
HMSPropertyManager.MaintenanceOpType
Table maintenance operation type.
|
PropertyManager.MapWrapper| Modifier and Type | Field and Description |
|---|---|
static PropertySchema |
CLUSTER_SCHEMA
The cluster declared properties.
|
static PropertySchema |
DATABASE_SCHEMA
The database declared properties.
|
static PropertyType<HMSPropertyManager.MaintenanceOpType> |
MAINTENANCE_OPERATION
Maintenance Operation Type.
|
static PropertyType<HMSPropertyManager.MaintenanceOpStatus> |
MAINTENANCE_STATUS
Maintenance Operation Status.
|
static PropertySchema |
TABLE_SCHEMA
The table declared properties.
|
dirtyMaps, LOGGER, namespace, store| Constructor and Description |
|---|
HMSPropertyManager(PropertyStore store) |
HMSPropertyManager(String ns,
PropertyStore store)
Creates manager from a property store instance.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
declareClusterProperty(String name,
PropertyType<?> type,
Object defaultValue)
Declares a new cluster property.
|
static void |
declareDatabaseProperty(String name,
PropertyType<?> type,
Object defaultValue)
Declares a new database property.
|
static void |
declareTableProperty(String name,
PropertyType<?> type,
Object defaultValue)
Declares a new table property.
|
static HMSPropertyManager.MaintenanceOpStatus |
findOpStatus(int ordinal)
Finds an op-type by its ordinal.
|
static HMSPropertyManager.MaintenanceOpType |
findOpType(int ordinal)
Finds an op-type by its ordinal.
|
protected int |
getMapNameLength(String[] keys)
The number of fragments that will be used to determine the map name.
|
PropertySchema |
getSchema(String schemaName)
The property map factory.
|
protected PropertySchema |
schemaOf(String[] keys)
Determines the schema from the property name fragments.
|
commit, create, declare, dropProperties, exportPropertyValue, getProperty, getProperty, getPropertyValue, getPropertyValue, importDefaultValues, mapKey, mapKey, mapKey, mapName, propertyName, propertyName, rollback, runScript, selectProperties, selectProperties, selectProperties, selectProperties, selectProperties, setProperties, setProperties, setProperty, setProperty, splitKeypublic static final PropertyType<HMSPropertyManager.MaintenanceOpType> MAINTENANCE_OPERATION
public static final PropertyType<HMSPropertyManager.MaintenanceOpStatus> MAINTENANCE_STATUS
public static final PropertySchema CLUSTER_SCHEMA
public static final PropertySchema DATABASE_SCHEMA
public static final PropertySchema TABLE_SCHEMA
public HMSPropertyManager(String ns, PropertyStore store)
store - the storepublic HMSPropertyManager(PropertyStore store)
public static HMSPropertyManager.MaintenanceOpType findOpType(int ordinal)
ordinal - the enum ordinalpublic static HMSPropertyManager.MaintenanceOpStatus findOpStatus(int ordinal)
ordinal - the enum ordinalpublic static void declareClusterProperty(String name, PropertyType<?> type, Object defaultValue)
name - the property nametype - the property typedefaultValue - the property default value or null if nonepublic static void declareDatabaseProperty(String name, PropertyType<?> type, Object defaultValue)
name - the property nametype - the property typedefaultValue - the property default value or null if nonepublic static void declareTableProperty(String name, PropertyType<?> type, Object defaultValue)
name - the property nametype - the property typedefaultValue - the property default value or null if nonepublic PropertySchema getSchema(String schemaName)
getSchema in class PropertyManagerschemaName - the map type (cluster, database, table)protected PropertySchema schemaOf(String[] keys)
The number of fragments is enough to determine if we are dealing with cluster (1 fragment, the property name), database (2 fragments, 1 for db name, 2 for property), table (3 fragments, db name;, table name, property name).
schemaOf in class PropertyManagerkeys - the property key fragmentsprotected int getMapNameLength(String[] keys)
getMapNameLength in class PropertyManagerkeys - key fragmentskeys.length - 1 since a property name is at least 1 fragmentCopyright © 2024 The Apache Software Foundation. All rights reserved.