@Override
  public void transform(Row row, PointCollector collector) throws Exception {
    double v = Util.getValueAsDouble(row);
    if (Double.isFinite(v)) {
      timestamp.add(row.getTime());
      value.add(Util.getValueAsDouble(row));
    }
  }
This function segment input series into linear parts.
library-udf/src/main/java/org/apache/iotdb/library/dprofile/UDTFSegment.java