public UDFParameterValidator validateInputSeriesNumber(
      int expectedSeriesNumberLowerBound, int expectedSeriesNumberUpperBound)
      throws UDFInputSeriesNumberNotValidException {
    int actualSeriesNumber = parameters.getChildExpressionsSize();
    if (actualSeriesNumber < expectedSeriesNumberLowerBound
        || expectedSeriesNumberUpperBound < actualSeriesNumber) {
      throw new UDFInputSeriesNumberNotValidException(
          actualSeriesNumber, expectedSeriesNumberLowerBound, expectedSeriesNumberUpperBound);
    }
    return this;
  }
Validates whether the number of the input series is as expected.

@param expectedSeriesNumberLowerBound the number of the input series must be greater than or
    equal to the expectedSeriesNumberLowerBound
@param expectedSeriesNumberUpperBound the number of the input series must be less than or equal
    to the expectedSeriesNumberUpperBound
@throws UDFInputSeriesNumberNotValidException if the number of the input series is not as
    expected
iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/parameter/UDFParameterValidator.java