未验证 提交 c77ed041 编写于 作者: S shaoyue 提交者: GitHub

[skip ci] Add comment for basetable (#12694)

Signed-off-by: Nshaoyue.chen <shaoyue.chen@zilliz.com>
上级 2ec8f1fa
......@@ -234,14 +234,17 @@ func (gp *BaseTable) tryloadFromEnv() {
}
}
// Load loads an object with @key.
func (gp *BaseTable) Load(key string) (string, error) {
return gp.params.Load(strings.ToLower(key))
}
// LoadWithDefault loads an object with @key. If the object does not exist, @defaultValue will be returned.
func (gp *BaseTable) LoadWithDefault(key, defaultValue string) string {
return gp.params.LoadWithDefault(strings.ToLower(key), defaultValue)
}
// LoadRange loads objects with range @startKey to @endKey with @limit number of objects.
func (gp *BaseTable) LoadRange(key, endKey string, limit int) ([]string, []string, error) {
return gp.params.LoadRange(strings.ToLower(key), strings.ToLower(endKey), limit)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册