[skip e2e] Add comment for base table (#14925)

Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
This commit is contained in:
shaoyue 2022-01-06 13:49:27 +08:00 committed by GitHub
parent 6d5725b0b4
commit 00d06f2562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,7 @@ type BaseTable struct {
LogCfgFunc func(log.Config)
}
// Init initializes the paramtable
func (gp *BaseTable) Init() {
gp.params = memkv.NewMemoryKV()
@ -74,10 +75,12 @@ func (gp *BaseTable) Init() {
gp.InitLogCfg()
}
// GetConfigDir returns the config directory
func (gp *BaseTable) GetConfigDir() string {
return gp.configDir
}
// LoadFromKVPair saves given kv pair to paramtable
func (gp *BaseTable) LoadFromKVPair(kvPairs []*commonpb.KeyValuePair) error {
for _, pair := range kvPairs {
err := gp.Save(pair.Key, pair.Value)