docs: MilvusIndex注解添加注释

This commit is contained in:
code2tan 2024-05-30 10:16:25 +08:00
parent 38b7a8ca52
commit a65532c71c

View File

@ -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 {};
} }