public static void swapArray(Object[] array, int i, int j) {
    Object tmp = array[i];
    array[i] = array[j];
    array[j] = tmp;
  }
Check whether the time falls in TTL.

@return whether the given time falls in ttl
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/CommonUtils.java