private void validateInputSeriesIndex(int index) throws UDFInputSeriesIndexNotValidException {
    int actualSeriesNumber = parameters.getChildExpressionsSize();
    if (index < 0 || actualSeriesNumber <= index) {
      throw new UDFInputSeriesIndexNotValidException(index, actualSeriesNumber);
    }
  }
Validates whether the index of the specified column is out of bound. bound: [0,
parameters.getPaths().size())

@param index the index of the specified column
@throws UDFInputSeriesIndexNotValidException if the index of the specified column is out of
    bound
iotdb-api/udf-api/src/main/java/org/apache/iotdb/udf/api/customizer/parameter/UDFParameterValidator.java