private void updateMinStartTimeAndMaxEndTime() {
    for (Map.Entry<IDeviceID, Integer> entry : deviceToIndex.entrySet()) {
      if (entry.getValue() == null) {
        continue;
      }

      if (endTimes != null) {
        maxEndTime = Math.max(maxEndTime, endTimes[entry.getValue()]);
      }

      if (startTimes != null) {
        minStartTime = Math.min(minStartTime, startTimes[entry.getValue()]);
      }
    }
  }
Deserialize TimeIndex and get devices only.

@param inputStream inputStream
@return device name
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/tsfile/timeindex/ArrayDeviceTimeIndex.java