private void addRecordToTablet(
      Tablet tablet,
      Long timestamp,
      List<String> measurements,
      List<Object> values,
      Map<String, Pair<TSDataType, Boolean>> allMeasurementMap) {
    int row = tablet.getRowSize();
    tablet.addTimestamp(row, timestamp);
    // tablet without null value
    if (measurements.size() == allMeasurementMap.size()) {
      for (int i = 0; i < measurements.size(); i++) {
        tablet.addValue(measurements.get(i), row, values.get(i));
      }
      return;
    }
    // tablet with null value
    for (int i = 0; i < measurements.size(); i++) {
      String measurement = measurements.get(i);
      tablet.addValue(measurement, row, values.get(i));
      allMeasurementMap.get(measurement).setRight(false);
    }
    for (Entry<String, Pair<TSDataType, Boolean>> entry : allMeasurementMap.entrySet()) {
      if (entry.getValue().getRight()) {
        tablet.addValue(entry.getKey(), row, null);
      } else {
        entry.getValue().setRight(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