public int checkTTL(TSStatus[] results, long ttl) throws OutOfTTLException {
    return checkTTLInternal(results, ttl, true);
  }
@param results insertion result of each row
@param ttl the ttl
@return the position of the first alive row
@throws OutOfTTLException if all rows have expired the TTL
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/InsertTabletNode.java