public boolean needToFireOnAnotherDataNode(String triggerName) {
    TriggerInformation triggerInformation = triggerTable.getTriggerInformation(triggerName);
    return triggerInformation.isStateful()
        && triggerInformation.getDataNodeLocation().getDataNodeId() != DATA_NODE_ID;
  }
Maintain a PatternTree: PathPattern -> List<String> triggerNames Return the triggerNames of
triggers whose PathPatterns match the given one.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/trigger/service/TriggerManagementService.java