public static boolean satisfyPartitionId(long startTime, long endTime, long partitionId) {
    long startPartition =
        originMayCauseOverflow
            ? getTimePartitionIdWithoutOverflow(startTime)
            : getTimePartitionId(startTime);
    long endPartition =
        originMayCauseOverflow
            ? getTimePartitionIdWithoutOverflow(endTime)
            : getTimePartitionId(endTime);
    return startPartition <= partitionId && endPartition >= partitionId;
  }
Time range for dividing database, the time unit is the same with IoTDB's TimestampPrecision
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/TimePartitionUtils.java