Enum MetadataIndexNodeType

  • All Implemented Interfaces:
    Serializable, Comparable<MetadataIndexNodeType>

    public enum MetadataIndexNodeType
    extends 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

    • 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​(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 name
        NullPointerException - if the argument is null
      • getSerializedSize

        public static int getSerializedSize()
      • serializeTo

        public void serializeTo​(ByteBuffer byteBuffer)
      • serialize

        public byte serialize()
        return a serialize child metadata index type.
        Returns:
        -enum type