mirror of
https://gitee.com/dromara/MilvusPlus.git
synced 2025-12-06 17:08:27 +08:00
docs: MilvusIndex注解添加注释
This commit is contained in:
parent
38b7a8ca52
commit
a65532c71c
@ -7,14 +7,34 @@ import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* @author xgc
|
||||
**/
|
||||
@Target(ElementType.FIELD)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface MilvusIndex {
|
||||
IndexParam.IndexType indexType() default IndexParam.IndexType.FLAT; // 索引类型
|
||||
IndexParam.MetricType metricType() default IndexParam.MetricType.L2; // 度量类型
|
||||
String indexName() default ""; // 索引名称
|
||||
ExtraParam[] extraParams() default {}; // 指定额外的参数
|
||||
/**
|
||||
* 索引类型
|
||||
*
|
||||
* @see IndexParam.IndexType
|
||||
*/
|
||||
IndexParam.IndexType indexType() default IndexParam.IndexType.FLAT;
|
||||
|
||||
/**
|
||||
* 度量类型
|
||||
*
|
||||
* @see IndexParam.MetricType
|
||||
*/
|
||||
IndexParam.MetricType metricType() default IndexParam.MetricType.L2;
|
||||
|
||||
/**
|
||||
* 索引名称
|
||||
*/
|
||||
String indexName() default "";
|
||||
|
||||
/**
|
||||
* 指定额外的参数
|
||||
*/
|
||||
ExtraParam[] extraParams() default {};
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user