public boolean test(
        ArrayView matchedLabels,
        int partitionStart,
        int searchStart,
        int searchEnd,
        int patternStart,
        long matchNumber,
        Partition partition) {
      int currentRow = patternStart + matchedLabels.length() - 1;

      Object result =
          this.compute(
              currentRow,
              matchedLabels,
              partitionStart,
              searchStart,
              searchEnd,
              patternStart,
              matchNumber,
              labelNames,
              partition);

      return (boolean) result;
    }
The compute method is used to calculate the expressions in RPR.

<p>The identification of a label defined in the DEFINE clause is a Boolean expression and the
calculated Boolean value is the result we need.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/process/rowpattern/PatternVariableRecognizer.java