private boolean judgeConvertOfMultiDevice(
      List<String> deviceIds, List<List<String>> measurementsList) {
    int size = deviceIds.size();
    int sampleNum = (int) (size * SAMPLE_PROPORTION);
    Map<String, Set<String>> measurementMap = new HashMap<>(sampleNum + 1, 1);
    List<Integer> indexList =
        ThreadLocalRandom.current()
            .ints(0, size)
            .distinct()
            .limit(sampleNum)
            .boxed()
            .collect(Collectors.toList());
    for (int i = 0; i < sampleNum; i++) {
      int index = indexList.get(i);
      List<String> measurements = measurementsList.get(index);
      Set<String> allMeasurement =
          measurementMap.computeIfAbsent(
              deviceIds.get(index), k -> new HashSet<>(measurements.size() + 1, 1));
      allMeasurement.addAll(measurements);
    }
    for (int i = 0; i < sampleNum; i++) {
      int index = indexList.get(i);
      Set<String> allMeasurement = measurementMap.get(deviceIds.get(index));
      if ((double) measurementsList.get(index).size() / allMeasurement.size() < CONVERT_THRESHOLD) {
        return false;
      }
    }
    return true;
  }
insert aligned data of several devices. Given a device, for each timestamp, the number of
measurements is the same.

@param tablets data batch in multiple device
@param sorted deprecated, whether times in each Tablet are in ascending order
iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.java