public UDFParameterValidator validateRequiredAttribute(String attributeKey)
      throws UDFAttributeNotProvidedException {
    if (!parameters.hasAttribute(attributeKey)) {
      throw new UDFAttributeNotProvidedException(attributeKey);
    }
    return this;
  }
Validates whether the attributes entered by the user contain an attribute whose key is
attributeKey.

@param attributeKey key of the attribute
@throws UDFAttributeNotProvidedException if the attribute is not provided
iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/parameter/UDFParameterValidator.java