WO2024103886A1 - 文件存储方法、数据加载方法及相关设备 - Google Patents

文件存储方法、数据加载方法及相关设备 Download PDF

Info

Publication number
WO2024103886A1
WO2024103886A1 PCT/CN2023/114298 CN2023114298W WO2024103886A1 WO 2024103886 A1 WO2024103886 A1 WO 2024103886A1 CN 2023114298 W CN2023114298 W CN 2023114298W WO 2024103886 A1 WO2024103886 A1 WO 2024103886A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
signaling
data
index
target
Prior art date
Application number
PCT/CN2023/114298
Other languages
English (en)
French (fr)
Inventor
陈世润
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2024103886A1 publication Critical patent/WO2024103886A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices

Definitions

  • the present disclosure relates to the field of computer technology, and in particular to a file storage method, a data loading method and related devices.
  • Network optimization personnel use the road test APP to conduct road tests. When a network fault is found, they need to report the signaling through the underlying interface of the mobile phone at the test site and obtain the signaling data in the reported signaling to quickly locate the wireless network fault through the signaling data.
  • the amount of signaling data reported is large (millisecond-level data), the test process may take several hours, and about one million data records will be generated. The size of the saved road test file will grow rapidly.
  • the mobile phone system needs to wait for a long time to perform time-consuming signaling operations in the sub-thread, which increases the CPU load and makes it very easy for the APP to freeze.
  • the file saving implementation method for signaling data in the related art is mainly to save the signaling data directly into the drive test file.
  • all the drive test files and all the data in the files need to be loaded at one time, which makes the amount of data to be loaded large, and thus leads to a long waiting time for loading the drive test data.
  • the network optimization and drive test personnel only focus on the data within the time range when the problem occurs. Loading data according to the above saving method will cause unnecessary waiting time.
  • the present disclosure provides a file storage method, a data loading method and related devices, which are used to solve the problem in the prior art that, when playing back data, all drive test files and all data in the files need to be loaded at one time, resulting in a large amount of data to be loaded, which in turn leads to a long waiting time for loading the drive test data.
  • an embodiment of the present disclosure provides a file storage method, including:
  • An index file of the current signaling file is generated so as to search for the current signaling file based on the index file, wherein the index file includes index information of signaling data acquired at different timestamps in the current signaling file.
  • an embodiment of the present disclosure provides a data loading method, including:
  • a target index file including at least one timestamp within a time range from at least one index file, the index file including index information of signaling data obtained at different timestamps in the signaling file, the index information being used to search for a signaling file storing the signaling data;
  • the target signaling file is loaded based on the loading position to obtain the signaling data to be loaded.
  • an embodiment of the present disclosure provides a file storage device, including:
  • a first acquisition module is configured to acquire signaling data and store it in a current signaling file
  • the generation module is configured to generate an index file of the current signaling file so as to search the current signaling file based on the index file, wherein the index file includes index information of signaling data obtained at different timestamps in the current signaling file.
  • an embodiment of the present disclosure provides a data loading device, including:
  • a second acquisition module is configured to acquire a time range of signaling data to be loaded
  • a first determination module is configured to determine a target index file including at least one timestamp within a time range from at least one index file, the index file including index information of signaling data obtained at different timestamps in the signaling file, the index information being used to search for a signaling file storing the signaling data;
  • a second determination module is configured to determine a target signaling file corresponding to a target index file in the signaling file
  • a third determination module is configured to determine a loading position in a target signaling file based on a time range
  • the loading module is configured to load the target signaling file based on the loading position to obtain the signaling data to be loaded.
  • an embodiment of the present disclosure provides an electronic device, including: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
  • a memory arranged to store a computer program
  • the processor is configured to execute the program stored in the memory to implement the file storage method of the first aspect or the data loading method of the second aspect.
  • an embodiment of the present disclosure provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the file storage method of the first aspect or the data loading method of the second aspect.
  • FIG1 is an application scenario diagram of a file storage method provided by an embodiment of the present disclosure
  • FIG2 is a flow chart of a file storage method provided by an embodiment of the present disclosure.
  • FIG3 is a flow chart of a file storage method provided by another embodiment of the present disclosure.
  • FIG4 is a flow chart of a data loading method provided by an embodiment of the present disclosure.
  • FIG5 is a structural diagram of a file storage device provided by an embodiment of the present disclosure.
  • FIG6 is a structural diagram of a data loading device provided by an embodiment of the present disclosure.
  • FIG. 7 is a structural diagram of an electronic device provided in an embodiment of the present disclosure.
  • a file storage method and a data loading method are provided.
  • the above-mentioned file storage method and data loading method can be applied to a hardware environment composed of a terminal 101 and a server 102 as shown in Figure 1.
  • the server 102 is connected to the terminal 101 via a network, and can be used to provide services (such as video services, application services, etc.) for the terminal or a client installed on the terminal.
  • a database can be set on the server or independently of the server to provide data storage services for the server 102.
  • the above-mentioned network includes but is not limited to: a wide area network, a metropolitan area network or a local area network, and the terminal 101 is not limited to a PC, a mobile phone, a tablet computer, etc.
  • the file storage method and data loading method of the embodiment of the present disclosure may be executed by the server 102, or by the terminal 101, or by both the server 102 and the terminal 101.
  • the terminal 101 executes the file storage method and data loading method of the embodiment of the present disclosure, or the client installed thereon.
  • FIG2 is a flow chart of an exemplary file storage method according to the embodiment of the present disclosure. As shown in FIG2, the flow of the method may include the following steps:
  • Step 201 Acquire signaling data and store it in the current signaling file.
  • the signaling data may be data generated during a test by a road tester. After acquiring the signaling data, the terminal stores the acquired signaling data in a current signaling file.
  • the signaling data may include, but is not limited to, a signaling name, a signaling acquisition timestamp, a channel name, and a signaling content.
  • Step 202 Generate an index file of the current signaling file so as to search for the current signaling file based on the index file, wherein the index file includes index information of the signaling data obtained at different timestamps in the current signaling file.
  • an index file of the current signaling file is generated and the current signaling file is searched using the index file.
  • the current signaling file stores the acquisition timestamp of the acquired signaling data, and when the index file of the current signaling file is generated, the acquisition timestamp of the signaling data is used as index information, so that the corresponding signaling file can be searched through the index information in the index file, and then data loading is performed.
  • the corresponding signaling file can be determined through the index information in the index file, reducing the number of signaling files that need to be loaded, thereby reducing the waiting time of relevant personnel.
  • the acquisition timestamp may be a timestamp in each signaling file each time signaling data is acquired.
  • the method further includes:
  • a new signaling file and a new index file corresponding to the new signaling file are stored so that the subsequently acquired signaling data are stored in the new signaling file.
  • the new signaling file is searched in the signaling file and through the new index file.
  • the data volume of the signaling data is counted during the process of obtaining signaling data in the current signaling file.
  • a preset threshold When the data volume reaches a preset threshold, a new signaling file and a corresponding index file are created.
  • the index information may be set according to relevant parameters of the signaling data in the current signaling file, for example, an acquisition timestamp when the signaling data is acquired.
  • the amount of data in the current signaling file can also be controlled by setting a preset duration. For example, a new signaling file is created every 1 second, and the signaling data acquired within that 1 second is stored in the new signaling file.
  • generating the index file of the current signaling file includes:
  • the data length and the acquisition timestamp are stored as index information to obtain the index file.
  • the index information includes not only the acquisition timestamp, but also the data length of the signaling data. Since a certain amount of signaling data is stored in the signaling file, the signaling data is acquired at different timestamps, so that the amount of data in the signaling file is different each time it is stored in the signaling file. Based on this, when setting the index information, the data length in the signaling file is used as the index information, so that the position of the data to be loaded in the signaling file can be directly determined based on the data length, and the data can be loaded.
  • the data length of the first signaling data of the signaling file is 100, and the acquisition timestamp is 2022-10-15 10:03:05, the data length of the second signaling data is 120, and the acquisition timestamp is 2022-10-15 10:03:06, and the data length of the third signaling data is 110, and the acquisition timestamp is 2022-10-15 10:03:07.
  • the index information of the corresponding index file is: 0+2022-10-15 10:03:05; 100+2022-10-15 10:03:06; 220+2022-10-15 10:03:07.
  • the "100” in “100+2022-10-15 10:03:06" means that when the signaling data is stored in the signaling file, the data size of other signaling data in the signaling file is 100, so the offset relative to the starting position of the signaling file, i.e., the data length, is 100.
  • the signaling data length is the sum of the data lengths of the signaling name, the signaling acquisition timestamp, the channel name and the signaling content.
  • the file storage method provided by the present disclosure stores the corresponding index file synchronously when storing the file, and the length and timestamp information of the signaling data are stored in the index file.
  • the signaling file stores the signaling data according to the pre-set storage space size, and each signaling file corresponds to an index file.
  • the signaling file can be indexed by the index file, and then when the signaling data of a certain time range needs to be loaded, the corresponding signaling file can be determined by the index information in the index file, which reduces the number of signaling files that need to be loaded, thereby reducing the waiting time of relevant personnel.
  • the file storage method provided by an embodiment of the present disclosure, as shown in FIG3, includes:
  • Step 301 Set the storage space size of each signaling file and start testing.
  • Step 302 create a signaling file (*.apt) and an index file (*.log) for data storage.
  • the file name naming rule is: custom information (XXX) + file ID (0, 1, 2, 3...) + mobile phone timestamp (20220828150106).
  • the signaling file and the index file are distinguished by the suffix.
  • Step 303 Write the signaling data into the signaling file, calculate the corresponding data length and timestamp information and store them into the index file.
  • Step 304 Determine whether to stop the test. If not, execute step 305. If yes, execute step 307.
  • Step 305 determine whether the size of the signaling file exceeds the set value, if not, execute step 303 , if yes, execute step 306 .
  • Step 306 Add 1 to the file ID and execute step 302.
  • a data loading method is also provided, which can be applied to any form of electronic device, such as a terminal and a server. As shown in FIG4 , the data loading method includes:
  • Step 401 Obtain the time range of the signaling data to be loaded.
  • the time range may be selected by the road test personnel according to actual test conditions, for example, by inputting the desired time range to be queried in the input interface of the terminal.
  • Step 402 Determine a target index file including at least one timestamp within the time range from at least one index file, wherein the index file includes index information of the signaling data obtained at different timestamps in the signaling file, and the index information is used to search for the signaling file storing the signaling data.
  • the target index file within the time range can be determined based on the timestamp information in the index file (for example, the first timestamp stored in the index file).
  • the naming method of the file name of the index file and its corresponding signaling file can be the same, and different file suffixes can be set for easy distinction.
  • the naming method of the file name of the index file and its corresponding signaling file can also be different.
  • the same acquisition timestamp can be set in the file names of the two. It can be understood that when the same acquisition timestamp is set in the file names of the index file and the signaling file, it can be set according to actual needs. For example, the acquisition timestamp of any signaling data in the signaling file is set. Exemplarily, it can be set to obtain the acquisition timestamp of the first signaling data.
  • the file name of the index file includes a first timestamp to determine the target
  • the process of indexing files can be: traversing the index files in the order of the first timestamps, and comparing the first timestamps with the above time range; if the first timestamp of the current index file is less than the starting time in the above time range, and the first timestamp of the next index file is greater than the above starting time, then the current index file is the target index file; if the first timestamp is within the time range, the current index file is determined to be the target index file.
  • the current index file is any index file in the at least one index file
  • the next index file is an index file whose first timestamp is after the first timestamp of the current index file.
  • the first timestamp is the first timestamp stored in the index file.
  • Step 403 Determine a target signaling file in the signaling file that corresponds to the target index file.
  • the target signaling file can be determined based on the corresponding relationship between the two.
  • the file name of the index file includes a first timestamp
  • the file name of the signaling file includes a second timestamp
  • the determining a target signaling file in the signaling file corresponding to the target index file comprises:
  • the file names of the index file and the signaling file both include corresponding timestamps.
  • the timestamps of the two are the same. Based on this, the first timestamp of the target index file and the second timestamp of the signaling file are compared. If the two are the same, it is determined that the target signaling file corresponding to the target index file is found. Due to the uniqueness of the timestamp, the method of determining the target signaling file by the timestamp can make the determined target index file more accurate.
  • Step 404 Determine a loading position in the target signaling file based on the time range.
  • the target index file there are stored The data length of the acquired signaling data and the corresponding acquisition timestamp can be determined. Therefore, based on the acquisition timestamps of the signaling data stored in sequence in the target index file, the data length of the signaling data corresponding to the acquisition timestamp within the above-mentioned time range can be determined, and then based on the data length, the loading position in the target signaling file corresponding to the target index file can be determined.
  • the index information includes a data length of the signaling data in the signaling file and an acquisition timestamp of the signaling data, and determining a loading position in the target signaling file based on the time range includes:
  • the starting loading position and the ending loading position are used as the loading positions.
  • the index information of the index file includes at least one acquisition timestamp and the data length of the signaling data corresponding to the acquisition timestamp in the signaling file. Based on this, the first acquisition timestamp and the second acquisition timestamp corresponding to the start time and the end time in the target index file are determined, and then, the first acquisition timestamp can be used to determine the position in the signaling file where the corresponding data length is located as the starting loading position, and the second acquisition timestamp can be used to determine the position in the signaling file where the corresponding data length is located as the ending loading position.
  • the target signaling in the target signaling file can be directly loaded according to the acquisition timestamp corresponding to the time range, avoiding loading of signaling data in the target signaling file that is not within the time range, reducing the amount of signaling data that needs to be loaded, thereby improving data loading efficiency and further reducing the waiting time of relevant personnel.
  • Step 405 Load the target signaling file based on the loading position to obtain the Loaded signaling data.
  • the target signaling file is loaded based on the loading position, thereby obtaining the signaling data to be loaded.
  • the target signaling file can be determined from multiple signaling files, and the signaling data therein can be loaded. Compared with the method of loading all signaling data in the related art, the loading amount is reduced and the loading efficiency is improved.
  • loading the target signaling file based on the loading position to obtain the signaling data to be loaded includes:
  • the signaling data in the target signaling file is loaded starting from the starting loading position until it reaches the ending loading position, thereby obtaining the signaling data to be loaded.
  • the signaling data after the timestamp of the loading position may be loaded starting from the starting loading position until the loading reaches the ending loading position.
  • Table 1 is an example of an index file and a signaling file, taking the time range from 15:15:30 to 15:30:50 on August 28, 2022 as an example.
  • the file name of the index file is the same as the file name of the signaling file, and both include timestamp information.
  • index file name and signaling file name with sequence number 1 as an example, in “XXX_0_20220828140106.log”, “XXX” is a custom field, “0” is the file ID, “20220828140106” is the first timestamp, and “log” indicates the time of the data transmission.
  • the file is an index file; in “XXX_0_20220828140106.apt”, “XXX” is a custom field, "0” is the file ID, "20220828140106” is the second timestamp, and "apt” indicates that the file is a signaling file.
  • the corresponding target index files are index file No. 4 and index file No. 5. Further, the data length corresponding to the time stamp of 15:15:30 on August 28, 2022, i.e., the starting loading position pos1, is determined in index file No. 4, and the data length corresponding to the time stamp of 15:30:50, i.e., the ending loading position pos2, is determined in index file No. 5. Thus, the signaling file No. 4 and the signaling file No. 5 are loaded based on the starting loading position and the ending loading position.
  • index file Since the index file has the same name as the signaling data file, remove the suffix of the index file name, add the suffix of the signaling data file name, find the posl position of XXX_3_20220828150136.apt, start loading data from this position, and continue to load the XXX_4_20220828151912.apt file after loading is complete until it is loaded to the pos2 position of the file.
  • a file storage device is provided in the embodiment of the present disclosure.
  • the specific implementation of the device can refer to the description of the method embodiment part, and the repeated parts will not be repeated.
  • the device mainly includes:
  • a first acquisition module 501 is configured to acquire signaling data and store it in a current signaling file
  • the generating module 502 is configured to generate an index file of the current signaling file, so as to search for the current signaling file based on the index file, wherein the index file includes index information of the signaling data obtained at different timestamps in the current signaling file.
  • the device mainly includes:
  • a second acquisition module 601 is configured to acquire a time range of signaling data to be loaded
  • a first determining module 602 is configured to determine a target index file including at least one timestamp within the time range from at least one index file, wherein the index file includes index information of the signaling data obtained at different timestamps in the signaling file, and the index information is used to search for a signaling file storing the signaling data;
  • a second determination module 603 is configured to determine a target signaling file corresponding to the target index file in the signaling file
  • a third determination module 604 is configured to determine a loading position in the target signaling file based on the time range
  • the loading module 605 is configured to load the target signaling file based on the loading position to obtain the signaling data to be loaded.
  • the electronic device mainly includes: a processor 701, a memory 702 and a communication bus 703, wherein the processor 701 and the memory 702 communicate with each other through the communication bus 703.
  • the memory 702 stores a program executable by the processor 701, and the processor 701 executes the program stored in the memory 702 to implement the following steps:
  • the index file includes index information of the signaling data obtained at different timestamps in the current signaling file.
  • the index file Determine, from at least one index file, a target index file including at least one timestamp within the time range, the index file including index information of the signaling data obtained at different timestamps in the signaling file, the index information being used to search for the signaling file storing the signaling data;
  • the target signaling file is loaded based on the loading position to obtain the signaling data to be loaded.
  • the communication bus 703 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus 703 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in FIG. 7, but it does not mean that there is only one bus or one type of bus.
  • the memory 702 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk storage.
  • RAM random access memory
  • non-volatile memory such as at least one disk storage.
  • the memory may also be at least one storage device located away from the processor 701.
  • the above-mentioned processor 701 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • CPU central processing unit
  • NP network processor
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • a computer-readable storage medium in which a computer program is stored.
  • the computer program executes the file storage method or data loading method described in the above embodiments.
  • all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof.
  • all or part of the embodiments may be implemented in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present disclosure are generated.
  • the computer may be a general-purpose computer, a special-purpose computer, or a computer program product.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein.
  • the available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape, etc.), an optical medium (e.g., a DVD) or a semiconductor medium (e.g., a solid-state hard disk), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本公开涉及一种文件存储方法、数据加载方法及相关设备,应用于计算机技术领域,其中,方法包括:获取信令数据,并存储至当前信令文件中;生成当前信令文件的索引文件,以基于索引文件搜索到当前信令文件,索引文件包括当前信令文件中不同时间戳获取的信令数据的索引信息。

Description

文件存储方法、数据加载方法及相关设备
相关申请的交叉引用
本公开基于2022年11月17日提交的发明名称为“文件存储方法、数据加载方法及相关设备”的中国专利申请202211460629.5,并且要求该专利申请的优先权,通过引用将其所公开的内容全部并入本公开。
技术领域
本公开涉及计算机技术领域,尤其涉及一种文件存储方法、数据加载方法及相关设备。
背景技术
网优人员使用路测APP进行路测,当发现网络故障时,需要在测试现场通过手机底层接口上报信令并获取上报信令中的信令数据,以通过信令数据快速定位无线网络故障。在上述过程中,上报的信令数据的数据量较大(毫秒级的数据),测试过程可能需要几个小时,将生成大约上百万条数据记录,保存的路测文件的大小会快速增长。而手机***作为一个轻量级***,子线程中做长时间的耗时加载信令操作,需要等待很长时间,CPU的负荷加重,极易出现APP卡死现象。
基于此,相关技术中对于信令数据的文件保存实现方式,主要为:将信令数据直接保存至路测文件中。在回放加载路测文件时,需要一次性加载全部路测文件及文件中的全部数据,使得需要加载的数据量较大,进而导致加载路测数据的等待时间较长。而网优路测人员只关注出现问题的时间范围内的数据,根据上述保存方式来加载数据将造成不必要的等待时间。
发明内容
本公开提供了一种文件存储方法、数据加载方法及相关设备,用以解决现有技术中,在数据回放时,需要一次性加载全部路测文件及文件中的全部数据,使得需要加载的数据量较大,进而导致加载路测数据的等待时间较长的问题。
第一方面,本公开实施例提供了一种文件存储方法,包括:
获取信令数据,并存储至当前信令文件中;
生成当前信令文件的索引文件,以基于索引文件搜索到当前信令文件,索引文件包括当前信令文件中不同时间戳获取的信令数据的索引信息。
第二方面,本公开实施例提供了一种数据加载方法,包括:
获取待加载的信令数据的时间范围;
从至少一个索引文件中确定包括时间范围内至少一个时间戳的目标索引文件,索引文件包括信令文件中不同时间戳获取的信令数据的索引信息,索引信息用于搜索存储信令数据的信令文件;
确定信令文件中与目标索引文件对应的目标信令文件;
基于时间范围确定目标信令文件中的加载位置;
基于加载位置加载目标信令文件,得到待加载的信令数据。
第三方面,本公开实施例提供了一种文件存储装置,包括:
第一获取模块,设置为获取信令数据,并存储至当前信令文件中;
生成模块,设置为生成当前信令文件的索引文件,以基于索引文件搜索到当前信令文件,索引文件包括当前信令文件中不同时间戳获取的信令数据的索引信息。
第四方面,本公开实施例提供了一种数据加载装置,包括:
第二获取模块,设置为获取待加载的信令数据的时间范围;
第一确定模块,设置为从至少一个索引文件中确定包括时间范围内至少一个时间戳的目标索引文件,索引文件包括信令文件中不同时间戳获取的信令数据的索引信息,索引信息用于搜索存储信令数据的信令文件;
第二确定模块,设置为确定信令文件中与目标索引文件对应的目标信令文件;
第三确定模块,设置为基于时间范围确定目标信令文件中的加载位置;
加载模块,设置为基于加载位置加载目标信令文件,得到待加载的信令数据。
第五方面,本公开实施例提供了一种电子设备,包括:处理器、通信接口、存储器和通信总线,其中,处理器、通信接口和存储器通过通信总线完成相互间的通信;
存储器,设置为存储计算机程序;
处理器,设置为执行存储器中所存储的程序,实现第一方面的文件存储方法或第二方面的数据加载方法。
第六方面,本公开实施例提供了一种计算机可读存储介质,存储有计算机程序,计算机程序被处理器执行时实现第一方面的文件存储方法或第二方面的数据加载方法。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本公开一实施例提供的文件存储方法的应用场景图;
图2为本公开一实施例提供的文件存储方法的流程图;
图3为本公开另一实施例提供的文件存储方法的流程图;
图4为本公开一实施例提供的数据加载方法的流程图;
图5为本公开一实施例提供的文件存储装置的结构图;
图6为本公开一实施例提供的数据加载装置的结构图;
图7为本公开一实施例提供的电子设备的结构图。
具体实施方式
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开的一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。
根据本公开一实施例提供了一种文件存储方法和一种数据加载方法。示例性地,在本公开实施例中,上述文件存储方法和数据加载方法可以应用于如图1所示的由终端101和服务器102所构成的硬件环境中。如图1所示,服务器102通过网络与终端101进行连接,可用于为终端或终端上安装的客户端提供服务(如视频服务、应用服务等),可在服务器上或独立于服务器设置数据库,用于为服务器102提供数据存储服务,上述网络包括但不限于:广域网、城域网或局域网,终端101并不限定于PC、手机、平板电脑等。
本公开实施例的文件存储方法和数据加载方法可以由服务器102来执行,也可以由终端101来执行,还可以是由服务器102和终端101共同执行。其中,终端101执行本公开实施例的文件存储方法和数据加载方法,也可以是由安装在其上的客户端来执行。
以终端执行本公开实施例的文件存储方法为例,图2是根据本公开实施例的一种示例性的文件存储方法的流程示意图,如图2所示,该方法的流程可以包括以下步骤:
步骤201、获取信令数据,并存储至当前信令文件中。
一些实施例中,信令数据可以是在路测人员进行测试过程中产生的数据。终端在获取到信令数据后,会将得到信令数据存储到当前信令文件中。
其中,信令数据可以但不限于包括信令名称、信令获取时间戳、信道名称和信令内容。
步骤202、生成所述当前信令文件的索引文件,以基于所述索引文件搜索到所述当前信令文件,所述索引文件包括所述当前信令文件中不同时间戳获取的所述信令数据的索引信息。
一些实施例中,通过生成当前信令文件的索引文件,利用该索引文件对该当前信令文件进行搜索。具体的,当前信令文件对获取的信令数据的获取时间戳进行存储,在生成当前信令文件的索引文件时,将该信令数据的获取时间戳作为索引信息,从而,能够通过索引文件中的索引信息搜索到对应的信令文件,进而进行数据加载。
通过设置索引文件对信令文件进行索引,从而能够在需要加载某一时间范围的信令数据时,通过索引文件中的索引信息确定对应的信令文件,减少了需要加载的信令文件的数量,从而减少相关人员的等待时间。
其中,获取时间戳可以是每个信令文件中,每次获取信令数据时的时间戳。
在一个示例性实施例中,所述生成所述当前信令文件的索引文件之后,还包括:
统计所述当前信令文件中的所述信令数据的数据量;
若所述数据量达到预设阈值,创建新的信令文件以及所述新的信令文件对应的新的索引文件,以使后续获取的信令数据存储至所述新 的信令文件中以及通过所述新的索引文件搜索到所述新的信令文件。
为避免得到的信令文件中信令数据的数据量过大,造成加载数据过多,本实施例中,在当前信令文件获取信令数据的过程中统计信令数据的数据量,在该数据量达到预设阈值时,创建新的信令文件和对应的索引文件。
其中,在生成索引文件时,索引信息可以按照当前信令文件中的信令数据的相关参数进行设置,例如,获取信令数据时的获取时间戳。
可以理解的是,还可以利用设置预设时长的方式,对当前信令文件中的数据量进行控制,例如,每间隔1秒钟创建一个新的信令文件,并将在该1秒钟内获取的信令数据存储至该新的信令文件中。
在一个示例性实施例中,所述生成所述当前信令文件的索引文件,包括:
计算所述当前信令文件中的所述信令数据的数据长度;
获取所述当前信令文件中的所述信令数据的获取时间戳;
将所述数据长度和所述获取时间戳作为索引信息进行存储,得到所述索引文件。
一些实施例中,为进一步减少不必要的数据的加载,在设置索引文件时,索引信息中不仅包括获取时间戳,还可以设置信令数据的数据长度。由于在信令文件中存储有一定数据量的信令数据,该信令数据是在不同时间戳获取的,从而使得每次存储到信令文件时,信令文件中的数据量是不同的。基于此,在设置索引信息时,将信令文件中的数据长度作为索引信息,从而,能够基于该数据长度直接确定待加载数据在信令文件中的位置,进行数据加载。
示例性的,信令文件的第一条信令数据的数据长度是100,获取时间戳2022-10-15 10:03:05,第二条信令数据的数据长度是120,获取时间戳为2022-10-15 10:03:06,第三条信令数据的数据长度是110,获取时间戳为2022-10-15 10:03:07。相应的索引文件的索引信息为:0+2022-10-15 10:03:05;100+2022-10-15 10:03:06;220+2022-10-15  10:03:07。示例性的,“100+2022-10-15 10:03:06”中的“100”表示在该条信令数据存储至信令文件时,信令文件中其他信令数据的数据大小为100,因此,相对于信令文件的起始位置其偏移量即数据长度为100。
相应的,信令数据包括信令名称、信令获取时间戳、信道名称和信令内容时,信令数据长度为信令名称、信令获取时间戳、信道名称和信令内容的数据长度的总和。
本公开提供的文件存储方法,在存储文件时,同步存储其对应的索引文件,索引文件中存储信令数据的长度及时间戳信息。为解决一次路测只存储一个文件,路测时间长存储文件大,出现手机***处理大文件缓慢的问题,信令文件按预先设定的存储空间大小存储信令数据,每个信令文件对应一个索引文件。从而,能够通过索引文件对信令文件进行索引,进而能够在需要加载某一时间范围的信令数据时,通过索引文件中的索引信息确定对应的信令文件,减少了需要加载的信令文件的数量,从而减少相关人员的等待时间。
本公开一实施例提供的文件存储方法,参见图3,包括:
步骤301、设置每个信令文件存储空间的大小,并开始测试。
步骤302、创建数据存储的信令文件(*.apt)和索引文件(*.log),文件名命名规则:自定义信息(XXX)+文件ID(0,1,2,3...)+手机时间戳(20220828150106),信令文件和索引文件通过后缀进行区分。
步骤303、将信令数据写入信令文件,计算得到对应的数据长度及时间戳信息并存入索引文件。
步骤304、判断是否停止测试,若否,执行步骤305,若是,执行步骤307.
步骤305、判断信令文件的大小是否超过设定值,若否,执行步骤303,若是执行步骤306。
步骤306、将文件ID加1并执行步骤302。
步骤307、结束。
通过以上步骤,可根据需要设置单个信令文件保存的大小,将信令文件保存成指定大小的文件,并同步生成索引文件,索引文件存储对应的数据长度及时间戳信息。这样,可以通过索引文件的时间戳信息,找到需要加载的信令文件,直接加载需要的数据,节省了处理非必要数据的时间。
本公开一实施例中还提供了一种数据加载方法,该方法可以应用于任意一种形式的电子设备中,如终端和服务器中。如图4所示,该数据加载方法,包括:
步骤401、获取待加载的信令数据的时间范围。
一些实施例中,时间范围可以是路测人员依据实际测试情况选择的,例如在终端的输入界面中输入想要查询的时间范围。
步骤402、从至少一个索引文件中确定包括所述时间范围内至少一个时间戳的目标索引文件,所述索引文件包括信令文件中不同时间戳获取的所述信令数据的索引信息,所述索引信息用于搜索存储所述信令数据的信令文件。
一些实施例中,由于可以预先设置单个信令文件保存的大小,因此,在路测中得到的信令文件往往具有多个,相应的索引文件也具有多个。基于此,在获取到上述时间范围后,能够基于索引文件中的时间戳信息(例如为索引文件中存储的第一个时间戳),确定处于该时间范围内的目标索引文件。
其中,索引文件与其对应的信令文件的文件名称的命名方式可以相同,为便于区分,可以设置不同的文件后缀。索引文件与其对应的信令文件的文件名称的命名方式也可以不同,为便于将二者对应,可以在二者文件名称中设置相同的获取时间戳。可以理解的是,在索引文件和信令文件的文件名称中设置的相同的获取时间戳时,可以根据实际需求进行设置。例如,设置信令文件中任一信令数据的获取时间戳,示例性的,可以设置为获取第一个信令数据的获取时间戳。
示例性的,索引文件的文件名称中包括第一时间戳,确定该目标 索引文件的过程可以是:按照第一时间戳的先后顺序,对索引文件进行遍历,将第一时间戳与上述时间范围进行比较;若当前索引文件的第一时间戳小于上述时间范围中起始时间,并且下一索引文件的第一时间戳大于上述起始时间,则该当前索引文件为目标索引文件;若该第一时间戳在时间范围内,确定该当前索引文件为目标索引文件。
其中,当前索引文件为至少一个索引文件中的任一索引文件,下一索引文件为第一时间戳在当前索引文件的第一时间戳之后的索引文件。第一时间戳为索引文件中存储的第一个时间戳。
步骤403、确定所述信令文件中与所述目标索引文件对应的目标信令文件。
一些实施例中,由于每个信令文件生成时都生成其对应的索引文件,因此,在确定目标索引文件后,便能够基于二者的对应关系,确定目标信令文件。
在一个示例性实施例中,所述索引文件的文件名称中包括第一时间戳,所述信令文件的文件名称中包括第二时间戳;
所述确定所述信令文件中与所述目标索引文件对应的目标信令文件,包括:
确定所述第二时间戳与所述目标索引文件的第一时间戳相同的信令文件,为所述目标信令文件。
本实施例中,在索引文件和信令文件的文件名称中均包括有相应的时间戳,通常,信令文件及其对应的索引文件在存储时,二者时间戳相同。基于此,对目标索引文件的第一时间戳和信令文件的第二时间戳进行比较,若二者相同,则确定找到目标索引文件对应的目标信令文件。由于时间戳的唯一性,通过时间戳确定目标信令文件的方式,能够使得确定的目标索引文件更加准确。
步骤404、基于所述时间范围确定所述目标信令文件中的加载位置。
一些实施例中,在目标索引文件中,存储有在不同获取时间戳获 取的信令数据的数据长度和对应的获取时间戳,因此,可以基于目标索引文件中依次存储的信令数据的获取时间戳,确定在上述时间范围内的获取时间戳对应的信令数据的数据长度,进而基于该数据长度,确定目标索引文件对应的目标信令文件中的加载位置。
在一个示例性实施例中,所述索引信息包括信令文件中的所述信令数据的数据长度和所述信令数据的获取时间戳,所述基于所述时间范围确定所述目标信令文件中的加载位置,包括:
获取所述时间范围中的起始时间和终止时间;
确定所述目标索引文件中与所述起始时间对应的第一获取时间戳,确定所述第一获取时间戳对应的第一数据长度在所述目标信令文件中的位置为起始加载位置;
确定所述目标索引文件中与所述终止时间对应的第二获取时间戳,确定所述第二获取时间戳对应的第二数据长度在所述目标信令文件中的位置为终止加载位置;
将所述起始加载位置和所述终止加载位置作为所述加载位置。
一些实施例中,由于信令文件中的信令数据的获取时间戳不同,在同一信令文件中可能包括至少一条信令数据及其获取时间戳,相应的,索引文件的索引信息中包括至少一个获取时间戳以及该获取时间戳对应的信令数据在信令文件中的数据长度。基于此,通过时间范围中的起始时间和终止时间,确定目标索引文件中与起始时间和终止时间对应的第一获取时间戳和第二获取时间戳,进而,能够利用该第一获取时间戳确定其对应的数据长度所在信令文件中的位置为起始加载位置,并利用该第二获取时间戳确定其对应的数据长度所在信令文件中的位置为终止加载位置。从而,能够根据时间范围对应的获取时间戳直接加载目标信令文件中的目标信令,避免加载目标信令文件中的不在时间范围内的信令数据,减少需要加载的信令数据的数量,从而提高数据加载效率,进一步减少相关人员的等待时间。
步骤405、基于所述加载位置加载所述目标信令文件,得到所述待 加载的信令数据。
一些实施例中,在确定加载位置后,基于该加载位置加载目标信令文件,从而得到待加载的信令数据。如此,能够从多个信令文件中确定出目标信令文件,并加载其中的信令数据,相较于相关技术中,对全部信令数据进行加载的方式,减少了加载量,提高了加载效率。
在一个示例性实施例中,基于所述加载位置加载所述目标信令文件,得到所述待加载的信令数据,包括:
从所述起始加载位置处开始加载所述目标信令文件中的信令数据,直至加载到所述终止加载位置,得到所述待加载的信令数据。
一些实施例中,在确定加载位置后,可以从起始加载位置开始加载在其时间戳后的信令数据,直至加载至终止加载位置。
可以理解的是,在时间范围确定的目标信令文件为多个时,可以基于起始时间和终止时间,确定加载位置后,将在该时间范围内的并且不包括加载位置的信令文件中的所有信令数据均加载。
示例性的,下表1为索引文件和信令文件的示例,时间范围为2022年8月28日15点15分30秒到15点30分50秒为例。
表1:
基于上表可知,索引文件的文件名称与信令文件的文件名称相同,并且均包括了时间戳信息。以序号为1的索引文件名和信令文件名为例,在“XXX_0_20220828140106.log”中,“XXX”为自定义字段,“0”为文件ID,“20220828140106”为第一时间戳,“log”表示该 文件为索引文件;在“XXX_0_20220828140106.apt”中,“XXX”为自定义字段,“0”为文件ID,“20220828140106”为第二时间戳,“apt”表示该文件为信令文件。
基于上述时间范围可知,对应的目标索引文件为序号4索引文件和序号5索引文件。进一步的,在序号4索引文件中确定获取时间戳为2022年8月28日15点15分30秒时刻对应的数据长度,即起始加载位置posl,以及在序号5索引文件中确定获取时间戳15点30分50秒时刻对应的数据长度,即终止加载位置pos2。从而,基于该起始加载位置和终止加载位置对序号4信令文件和序号5信令文件进行加载。
由于,索引文件的文件名与信令数据文件文件名同名,将索引文件名的后缀去掉,加上信令数据文件名的后缀,找到XXX_3_20220828150136.apt的posl位置,从该位置开始加载数据,加载完成后继续加载XXX_4_20220828151912.apt文件,直到加载到该文件的pos2位置。
如此,在进行数据回放时,根据路测APP设置的起始和结束时间点,读取索引文件的开始和结束时间戳,获得回放文件的起始和结束位置。直接加载对应文件,读取指定位置范围内的数据,帮助无线网优人员快速定位到无线网络故障。
基于同一构思,本公开实施例中提供了一种文件存储装置,该装置的具体实施可参见方法实施例部分的描述,重复之处不再赘述,如图5所示,该装置主要包括:
第一获取模块501,设置为获取信令数据,并存储至当前信令文件中;
生成模块502,设置为生成所述当前信令文件的索引文件,以基于所述索引文件搜索到所述当前信令文件,所述索引文件包括所述当前信令文件中不同时间戳获取的所述信令数据的索引信息。
基于同一构思,本公开实施例中提供了一种数据加载装置,该装置的具体实施可参见方法实施例部分的描述,重复之处不再赘述,如 图6所示,该装置主要包括:
第二获取模块601,设置为获取待加载的信令数据的时间范围;
第一确定模块602,设置为从至少一个索引文件中确定包括所述时间范围内至少一个时间戳的目标索引文件,所述索引文件包括信令文件中不同时间戳获取的所述信令数据的索引信息,所述索引信息用于搜索存储所述信令数据的信令文件;
第二确定模块603,设置为确定所述信令文件中与所述目标索引文件对应的目标信令文件;
第三确定模块604,设置为基于所述时间范围确定所述目标信令文件中的加载位置;
加载模块605,设置为基于所述加载位置加载所述目标信令文件,得到所述待加载的信令数据。
基于同一构思,本公开实施例中还提供了一种电子设备,如图7所示,该电子设备主要包括:处理器701、存储器702和通信总线703,其中,处理器701和存储器702通过通信总线703完成相互间的通信。其中,存储器702中存储有可被处理器701执行的程序,处理器701执行存储器702中存储的程序,实现如下步骤:
获取信令数据,并存储至当前信令文件中;
生成所述当前信令文件的索引文件,以基于所述索引文件搜索到所述当前信令文件,所述索引文件包括所述当前信令文件中不同时间戳获取的所述信令数据的索引信息。或,
获取待加载的信令数据的时间范围;
从至少一个索引文件中确定包括所述时间范围内至少一个时间戳的目标索引文件,所述索引文件包括信令文件中不同时间戳获取的所述信令数据的索引信息,所述索引信息用于搜索存储所述信令数据的信令文件;
确定所述信令文件中与所述目标索引文件对应的目标信令文件;
基于所述时间范围确定所述目标信令文件中的加载位置;
基于所述加载位置加载所述目标信令文件,得到所述待加载的信令数据。
上述电子设备中提到的通信总线703可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,简称EISA)总线等。该通信总线703可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
存储器702可以包括随机存取存储器(Random Access Memory,简称RAM),也可以包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。示例性地,存储器还可以是至少一个位于远离前述处理器701的存储装置。
上述的处理器701可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等,还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
在本公开的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当该计算机程序在计算机上运行时,使得计算机执行上述实施例中所描述的文件存储方法或数据加载方法。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机指令时,全部或部分地产生按照本公开实施例所述的流程或功能。该计算机可以是通用计算机、专用计算 机、计算机网络或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、微波等)方式向另外一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质(例如软盘、硬盘、磁带等)、光介质(例如DVD)或者半导体介质(例如固态硬盘)等。
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个......”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。

Claims (11)

  1. 一种文件存储方法,包括:
    获取信令数据,并存储至当前信令文件中;
    生成所述当前信令文件的索引文件,以基于所述索引文件搜索到所述当前信令文件,所述索引文件包括所述当前信令文件中不同时间戳获取的所述信令数据的索引信息。
  2. 根据权利要求1所述的文件存储方法,其中,所述生成所述当前信令文件的索引文件之后,还包括:
    统计所述当前信令文件中的所述信令数据的数据量;
    若所述数据量达到预设阈值,创建新的信令文件以及所述新的信令文件对应的新的索引文件,以使后续获取的信令数据存储至所述新的信令文件中以及通过所述新的索引文件搜索到所述新的信令文件。
  3. 根据权利要求1或2所述的文件存储方法,其中,所述生成所述当前信令文件的索引文件,包括:
    计算所述当前信令文件中的所述信令数据的数据长度;
    获取所述当前信令文件中的所述信令数据的获取时间戳;
    将所述数据长度和所述获取时间戳作为索引信息进行存储,得到所述索引文件。
  4. 一种数据加载方法,包括:
    获取待加载的信令数据的时间范围;
    从至少一个索引文件中确定包括所述时间范围内至少一个时间戳的目标索引文件,所述索引文件包括信令文件中不同时间戳获取的所述信令数据的索引信息,所述索引信息用于搜索存储所述信令数据的信令文件;
    确定所述信令文件中与所述目标索引文件对应的目标信令文件;
    基于所述时间范围确定所述目标信令文件中的加载位置;
    基于所述加载位置加载所述目标信令文件,得到所述待加载的信 令数据。
  5. 根据权利要求4所述的数据加载方法,其中,所述索引文件的文件名称中包括第一时间戳,所述信令文件的文件名称中包括第二时间戳;
    所述确定所述信令文件中与所述目标索引文件对应的目标信令文件,包括:
    确定所述第二时间戳与所述目标索引文件的第一时间戳相同的信令文件,为所述目标信令文件。
  6. 根据权利要求4所述的数据加载方法,其中,所述索引信息包括信令文件中的所述信令数据的数据长度和所述信令数据的获取时间戳,所述基于所述时间范围确定所述目标信令文件中的加载位置,包括:
    获取所述时间范围中的起始时间和终止时间;
    确定所述目标索引文件中与所述起始时间相同的第一获取时间戳,确定所述第一获取时间戳对应的第一数据长度在所述目标信令文件中的位置为起始加载位置;
    确定所述目标索引文件中与所述终止时间相同的第二获取时间戳,确定所述第二获取时间戳对应的第二数据长度在所述目标信令文件中的位置为终止加载位置;
    将所述起始加载位置和所述终止加载位置作为所述加载位置。
  7. 根据权利要求6所述的数据加载方法,其中,基于所述加载位置加载所述目标信令文件,得到所述待加载的信令数据,包括:
    从所述起始加载位置处开始加载所述目标信令文件中的信令数据,直至加载到所述终止加载位置,得到所述待加载的信令数据。
  8. 一种文件存储装置,包括:
    第一获取模块,设置为获取信令数据,并存储至当前信令文件中;
    生成模块,设置为生成所述当前信令文件的索引文件,以基于所述索引文件搜索到所述当前信令文件,所述索引文件包括所述当前信 令文件中不同时间戳获取的所述信令数据的索引信息。
  9. 一种数据加载装置,包括:
    第二获取模块,设置为获取待加载的信令数据的时间范围;
    第一确定模块,设置为从至少一个索引文件中确定包括所述时间范围内至少一个时间戳的目标索引文件,所述索引文件包括信令文件中不同时间戳获取的所述信令数据的索引信息,所述索引信息用于搜索存储所述信令数据的信令文件;
    第二确定模块,设置为确定所述信令文件中与所述目标索引文件对应的目标信令文件;
    第三确定模块,设置为基于所述时间范围确定所述目标信令文件中的加载位置;
    加载模块,设置为基于所述加载位置加载所述目标信令文件,得到所述待加载的信令数据。
  10. 一种电子设备,包括:处理器、通信接口、存储器和通信总线,其中,所述处理器、所述通信接口和所述存储器通过通信总线完成相互间的通信;
    所述存储器,设置为存储计算机程序;
    所述处理器,设置为执行所述存储器中所存储的所述计算机程序,实现权利要求1-3任一项所述的文件存储方法或权利要求4-7任一项所述的数据加载方法。
  11. 一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-3任一项所述的文件存储方法或权利要求4-7任一项所述的数据加载方法。
PCT/CN2023/114298 2022-11-17 2023-08-22 文件存储方法、数据加载方法及相关设备 WO2024103886A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211460629.5 2022-11-17
CN202211460629.5A CN118093519A (zh) 2022-11-17 2022-11-17 文件存储方法、数据加载方法及相关设备

Publications (1)

Publication Number Publication Date
WO2024103886A1 true WO2024103886A1 (zh) 2024-05-23

Family

ID=91083753

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/114298 WO2024103886A1 (zh) 2022-11-17 2023-08-22 文件存储方法、数据加载方法及相关设备

Country Status (2)

Country Link
CN (1) CN118093519A (zh)
WO (1) WO2024103886A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018076952A1 (zh) * 2016-10-24 2018-05-03 杭州海康威视数字技术股份有限公司 一种视频文件的存储、定位播放方法及装置
CN112954444A (zh) * 2021-02-03 2021-06-11 北京大米科技有限公司 信令文件的加载方法、装置、存储介质及电子设备
CN114647618A (zh) * 2020-12-18 2022-06-21 南京中兴新软件有限责任公司 信令数据查询方法、信令数据索引库的构建方法及服务器
CN114722004A (zh) * 2022-04-01 2022-07-08 恒安嘉新(北京)科技股份公司 消息检索方法、装置、电子设备及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018076952A1 (zh) * 2016-10-24 2018-05-03 杭州海康威视数字技术股份有限公司 一种视频文件的存储、定位播放方法及装置
CN114647618A (zh) * 2020-12-18 2022-06-21 南京中兴新软件有限责任公司 信令数据查询方法、信令数据索引库的构建方法及服务器
CN112954444A (zh) * 2021-02-03 2021-06-11 北京大米科技有限公司 信令文件的加载方法、装置、存储介质及电子设备
CN114722004A (zh) * 2022-04-01 2022-07-08 恒安嘉新(北京)科技股份公司 消息检索方法、装置、电子设备及存储介质

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHEN, XI ET AL.: "Efficient Retrieval Program for Signaling Data", COMPUTER SYSTEMS & APPLICATIONS, vol. 21, no. 06, 15 June 2012 (2012-06-15) *
GAO, HAN ET AL.: "New Processing Method of Huge Amount of Drive Test Data Based on the Index", COMPUTER ENGINEERING AND APPLICATIONS, vol. 43, no. 36, 21 December 2007 (2007-12-21) *

Also Published As

Publication number Publication date
CN118093519A (zh) 2024-05-28

Similar Documents

Publication Publication Date Title
WO2021180025A1 (zh) 一种消息处理方法、装置、电子设备及介质
WO2021135809A1 (zh) 一种测试方法、装置、终端设备及存储介质
CN109213604B (zh) 一种数据源的管理方法和装置
WO2019227641A1 (zh) 一种应用程序测试方法、装置、终端设备及介质
CN105760395A (zh) 一种数据处理的方法、装置及***
WO2023020247A1 (zh) 时序指标数据降精度处理方法、装置和计算机设备
WO2018006721A1 (zh) 日志文件的存储方法及装置
US20230030856A1 (en) Distributed table storage processing method, device and system
CN111159160A (zh) 一种版本回滚方法、装置、电子设备及存储介质
EP3822763A1 (en) Data reading method, device, system, and distributed system
WO2024103886A1 (zh) 文件存储方法、数据加载方法及相关设备
EP4160421A1 (en) Method and apparatus for obtaining browser running data, and storage medium
CN116302736A (zh) 一种服务器的部件测试方法、装置、电子设备及存储介质
CN111400327B (zh) 一种数据同步方法、装置、电子设备及存储介质
CN112463746B (zh) 一种文件存储、生成方法、装置及电子设备
CN109446462B (zh) 基于页面的数据监控处理方法、装置、设备和存储介质
CN114398399A (zh) 管理信息库的检索方法、装置及电子设备
CN113760854A (zh) Hdfs内存中数据的识别方法及相关设备
CN106210035A (zh) 一种推广信息的代理方法及装置
PH12015500140B1 (en) Method and device based on android system for tracking imported file.
CN112416401B (zh) 一种数据更新方法、装置及设备
CN113204554B (zh) 一种对象存储***实现稀疏写的方法、装置及电子设备
CN113572824B (zh) 一种超时时长的动态更新方法、装置、电子设备和存储介质
CN111459411B (zh) 数据迁移方法、装置、设备及存储介质
CN110597763B (zh) 一种函数索引表的生成方法及装置