@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TTLInfo other = (TTLInfo) o;
    return this.getTTLCount() == other.getTTLCount()
        && this.showTTL(new ShowTTLPlan())
            .getPathTTLMap()
            .equals(other.showTTL(new ShowTTLPlan()).getPathTTLMap());
  }
Get the maximum ttl of the subtree of the corresponding database.

@param database the path of the database.
@return the maximum ttl of the subtree of the corresponding database. return NULL_TTL if the
    TTL is not set or the database does not exist.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/TTLInfo.java