private static void insertTablet1(List<IMeasurementSchema> schemaList, Tablet tablet)
      throws IoTDBConnectionException, StatementExecutionException {
    tablet.initBitMaps();

    long timestamp = System.currentTimeMillis();
    for (long row = 0; row < 100; row++) {
      int rowIndex = tablet.getRowSize();
      tablet.addTimestamp(rowIndex, timestamp);
      for (int s = 0; s < 3; s++) {
        long value = random.nextLong();
        if (row % 3 != s) {
          tablet.addValue(schemaList.get(s).getMeasurementName(), rowIndex, value);
        }
      }
      if (tablet.getRowSize() == tablet.getMaxRowNumber()) {
        session.insertTablet(tablet, true);
        tablet.reset();
      }
      timestamp++;
    }

    if (tablet.getRowSize() != 0) {
      session.insertTablet(tablet);
      tablet.reset();
    }
  }
insert the data of a device. For each timestamp, the number of measurements is the same.

<p>Users need to control the count of Tablet and write a batch when it reaches the maxBatchSize
example/session/src/main/java/org/apache/iotdb/SessionExample.java