[skip e2e]Add comments to conf adapter file (#14930)

Signed-off-by: jingkl <jingjing.jia@zilliz.com>
pull/14946/head
jingkl 2022-01-06 18:12:15 +08:00 committed by GitHub
parent 1ebec3fff3
commit 13e27c9803
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -374,6 +374,7 @@ type RHNSWFlatConfAdapter struct {
BaseConfAdapter
}
// CheckTrain checks if a rhnsw flat index can be built with specific parameters.
func (adapter *RHNSWFlatConfAdapter) CheckTrain(params map[string]string) bool {
if !CheckIntByRange(params, EFConstruction, HNSWMinEfConstruction, HNSWMaxEfConstruction) {
return false