Enum PrivilegeType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PrivilegeType>

    public enum PrivilegeType
    extends java.lang.Enum<PrivilegeType>
    This enum class contains all available privileges in IoTDB.
    • Method Detail

      • values

        public static PrivilegeType[] 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 (PrivilegeType c : PrivilegeType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PrivilegeType 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
      • isPathRelevant

        public static boolean isPathRelevant​(int type)
        Some privileges need a seriesPath as parameter, while others do not. This method returns which privileges need a seriesPath.
        Parameters:
        type - An integer that represents a privilege.
        Returns:
        Whether this privilege need a seriesPath or not.
      • isPathRelevant

        public boolean isPathRelevant()