xingjinshuang
2025-02-20 0890b7861feae74bdcfd1851e577db6b9f31d484
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.se.simu.service;
 
import hdf.hdf5lib.exceptions.HDF5LibraryException;
 
/**
 * ibiz H5 文件解析器
 *
 * @author xingjinshuang@smartearth.cn
 * @date 2024/12/06
 */
public interface IBizH5FileParserService {
 
    /**
     * 打开HDF5文件
     *
     * @param filePath 文件路径
     * @return 文件ID
     */
    long openH5File(String filePath) ;
 
 
    /**
     * 读取指定数据集的数据
     *
     * @param fileId      文件ID
     * @param datasetName 数据集名称
     * @return 数据集的值
     */
    Object readDataset(long fileId, String datasetName);
 
 
    /**
     * 关闭HDF5文件
     *
     * @param fileId 文件ID
     */
    void closeH5File(long fileId) throws HDF5LibraryException;
 
    /**
     * 解析 H5 文件
     *
     * @param filePath
     * @return {@link Object}
     */
    Object parseH5File(String filePath);
}