private static void countOneFile(
      String line, int pid, EnumMap<OpenFileNumStatistics, Integer> resultMap) {
    String[] temp = line.split("\\s+");
    if (!line.contains(Integer.toString(pid)) || temp.length <= 8) {
      return;
    }
    int oldValue = resultMap.get(OpenFileNumStatistics.TOTAL_OPEN_FILE_NUM);
    resultMap.put(OpenFileNumStatistics.TOTAL_OPEN_FILE_NUM, oldValue + 1);
    for (OpenFileNumStatistics openFileNumStatistics : OpenFileNumStatistics.values()) {
      if (openFileNumStatistics.path == null) {
        continue;
      }
      for (String path : openFileNumStatistics.path) {
        if (temp[8].contains(path)) {
          oldValue = resultMap.get(openFileNumStatistics);
          resultMap.put(openFileNumStatistics, oldValue + 1);
        }
      }
    }
    if (temp[7].contains("TCP") || temp[7].contains("UDP")) {
      oldValue = resultMap.get(OpenFileNumStatistics.SOCKET_OPEN_FILE_NUM);
      resultMap.put(OpenFileNumStatistics.SOCKET_OPEN_FILE_NUM, oldValue + 1);
    }
  }
return statistic Map, whose key belongs to enum OpenFileNumStatistics: TOTAL_OPEN_FILE_NUM is
the current total open file number of IoTDB service process; SEQUENCE_FILE_OPEN_NUM is the
current open file number under data directory; DELTA_OPEN_FILE_NUM is the current open file
number of TsFile; UNSEQUENCE_FILE_OPEN_NUM is the current open file number of unsequence file;
WAL_OPEN_FILE_NUM is the current open file number of WAL file; METADATA_OPEN_FILE_NUM is the
current open file number of metadata; DIGEST_OPEN_FILE_NUM is the current open file number of
fileNodeDir; SOCKET_OPEN_FILE_NUM is the current open socket connection of IoTDB service
process.

@param pid : IoTDB service pid
@return list : statistics list
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/OpenFileNumUtil.java