Enum MetadataIndexNodeType
- java.lang.Object
-
- java.lang.Enum<MetadataIndexNodeType>
-
- org.apache.iotdb.tsfile.file.metadata.enums.MetadataIndexNodeType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MetadataIndexNodeType>
public enum MetadataIndexNodeType extends java.lang.Enum<MetadataIndexNodeType>
The type of MetadataIndexNode.INTERNAL_DEVICE: internal nodes of the index tree's device level LEAF_DEVICE: leaf nodes of the index tree's device level, points to measurement level INTERNAL_MEASUREMENT: internal nodes of the index tree's measurement level LEAF_MEASUREMENT: leaf nodes of the index tree's device level, points to TimeseriesMetadata
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INTERNAL_DEVICEINTERNAL_DEVICE.INTERNAL_MEASUREMENTINTERNAL_MEASUREMENT.LEAF_DEVICELEAF_DEVICE.LEAF_MEASUREMENTINTERNAL_MEASUREMENT.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetadataIndexNodeTypedeserialize(byte i)deserialize byte number.static MetadataIndexNodeTypedeserializeFrom(java.nio.ByteBuffer buffer)static intgetSerializedSize()byteserialize()return a serialize child metadata index type.voidserializeTo(java.io.DataOutputStream outputStream)voidserializeTo(java.nio.ByteBuffer byteBuffer)static MetadataIndexNodeTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MetadataIndexNodeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INTERNAL_DEVICE
public static final MetadataIndexNodeType INTERNAL_DEVICE
INTERNAL_DEVICE.
-
LEAF_DEVICE
public static final MetadataIndexNodeType LEAF_DEVICE
LEAF_DEVICE.
-
INTERNAL_MEASUREMENT
public static final MetadataIndexNodeType INTERNAL_MEASUREMENT
INTERNAL_MEASUREMENT.
-
LEAF_MEASUREMENT
public static final MetadataIndexNodeType LEAF_MEASUREMENT
INTERNAL_MEASUREMENT.
-
-
Method Detail
-
values
public static MetadataIndexNodeType[] 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 (MetadataIndexNodeType c : MetadataIndexNodeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetadataIndexNodeType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
deserialize
public static MetadataIndexNodeType deserialize(byte i)
deserialize byte number.- Parameters:
i- byte number- Returns:
- MetadataIndexNodeType
- Throws:
java.lang.IllegalArgumentException- illegal argument
-
deserializeFrom
public static MetadataIndexNodeType deserializeFrom(java.nio.ByteBuffer buffer)
-
getSerializedSize
public static int getSerializedSize()
-
serializeTo
public void serializeTo(java.nio.ByteBuffer byteBuffer)
-
serializeTo
public void serializeTo(java.io.DataOutputStream outputStream) throws java.io.IOException- Throws:
java.io.IOException
-
serialize
public byte serialize()
return a serialize child metadata index type.- Returns:
- -enum type
-
-