diff --git a/src/gausskernel/dbmind/tools/app/diagnosis/query/slow_sql/featurelib/__init__.py b/src/gausskernel/dbmind/tools/app/diagnosis/query/slow_sql/featurelib/__init__.py index 573abba97..d48938582 100644 --- a/src/gausskernel/dbmind/tools/app/diagnosis/query/slow_sql/featurelib/__init__.py +++ b/src/gausskernel/dbmind/tools/app/diagnosis/query/slow_sql/featurelib/__init__.py @@ -14,11 +14,23 @@ import os from . import feature_mapping from . import features +# To import file feature_mapping and features from parent folder +#function name: load_feature_lib +#description: Print the variable FEATURE_LIB in the file-- features +#return value: The value of FEATURE_LIB +#date: 2022/8/2 +#contact: 1865997821 def load_feature_lib(): return features.FEATURE_LIB +#function name: get_feature_mapper +#description: Get the item and value of a dictionary type in the file-- feature_mapping and output it as a generator. +#return value: The item and value in _dict_ variable +#note:Dictionary key-value pairs must start with C then the item and value will be return. +#date: 2022/8/2 +#contact: 1865997821 def get_feature_mapper(): return {