@Override
  public void beforeStart(UDFParameters udfp, UDTFConfigurations udtfc) throws Exception {
    udtfc.setAccessStrategy(new RowByRowAccessStrategy()).setOutputDataType(Type.BOOLEAN);
    int minLength = udfp.getIntOrDefault("minlen", 10);
    this.detector = new StreamMissDetector(minLength);
  }
This function is used to detect missing anomalies.
library-udf/src/main/java/org/apache/iotdb/library/anomaly/UDTFMissDetect.java