public void register(TriggerInformation triggerInformation, ByteBuffer jarFile)
      throws IOException {
    try {
      acquireLock();
      checkIfRegistered(triggerInformation);
      saveJarFile(triggerInformation.getJarName(), jarFile);
      doRegister(triggerInformation, false);
    } finally {
      releaseLock();
    }
  }
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