milvus/internal/util/indexparamcheck/auto_index_checker.go
foxspy d7b2ffe5aa
enhance: add an unify vector index config checker (#36844)
issue: #34298

Signed-off-by: xianliang.li <xianliang.li@zilliz.com>
2024-10-28 10:11:37 +08:00

23 lines
508 B
Go

package indexparamcheck
import (
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
)
// AUTOINDEXChecker checks if a TRIE index can be built.
type AUTOINDEXChecker struct {
baseChecker
}
func (c *AUTOINDEXChecker) CheckTrain(dataType schemapb.DataType, params map[string]string) error {
return nil
}
func (c *AUTOINDEXChecker) CheckValidDataType(indexType IndexType, field *schemapb.FieldSchema) error {
return nil
}
func newAUTOINDEXChecker() *AUTOINDEXChecker {
return &AUTOINDEXChecker{}
}