cn.geektool.es.server.annoation.ESTable Maven / Gradle / Ivy
package cn.geektool.es.server.annoation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* ES注解类
*
* @author jiangdi
* @since 1.0.0
*/
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface ESTable {
/**
* 索引
*
* @return String
*/
String index();
/**
* 分片数
*
* @return short
*/
short shards() default 5;
/**
* 副本
*
* @return short
*/
short replicas() default 1;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy