Enum 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

    • 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 name
        java.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
      • 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