mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
[skip e2e] Add comment for base table (#14925)
Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
This commit is contained in:
parent
6d5725b0b4
commit
00d06f2562
@ -57,6 +57,7 @@ type BaseTable struct {
|
|||||||
LogCfgFunc func(log.Config)
|
LogCfgFunc func(log.Config)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Init initializes the paramtable
|
||||||
func (gp *BaseTable) Init() {
|
func (gp *BaseTable) Init() {
|
||||||
gp.params = memkv.NewMemoryKV()
|
gp.params = memkv.NewMemoryKV()
|
||||||
|
|
||||||
@ -74,10 +75,12 @@ func (gp *BaseTable) Init() {
|
|||||||
gp.InitLogCfg()
|
gp.InitLogCfg()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetConfigDir returns the config directory
|
||||||
func (gp *BaseTable) GetConfigDir() string {
|
func (gp *BaseTable) GetConfigDir() string {
|
||||||
return gp.configDir
|
return gp.configDir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// LoadFromKVPair saves given kv pair to paramtable
|
||||||
func (gp *BaseTable) LoadFromKVPair(kvPairs []*commonpb.KeyValuePair) error {
|
func (gp *BaseTable) LoadFromKVPair(kvPairs []*commonpb.KeyValuePair) error {
|
||||||
for _, pair := range kvPairs {
|
for _, pair := range kvPairs {
|
||||||
err := gp.Save(pair.Key, pair.Value)
|
err := gp.Save(pair.Key, pair.Value)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user