io.milvus.common.clientenum.ConsistencyLevelEnum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of milvus-sdk-java Show documentation
Show all versions of milvus-sdk-java Show documentation
Java SDK for Milvus, a distributed high-performance vector search engine.
update grpc to 1.42.1
update protobuf to 3.19.1
package io.milvus.common.clientenum;
import lombok.Getter;
public enum ConsistencyLevelEnum {
STRONG("Strong", 0),
// SESSION("Session", 1),
BOUNDED("Bounded", 2),
EVENTUALLY("Eventually",3),
;
@Getter
private final String name;
@Getter
private final int code;
ConsistencyLevelEnum(String name, int code){
this.name = name;
this.code = code;
}
private static final ConsistencyLevelEnum[] CONSISTENCY_LEVELS = new ConsistencyLevelEnum[values().length];
private static ConsistencyLevelEnum getNameByCode(int code) {
if (code >= 0 && code < CONSISTENCY_LEVELS.length) {
return CONSISTENCY_LEVELS[code];
}
return null;
}
}