Package io.milvus.grpc
Enum SegmentLevel
- java.lang.Object
-
- java.lang.Enum<SegmentLevel>
-
- io.milvus.grpc.SegmentLevel
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<SegmentLevel>
public enum SegmentLevel extends Enum<SegmentLevel> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enummilvus.proto.common.SegmentLevel
-
-
Enum Constant Summary
Enum Constants Enum Constant Description L0L0 segment, contains delta data for current channelL1L1 segment, normal segment, with no extra compaction attributeL2L2 segment, segment with extra data distribution infoLegacyzero value for legacy logicUNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intL0_VALUEL0 segment, contains delta data for current channelstatic intL1_VALUEL1 segment, normal segment, with no extra compaction attributestatic intL2_VALUEL2 segment, segment with extra data distribution infostatic intLegacy_VALUEzero value for legacy logic
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SegmentLevelforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<SegmentLevel>internalGetValueMap()static SegmentLevelvalueOf(int value)Deprecated.static SegmentLevelvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static SegmentLevelvalueOf(String name)Returns the enum constant of this type with the specified name.static SegmentLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Legacy
public static final SegmentLevel Legacy
zero value for legacy logic
Legacy = 0;
-
L0
public static final SegmentLevel L0
L0 segment, contains delta data for current channel
L0 = 1;
-
L1
public static final SegmentLevel L1
L1 segment, normal segment, with no extra compaction attribute
L1 = 2;
-
L2
public static final SegmentLevel L2
L2 segment, segment with extra data distribution info
L2 = 3;
-
UNRECOGNIZED
public static final SegmentLevel UNRECOGNIZED
-
-
Field Detail
-
Legacy_VALUE
public static final int Legacy_VALUE
zero value for legacy logic
Legacy = 0;- See Also:
- Constant Field Values
-
L0_VALUE
public static final int L0_VALUE
L0 segment, contains delta data for current channel
L0 = 1;- See Also:
- Constant Field Values
-
L1_VALUE
public static final int L1_VALUE
L1 segment, normal segment, with no extra compaction attribute
L1 = 2;- See Also:
- Constant Field Values
-
L2_VALUE
public static final int L2_VALUE
L2 segment, segment with extra data distribution info
L2 = 3;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static SegmentLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SegmentLevel c : SegmentLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SegmentLevel valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static SegmentLevel valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static SegmentLevel forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<SegmentLevel> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static SegmentLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-