mirror of
https://gitee.com/dromara/MilvusPlus.git
synced 2025-12-07 17:38:24 +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.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
||||||
import java.lang.annotation.Target;
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author xgc
|
* @author xgc
|
||||||
**/
|
**/
|
||||||
@Target(ElementType.FIELD)
|
@Target(ElementType.FIELD)
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
public @interface MilvusIndex {
|
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