From abb0cee0fcf597f6738efe7bdfadccf332544116 Mon Sep 17 00:00:00 2001 From: Eukanj827 Date: Tue, 2 Aug 2022 12:37:44 +0800 Subject: [PATCH] Update __init__.py --- .../diagnosis/query/slow_sql/featurelib/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 {