CN110442308B - A data block storage method, device, device and storage medium - Google Patents

A data block storage method, device, device and storage medium Download PDF

Info

Publication number
CN110442308B
CN110442308B CN201910606240.9A CN201910606240A CN110442308B CN 110442308 B CN110442308 B CN 110442308B CN 201910606240 A CN201910606240 A CN 201910606240A CN 110442308 B CN110442308 B CN 110442308B
Authority
CN
China
Prior art keywords
storage
time
data block
offset
address
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910606240.9A
Other languages
Chinese (zh)
Other versions
CN110442308A (en
Inventor
陈淑武
唐仕斌
韦文锦
陈名乐
陈兆章
白槐展
邱跃明
罗景泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Sixin Internet Of Things Technology Co ltd
Original Assignee
Xiamen Sixin Internet Of Things Technology Co ltd
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 Xiamen Sixin Internet Of Things Technology Co ltd filed Critical Xiamen Sixin Internet Of Things Technology Co ltd
Priority to CN201910606240.9A priority Critical patent/CN110442308B/en
Publication of CN110442308A publication Critical patent/CN110442308A/en
Application granted granted Critical
Publication of CN110442308B publication Critical patent/CN110442308B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种数据块存储方法、装置、设备和计算机存储介质,方法包括:获取目标数据块的当前存储时间;根据所述当前存储时间与基础时间,以获得偏移时间;其中,所述基础时间为比第一个数据块的存储时间前的任意时间;根据所述偏移时间以及时间容量,获得相对时间;其中,所述时间容量为可存储最多数据块的时间长度;根据所述相对时间与存储间隔,以获得偏移量;其中,所述存储间隔为相邻两个数据块之间的存储间隔时间;根据所述偏移量、存储起始地址以及数据块大小,以获得存储地址;其中,所述存储地址与当前存储时间具有唯一的映射关系;将目标数据块存入存储地址中,以完成存储。能够在不存储占用了大部分空间的时间信息情况下,也可以知道数据的存储时间点,节省了大部分的储存空间,提高了数据存储量。

Figure 201910606240

The invention discloses a data block storage method, device, equipment and computer storage medium. The method includes: obtaining the current storage time of a target data block; obtaining an offset time according to the current storage time and the basic time; wherein, the The base time is any time before the storage time of the first data block; the relative time is obtained according to the offset time and the time capacity; wherein, the time capacity is the length of time that can store the most data blocks; Describe the relative time and the storage interval to obtain the offset; wherein, the storage interval is the storage interval time between two adjacent data blocks; according to the offset, the storage start address and the data block size, to Obtain a storage address; wherein, the storage address has a unique mapping relationship with the current storage time; store the target data block in the storage address to complete the storage. The storage time point of the data can also be known without storing the time information that occupies most of the space, which saves most of the storage space and improves the data storage capacity.

Figure 201910606240

Description

一种数据块存储方法、装置、设备及存储介质A data block storage method, device, device and storage medium

技术领域technical field

本发明涉及计算机应用领域,尤其涉及一种数据块存储方法、装置、设备及存储介质。The present invention relates to the field of computer applications, and in particular, to a data block storage method, device, device and storage medium.

背景技术Background technique

随着信息技术的发展,特别是互联网的普及,各种类型的数据量迅速增长,尤其是视频数据的增多,给现有存储设备带来很大压力,所以迫切需要大容量、高性能的存储系统来有效保存和快速访问这些数据。With the development of information technology, especially the popularization of the Internet, the rapid growth of various types of data, especially the increase of video data, has brought great pressure to the existing storage devices, so large-capacity, high-performance storage is urgently needed. system to efficiently save and quickly access this data.

在实际应用中,非易失存储设备多数是无人值守,对数据储存量要求比较高。同时在某些领域非易失存储设备不仅需要对数据块进行存储,还需要知道数据块的存储时间,并要求存储几年或几十年的数据块。而传统的嵌入式领域的非易失存储设备的容量通常比较小,通常只有几兆的空间,其存储设备的存储压力有很大一部分来源于存储的时间信息,所述存储的时间信息占用大量存储空间,使得可以存储的数据量变少。In practical applications, most of the non-volatile storage devices are unattended, which requires relatively high data storage capacity. At the same time, in some fields, non-volatile storage devices not only need to store data blocks, but also need to know the storage time of data blocks, and require data blocks to be stored for several years or decades. However, the capacity of non-volatile storage devices in the traditional embedded field is usually relatively small, usually only a few megabytes of space, and a large part of the storage pressure of the storage device comes from the stored time information, which occupies a large amount of time. Storage space, so that the amount of data that can be stored is reduced.

发明内容SUMMARY OF THE INVENTION

针对上述问题,本发明的目的在于提供一种数据块存储方法、装置、设备及存储介质,能够在不存储占用了大部分空间的时间信息情况下,也可以知道数据的存储时间点,节省了大部分的储存空间,提高了数据存储量。In view of the above problems, the purpose of the present invention is to provide a data block storage method, device, device and storage medium, which can know the storage time point of data without storing the time information that occupies most of the space, saving the Most of the storage space increases the amount of data storage.

第一方面,本发明实施例提供了一种数据块存储方法,包括:In a first aspect, an embodiment of the present invention provides a data block storage method, including:

获取目标数据块的当前存储时间;Get the current storage time of the target data block;

根据所述当前存储时间与基础时间,以获得偏移时间;其中,所述基础时间为比第一个数据块的存储时间前的任意时间;According to the current storage time and the base time, the offset time is obtained; wherein, the base time is any time before the storage time of the first data block;

根据所述偏移时间以及时间容量,获得相对时间;其中,所述时间容量为可存储最多数据块的时间长度;Obtain the relative time according to the offset time and the time capacity; wherein, the time capacity is the time length that can store the most data blocks;

根据所述相对时间与存储间隔,以获得偏移量;其中,所述存储间隔为相邻两个数据块之间的存储间隔时间;Obtain the offset according to the relative time and the storage interval; wherein, the storage interval is the storage interval time between two adjacent data blocks;

根据所述偏移量、存储起始地址以及数据块大小,以获得存储地址;其中,所述存储地址与当前存储时间具有唯一的映射关系;According to the offset, the storage start address and the data block size, the storage address is obtained; wherein, the storage address has a unique mapping relationship with the current storage time;

将目标数据块存入存储地址中,以完成存储。Store the target data block in the storage address to complete the storage.

优选地,在所述获取当前数据块的存储时间之前,还包括:Preferably, before the acquiring the storage time of the current data block, the method further includes:

为非易失存储器独立分配页存储引导信息;其中,所述页存储引导信息包括时间容量、存储起始地址、存储结束地址、数据块大小以及存储间隔。Independently allocate page storage guide information for the non-volatile memory; wherein, the page storage guide information includes time capacity, storage start address, storage end address, data block size and storage interval.

优选地,根据所述偏移时间以及时间容量,获得相对时间;其中,所述时间容量为可存储最多数据块的时间长度,具体为:Preferably, the relative time is obtained according to the offset time and the time capacity; wherein, the time capacity is the length of time that can store the most data blocks, specifically:

对所述偏移时间与时间容量进行余数计算,获得相对时间。A remainder calculation is performed on the offset time and the time capacity to obtain a relative time.

优选地,每增加一个存储间隔时,则存储地址对应增加一个数据块大小,直至存储地址达到最大值,则重新从存储起始地址开始计算所述存储地址。Preferably, each time a storage interval is increased, the storage address is correspondingly increased by a data block size, and until the storage address reaches the maximum value, the storage address is recalculated from the storage start address.

优选地,所述存储时间与基础时间相减,以获得偏移时间;Preferably, the storage time is subtracted from the base time to obtain the offset time;

所述相对时间与存储间隔相除,以获得偏移量;dividing the relative time by the storage interval to obtain the offset;

所述偏移量与数据块大小相乘与所述存储起始地址相加,以获得存储地址。The offset is multiplied by the data block size and added to the storage start address to obtain the storage address.

第二方面,本发明实施例提供了一种数据块存储装置,包括:In a second aspect, an embodiment of the present invention provides a data block storage device, including:

当前存储时间获取单元,用于获取目标数据块的当前存储时间;The current storage time obtaining unit is used to obtain the current storage time of the target data block;

偏移时间获取单元,用于根据所述当前存储时间与基础时间,以获得偏移时间;其中,所述基础时间为比第一个数据块的存储时间前的任意时间;an offset time obtaining unit, configured to obtain an offset time according to the current storage time and the base time; wherein, the base time is any time before the storage time of the first data block;

相对时间获取单元,用于根据所述偏移时间以及时间容量,获得相对时间;其中,所述时间容量为可存储最多数据块的时间长度;a relative time obtaining unit, configured to obtain the relative time according to the offset time and the time capacity; wherein, the time capacity is the time length that can store the most data blocks;

偏移量获取单元,用于根据所述相对时间与存储间隔,以获得偏移量;其中,所述存储间隔为相邻两个数据块之间的存储间隔时间;an offset obtaining unit, configured to obtain the offset according to the relative time and the storage interval; wherein, the storage interval is the storage interval time between two adjacent data blocks;

存储地址获取单元,用于根据所述偏移量、存储起始地址以及数据块大小,以获得存储地址;其中,所述存储地址与当前存储时间具有唯一的映射关系;a storage address obtaining unit, used for obtaining a storage address according to the offset, the storage start address and the data block size; wherein, the storage address has a unique mapping relationship with the current storage time;

目标数据块存储单元,用于将目标数据块存入存储地址中,以完成存储。The target data block storage unit is used to store the target data block in the storage address to complete the storage.

优选地,在当前存储时间获取单元之前,还用于:Preferably, before the current storage time acquisition unit, it is also used for:

为非易失存储器独立分配页存储引导信息;其中,所述页存储引导信息包括时间容量、存储起始地址、存储结束地址、数据块大小以及存储间隔。Independently allocate page storage guide information for the non-volatile memory; wherein, the page storage guide information includes time capacity, storage start address, storage end address, data block size and storage interval.

优选地,相对时间获取单元,具体用于:Preferably, the relative time acquisition unit is specifically used for:

对所述偏移时间与时间容量进行余数计算,获得相对时间。A remainder calculation is performed on the offset time and the time capacity to obtain a relative time.

优选地,每增加一个存储间隔时,则存储地址对应增加一个数据块大小,直至存储地址达到最大值,则重新从存储起始地址开始计算所述存储地址。Preferably, each time a storage interval is increased, the storage address is correspondingly increased by a data block size, and until the storage address reaches the maximum value, the storage address is recalculated from the storage start address.

优选地,还用于:Preferably, also for:

所述存储时间与基础时间相减,以获得偏移时间;所述相对时间与存储间隔相除,以获得偏移量;所述偏移量与数据块大小相乘与所述起始存储地址相加,以获得存储地址。The storage time is subtracted from the base time to obtain the offset time; the relative time is divided by the storage interval to obtain the offset; the offset is multiplied by the data block size and the starting storage address Add up to get the memory address.

本发明实施例还提供了一种数据块存储设备,包括处理器、存储器以及存储在所述存储器内的计算机程序,所述计算机程序能够被所述处理器执行以实现上述的数据块存储方法。An embodiment of the present invention further provides a data block storage device, including a processor, a memory, and a computer program stored in the memory, where the computer program can be executed by the processor to implement the above data block storage method.

本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如上述的数据块存储方法。An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, wherein when the computer program runs, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned The data block storage method.

上述一个实施例中,通过存储间隔与数据块大小,将数据块的存储时间与存储地址进行映射,以获得存储地址,然后将目标数据块存入对应存储时间映射的存储地址中,以完成存储。能够在不存储占用了大部分空间的时间信息情况下,在读取数据块的操作下,即可以知道数据的存储时间点,节省了大部分的储存空间,提高了数据存储量。In the above-mentioned one embodiment, through the storage interval and the size of the data block, the storage time of the data block and the storage address are mapped to obtain the storage address, and then the target data block is stored in the storage address mapped to the corresponding storage time to complete the storage. . Under the condition of not storing the time information that occupies most of the space, the data storage time point can be known under the operation of reading the data block, which saves most of the storage space and improves the data storage capacity.

附图说明Description of drawings

为了更清楚地说明本发明的技术方案,下面将对实施方式中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the present invention more clearly, the following will briefly introduce the accompanying drawings used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention, which are common in the art. As far as technical personnel are concerned, other drawings can also be obtained based on these drawings without any creative effort.

图1是本发明第一实施例提供的数据块存储方法的流程示意图。FIG. 1 is a schematic flowchart of a data block storage method provided by a first embodiment of the present invention.

图2是本发明第一实施例提供的存储时间与存储地址的映射关系图。FIG. 2 is a mapping relationship diagram between storage time and storage address provided by the first embodiment of the present invention.

图3是本发明第二实施例提供的数据块存储装置的结构示意图。FIG. 3 is a schematic structural diagram of a data block storage device provided by a second embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

为了更好的理解本发明的技术方案,下面结合附图对本发明实施例进行详细描述。In order to better understand the technical solutions of the present invention, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.

应当明确,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。It should be understood that the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. As used in the embodiments of the present invention and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise.

应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" used in this document is only an association relationship to describe the associated objects, indicating that there may be three kinds of relationships, for example, A and/or B, which may indicate that A exists alone, and A and B exist at the same time. B, there are three cases of B alone. In addition, the character "/" in this document generally indicates that the related objects are an "or" relationship.

取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the word "if" as used herein can be interpreted as "at" or "when" or "in response to determining" or "in response to detecting." Similarly, the phrases "if determined" or "if detected (the stated condition or event)" can be interpreted as "when determined" or "in response to determining" or "when detected (the stated condition or event)," depending on the context )" or "in response to detection (a stated condition or event)".

实施例中提及的“第一\第二”仅仅是是区别类似的对象,不代表针对对象的特定排序,可以理解地,“第一\第二”在允许的情况下可以互换特定的顺序或先后次序。应该理解“第一\第二”区分的对象在适当情况下可以互换,以使这里描述的实施例能够以除了在这里图示或描述的那些以外的顺序实施。The "first\second" mentioned in the embodiment is only to distinguish similar objects, and does not represent a specific order for the objects. It is understood that "first\second" can be interchanged with specific order or sequence. It should be understood that the "first\second" distinctions may be interchanged under appropriate circumstances to enable the embodiments described herein to be practiced in sequences other than those illustrated or described herein.

实施例一:Example 1:

请参阅图1和图2,本发明第一实施例提供了一种数据块存储方法,其可由数据块存储设备来执行,特别的,由数据块存储设备内的一个或多个处理器来执行,并至少包括如下步骤:Referring to FIG. 1 and FIG. 2 , a first embodiment of the present invention provides a data block storage method, which can be executed by a data block storage device, in particular, executed by one or more processors in the data block storage device , and at least include the following steps:

S101,获取目标数据块的当前存储时间。S101, obtain the current storage time of the target data block.

在本实施例中,所述当前存储时间指的是当前需要存储或者读取的目标数据块的时间点。特别的,当前存储时间为存储时间点。In this embodiment, the current storage time refers to the time point of the target data block that needs to be stored or read currently. In particular, the current storage time is the storage time point.

S102,根据所述当前存储时间与基础时间,以获得偏移时间;其中,所述基础时间为比第一个数据块的存储时间前的任意时间。S102: Obtain an offset time according to the current storage time and the base time, wherein the base time is any time before the storage time of the first data block.

在本实施例中,通过将当前存储时间与基础时间相减,得到偏移时间,例如,当前存储时间为2019.06.27,第一数据块的存储时间为2019.06.01,则基础时间可以设置为,2019.05.30或者比第一数据块的存储时间更早的即可,则所述偏移时间为当前存储时间-所述基础时间=27天。In this embodiment, the offset time is obtained by subtracting the current storage time from the base time. For example, if the current storage time is 2019.06.27, and the storage time of the first data block is 2019.06.01, the base time can be set to , 2019.05.30 or earlier than the storage time of the first data block, and the offset time is the current storage time - the base time = 27 days.

S103,根据所述偏移时间以及时间容量,获得相对时间;其中,所述时间容量为可存储最多数据块的时间长度。S103: Obtain a relative time according to the offset time and the time capacity, where the time capacity is the time length that can store the most data blocks.

在本实施例中,当偏移时间小于等于时间容量时,则通过将偏移时间与时间容量进行余数计算,得到相对时间。例如,假设偏移时间为27天,时间容量的长度为54天,那么相对时间为27/54取余数27天。需要说明的是,所述时间容量是个抽象概念,与“空间容量”对应,即存储设备可存储最多数据块的时间长度,所述空间容量为系统分配的可用存储空间。In this embodiment, when the offset time is less than or equal to the time capacity, the relative time is obtained by calculating the remainder of the offset time and the time capacity. For example, assuming that the offset time is 27 days and the length of the time capacity is 54 days, then the relative time is 27/54 and the remainder is 27 days. It should be noted that the time capacity is an abstract concept, corresponding to the "space capacity", that is, the time length for which the storage device can store the most data blocks, and the space capacity is the available storage space allocated by the system.

S104,根据所述相对时间与存储间隔,以获得偏移量;其中,所述存储间隔为相邻两个数据块之间的存储间隔时间。S104, obtain an offset according to the relative time and the storage interval, wherein the storage interval is a storage interval time between two adjacent data blocks.

在本实施例中,通过将相对时间与所述存储间隔相除,得到偏移量。例如,相对时间为27天,存储间隔的时间为3天,则偏移量为27/3=9。可以理解的是,所述存储间隔的单位是与原来偏移时间、时间容量相对的一个规定量。In this embodiment, the offset is obtained by dividing the relative time by the storage interval. For example, if the relative time is 27 days and the storage interval is 3 days, the offset is 27/3=9. It can be understood that the unit of the storage interval is a specified amount relative to the original offset time and time capacity.

S105,根据所述偏移量、存储起始地址以及数据块大小,以获得存储地址;其中,所述存储地址与当前存储时间具有唯一的映射关系。S105, obtain a storage address according to the offset, the storage start address, and the data block size; wherein, the storage address and the current storage time have a unique mapping relationship.

在本实施例中,将所述偏移量与数据块大小相乘+起始存储地址,得到存储地址。其中,所述数据块大小为一个数据块占用的存储空间,假设所述偏移量为9,所述数据块大小所对应的时间长度为1天,所述起始存储地址为0x87654321,其起始存储地址对应的存储时间为2019.07.05,则所述存储地址为9*1+0x87654321=0x87654330,假设存储地址与存储时间的映射关系为1:1关系,那么即认为所述存储地址所对应的存储时间为2019.07.14。In this embodiment, the offset is multiplied by the data block size + the starting storage address to obtain the storage address. The size of the data block is the storage space occupied by one data block, assuming that the offset is 9, the time length corresponding to the size of the data block is 1 day, and the starting storage address is 0x87654321, which starts from The storage time corresponding to the initial storage address is 2019.07.05, then the storage address is 9*1+0x87654321=0x87654330, assuming that the mapping relationship between the storage address and the storage time is 1:1, then it is considered that the storage address corresponds to The storage time is 2019.07.14.

其中,所述存储地址与当前存储时间具有唯一的映射关系,例如,例如假设空间容量为100,时间容量为200,那么存储时间与存储地址的映射关系为1:2的关系。通过存储地址与当前存储时间具有唯一的映射关系,以使得在所述数据块存储设备即时没有存储时间,也能在读取数据块的时候,根据所述存储地址映射的当前存储时间,知道存储时间点。The storage address has a unique mapping relationship with the current storage time. For example, if the space capacity is 100 and the time capacity is 200, the mapping relationship between the storage time and the storage address is 1:2. There is a unique mapping relationship between the storage address and the current storage time, so that even if the data block storage device has no storage time, it can also know the storage time according to the current storage time mapped by the storage address when reading the data block. point in time.

S106,将目标数据块存入存储地址中,以完成存储。S106, the target data block is stored in the storage address to complete the storage.

综上,通过存储间隔与数据块大小,将数据块的存储时间与存储地址进行映射,以获得存储地址,然后将目标数据块存入对应存储时间映射的存储地址中,以完成存储。能够在不存储占用了大部分空间的时间信息情况下,在读取数据块的操作下,即可以知道数据的存储时间点,节省了大部分的储存空间,提高了数据存储量。In summary, through the storage interval and data block size, the storage time of the data block is mapped to the storage address to obtain the storage address, and then the target data block is stored in the storage address corresponding to the storage time mapping to complete the storage. Under the condition of not storing the time information that occupies most of the space, the data storage time point can be known under the operation of reading the data block, which saves most of the storage space and improves the data storage capacity.

在上述实施例的基础上,本发明一优选实施例中,在S101步骤之前,还包括:On the basis of the above embodiment, in a preferred embodiment of the present invention, before step S101, the method further includes:

数据块存储设备为非易失存储器独立分配页存储引导信息;其中,所述页存储引导信息包括时间容量、存储起始地址、存储结束地址、数据块大小以及存储间隔。The data block storage device independently allocates page storage guide information for the non-volatile memory; wherein, the page storage guide information includes time capacity, storage start address, storage end address, data block size, and storage interval.

在上述实施例的基础上,本发明一优选实施例中,每增加一个存储间隔时,则存储地址对应增加一个数据块大小,直至存储地址达到最大值,则重新从存储起始地址开始计算所述存储地址。On the basis of the above-mentioned embodiment, in a preferred embodiment of the present invention, each time a storage interval is added, the storage address is correspondingly increased by a data block size, until the storage address reaches the maximum value, then the storage start address is recalculated from the storage start address. the storage address.

如图2所示,图2示出了存储时间与存储地址的映射关系图。图2中包括3种关系:通过存储空间容量来表述各数据块之间的存储位置关系、通过存储时间容量来表述各存储时间点的关系、以及存储位置与存储时间的对应关系。为便于对本发明的理解,下面详述本发明的工作原理:As shown in FIG. 2, FIG. 2 shows a mapping relationship between storage time and storage address. Figure 2 includes three relationships: the storage space capacity is used to express the storage location relationship between the data blocks, the storage time capacity is used to express the relationship of each storage time point, and the corresponding relationship between storage location and storage time. In order to facilitate the understanding of the present invention, the working principle of the present invention is described in detail below:

首先,数据块存储设备为非易失存储器独立分配一个页存储引导信息,所述引导信息包括:存储空间大小、存储起始地址、数据块大小、存储间隔。然后,再根据数据块的存储时间点与存储地址的映射关系进行寻址,在非易失存储器中根据寻到的存储地址,进行数据存储与读取操作。First, the data block storage device independently allocates a page to the non-volatile memory to store guide information, where the guide information includes: storage space size, storage start address, data block size, and storage interval. Then, addressing is performed according to the mapping relationship between the storage time point of the data block and the storage address, and data storage and reading operations are performed in the nonvolatile memory according to the found storage address.

具体地,通过存储间隔与所述数据块大小,将所述存储时间与所述存储地址进行映射,然后根据当前时间、数据块大小、存储间隔计算数据块存储地址,即所述存储地址的表达式可以表示为:存储地址=((偏移时间%时间容量)*空间容量)/时间容量。其中,空间容量为系统分配的可用存储空间。硬件资源有限,在存储空间写满后,需要重头开始存储,循环操作。Specifically, the storage time and the storage address are mapped through the storage interval and the size of the data block, and then the storage address of the data block is calculated according to the current time, the size of the data block, and the storage interval, that is, the expression of the storage address The formula can be expressed as: storage address=((offset time% time capacity)*space capacity)/time capacity. The space capacity is the available storage space allocated by the system. The hardware resources are limited. After the storage space is full, it is necessary to start the storage from the beginning and cycle the operation.

其中,所述数据块存储方法为:首先将当前存储时间与基础时间相减,得到偏移时间,所述基础时间是比第一个数据块当前存储时间时间早的任意时间,然后将偏移时间与时间容量进行余数计算,得到相对时间,其中,所述时间容量为存储设备可存储最多数据块的时间长度。再然后将相对时间与所述存储间隔相除,得到偏移量。最后将所述偏移量与数据块大小相乘,得到存储地址。可以理解的是,当时间增加一个存储间隔则存储地址对应增加一个数据块大小,如果存储地址达到最大值,则重新从存储的起始地址开始计算。Wherein, the data block storage method is as follows: first, subtract the current storage time from the base time to obtain an offset time, and the base time is any time earlier than the current storage time of the first data block, and then offset the offset time. The remainder is calculated between the time and the time capacity to obtain the relative time, wherein the time capacity is the time length that the storage device can store the most data blocks. The relative time is then divided by the storage interval to obtain the offset. Finally, the offset is multiplied by the data block size to obtain the storage address. It can be understood that, when the time increases by one storage interval, the storage address is correspondingly increased by one data block size, and if the storage address reaches the maximum value, the calculation starts from the storage starting address again.

本发明第二实施例:The second embodiment of the present invention:

参见图3,本发明第二实施例提供了一种数据块存储装置,包括:Referring to FIG. 3, a second embodiment of the present invention provides a data block storage device, including:

当前存储时间获取单元100,用于获取目标数据块的当前存储时间;The current storage time obtaining unit 100 is used to obtain the current storage time of the target data block;

偏移时间获取单元200,用于根据所述当前存储时间与基础时间,以获得偏移时间;其中,所述基础时间为比第一个数据块的存储时间前的任意时间;an offset time obtaining unit 200, configured to obtain an offset time according to the current storage time and the base time; wherein, the base time is any time before the storage time of the first data block;

相对时间获取单元300,用于根据所述偏移时间以及时间容量,获得相对时间;其中,所述时间容量为可存储最多数据块的时间长度;a relative time obtaining unit 300, configured to obtain a relative time according to the offset time and the time capacity; wherein, the time capacity is the time length that can store the most data blocks;

偏移量获取单元400,用于根据所述相对时间与存储间隔,以获得偏移量;其中,所述存储间隔为相邻两个数据块之间的存储间隔时间;an offset obtaining unit 400, configured to obtain the offset according to the relative time and the storage interval; wherein, the storage interval is the storage interval time between two adjacent data blocks;

存储地址获取单元500,用于根据所述偏移量、存储起始地址以及数据块大小,以获得存储地址;其中,所述存储地址与当前存储时间具有唯一的映射关系;The storage address obtaining unit 500 is used to obtain the storage address according to the offset, the storage start address and the data block size; wherein, the storage address has a unique mapping relationship with the current storage time;

目标数据块存储单元600,用于将目标数据块存入存储地址中,以完成存储。The target data block storage unit 600 is configured to store the target data block in the storage address to complete the storage.

在上述实施例的基础上,本发明一优选实施例中,在当前存储时间获取单元100之前,还用于:On the basis of the above-mentioned embodiment, in a preferred embodiment of the present invention, before the current storage time obtaining unit 100, it is further used for:

为易失存储器独立分配页存储引导信息;其中,所述页存储引导信息包括时间容量、存储起始地址、存储结束地址、数据块大小以及存储间隔。Independently allocate page storage guide information for the volatile memory; wherein, the page storage guide information includes time capacity, storage start address, storage end address, data block size and storage interval.

在上述实施例的基础上,本发明一优选实施例中,相对时间获取单元,具体用于:On the basis of the above embodiment, in a preferred embodiment of the present invention, the relative time acquisition unit is specifically used for:

对所述偏移时间与时间容量进行余数计算,获得相对时间。A remainder calculation is performed on the offset time and the time capacity to obtain a relative time.

在上述实施例的基础上,本发明一优选实施例中,每增加一个存储间隔时,则存储地址对应增加一个数据块大小,直至存储地址达到最大值,则重新从存储起始地址开始计算所述存储地址。On the basis of the above-mentioned embodiment, in a preferred embodiment of the present invention, each time a storage interval is added, the storage address is correspondingly increased by a data block size, until the storage address reaches the maximum value, then the storage start address is recalculated from the storage start address. the storage address.

在上述实施例的基础上,本发明一优选实施例中,还用于:On the basis of the above embodiment, in a preferred embodiment of the present invention, it is also used for:

所述存储时间与基础时间相减,以获得偏移时间;所述相对时间与存储间隔相除,以获得偏移量;所述偏移量与数据块大小相乘,以获得存储地址。The storage time is subtracted from the base time to obtain the offset time; the relative time is divided by the storage interval to obtain the offset; the offset is multiplied by the data block size to obtain the storage address.

本发明第三实施例提供了一种数据块存储设备,包括处理器、存储器以及存储在所述存储器内的计算机程序,所述计算机程序能够被所述处理器执行以实现如上述的数据块存储方法。A third embodiment of the present invention provides a data block storage device, including a processor, a memory, and a computer program stored in the memory, where the computer program can be executed by the processor to implement the above-mentioned data block storage method.

本发明第四实施例提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如上述的数据块存储方法。A fourth embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, wherein, when the computer program runs, the device where the computer-readable storage medium is located is controlled to execute the following The above data block storage method.

示例性的,所述计算机程序可以被分割成一个或多个单元,所述一个或者多个单元被存储在所述存储器中,并由所述处理器执行,以完成本发明。所述一个或多个单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序在数据块存储设备中的执行过程。Exemplarily, the computer program may be divided into one or more units, and the one or more units are stored in the memory and executed by the processor to accomplish the present invention. The one or more units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in the data block storage device.

所述数据块存储设备可包括但不仅限于处理器、存储器。本领域技术人员可以理解,所述示意图仅仅是数据块存储设备的示例,并不构成对数据块存储设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述数据块存储设备还可以包括输入输出设备、网络接入设备、总线等。The data block storage device may include, but is not limited to, a processor and a memory. Those skilled in the art can understand that the above schematic diagram is only an example of a data block storage device, and does not constitute a limitation on a data block storage device, and may include more or less components than those shown in the figure, or combine some components, or Different components, such as the data block storage device, may also include input and output devices, network access devices, buses, and the like.

所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述数据块存储设备的控制中心,利用各种接口和线路连接整个数据块存储设备的各个部分。The processor may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf processors Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The control center of the data block storage device uses various interfaces and lines to connect various parts of the entire data block storage device.

所述存储器可用于存储所述计算机程序和/或模块,所述处理器通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现所述数据块存储设备的各种功能。所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory can be used to store the computer program and/or module, and the processor implements the data by running or executing the computer program and/or module stored in the memory and calling the data stored in the memory Various functions of block storage devices. The memory may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the storage data area may store Data (such as audio data, phonebook, etc.) created according to the usage of the mobile phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory such as hard disk, internal memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card , a flash memory card (Flash Card), at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.

其中,所述数据块存储设备集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。Wherein, if the unit integrated in the data block storage device is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the present invention can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable media Electric carrier signals and telecommunication signals are not included.

需说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本发明提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。It should be noted that the device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physically separated unit, that is, it can be located in one place, or it can be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. In addition, in the drawings of the apparatus embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art can understand and implement it without creative effort.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。The above are the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made, and these improvements and modifications may also be regarded as It is the protection scope of the present invention.

Claims (8)

1.一种数据块存储方法,其特征在于,包括:1. a data block storage method, is characterized in that, comprises: 获取目标数据块的当前存储时间;Get the current storage time of the target data block; 根据所述当前存储时间与基础时间,以获得偏移时间;其中,所述基础时间为比第一个数据块的存储时间前的任意时间;According to the current storage time and the base time, the offset time is obtained; wherein, the base time is any time before the storage time of the first data block; 根据所述偏移时间以及时间容量,获得相对时间;其中,所述时间容量为可存储最多数据块的时间长度;对所述偏移时间与时间容量进行余数计算,获得相对时间;According to the offset time and the time capacity, obtain the relative time; wherein, the time capacity is the length of time that can store the most data blocks; the remainder is calculated on the offset time and the time capacity, and the relative time is obtained; 根据所述相对时间与存储间隔,以获得偏移量;其中,所述存储间隔为相邻两个数据块之间的存储间隔时间;Obtain the offset according to the relative time and the storage interval; wherein, the storage interval is the storage interval time between two adjacent data blocks; 根据所述偏移量、存储起始地址以及数据块大小,以获得存储地址;其中,所述存储地址与当前存储时间具有唯一的映射关系;将目标数据块存入存储地址中,以完成存储;其中,所述当前存储时间与基础时间相减,以获得偏移时间;所述相对时间与存储间隔相除,以获得偏移量;所述偏移量与数据块大小相乘与所述存储起始地址相加,以获得存储地址。According to the offset, the storage start address and the data block size, the storage address is obtained; wherein, the storage address has a unique mapping relationship with the current storage time; the target data block is stored in the storage address to complete the storage ; wherein, the current storage time is subtracted from the base time to obtain an offset time; the relative time is divided by the storage interval to obtain an offset; the offset is multiplied by the data block size and the The storage start addresses are added to obtain the storage address. 2.根据权利要求1所述的数据块存储方法,其特征在于,在所述获取目标数据块的当前存储时间之前,还包括:2. The data block storage method according to claim 1, characterized in that, before the acquisition of the current storage time of the target data block, further comprising: 为非易失存储器独立分配页存储引导信息;其中,所述页存储引导信息包括时间容量、存储起始地址、存储结束地址、数据块大小以及存储间隔。Independently allocate page storage guide information for the non-volatile memory; wherein, the page storage guide information includes time capacity, storage start address, storage end address, data block size and storage interval. 3.根据权利要求1所述的数据块存储方法,其特征在于,3. data block storage method according to claim 1, is characterized in that, 每增加一个存储间隔时,则存储地址对应增加一个数据块大小,直至存储地址达到最大值,则重新从存储起始地址开始计算所述存储地址。Each time a storage interval is increased, the storage address is correspondingly increased by a data block size, and until the storage address reaches the maximum value, the storage address is recalculated from the storage start address. 4.一种数据块存储装置,其特征在于,包括:4. A data block storage device, comprising: 当前存储时间获取单元,用于获取目标数据块的当前存储时间;The current storage time obtaining unit is used to obtain the current storage time of the target data block; 偏移时间获取单元,用于根据所述当前存储时间与基础时间,以获得偏移时间;其中,所述基础时间为比第一个数据块的存储时间前的任意时间;an offset time obtaining unit, configured to obtain an offset time according to the current storage time and the base time; wherein, the base time is any time before the storage time of the first data block; 相对时间获取单元,用于根据所述偏移时间以及时间容量,获得相对时间;其中,所述时间容量为可存储最多数据块的时间长度;对所述偏移时间与时间容量进行余数计算,获得相对时间;a relative time obtaining unit, configured to obtain the relative time according to the offset time and the time capacity; wherein, the time capacity is the time length that can store the most data blocks; the remainder is calculated on the offset time and the time capacity, get relative time; 偏移量获取单元,用于根据所述相对时间与存储间隔,以获得偏移量;其中,所述存储间隔为相邻两个数据块之间的存储间隔时间;an offset obtaining unit, configured to obtain the offset according to the relative time and the storage interval; wherein, the storage interval is the storage interval time between two adjacent data blocks; 存储地址获取单元,用于根据所述偏移量、存储起始地址以及数据块大小,以获得存储地址;其中,所述存储地址与当前存储时间具有唯一的映射关系;a storage address obtaining unit, used for obtaining a storage address according to the offset, the storage start address and the data block size; wherein, the storage address has a unique mapping relationship with the current storage time; 目标数据块存储单元,用于将目标数据块存入存储地址中,以完成存储;其中,所述当前存储时间与基础时间相减,以获得偏移时间;所述相对时间与存储间隔相除,以获得偏移量;所述偏移量与数据块大小相乘与所述存储起始地址相加,以获得存储地址。The target data block storage unit is used to store the target data block in the storage address to complete the storage; wherein, the current storage time is subtracted from the base time to obtain an offset time; the relative time is divided by the storage interval , to obtain the offset; the offset is multiplied by the size of the data block and added to the storage start address to obtain the storage address. 5.根据权利要求4所述的数据块存储装置,其特征在于,在所述当前存储时间获取单元之前,还用于:5. The data block storage device according to claim 4, characterized in that, before the current storage time acquisition unit, further used for: 为非易失存储器独立分配页存储引导信息;其中,所述页存储引导信息包括时间容量、存储起始地址、存储结束地址、数据块大小以及存储间隔。Independently allocate page storage guide information for the non-volatile memory; wherein, the page storage guide information includes time capacity, storage start address, storage end address, data block size and storage interval. 6.根据权利要求4所述的数据块存储装置,其特征在于,所述相对时间获取单元,具体用于:6. The data block storage device according to claim 4, wherein the relative time obtaining unit is specifically used for: 对所述偏移时间与时间容量进行余数计算,获得相对时间。A remainder calculation is performed on the offset time and the time capacity to obtain a relative time. 7.一种数据块存储设备,其特征在于,包括处理器、存储器以及存储在所述存储器内的计算机程序,所述计算机程序能够被所述处理器执行以实现如权利要求1至3任意一项所述的数据块存储方法。7. A data block storage device, comprising a processor, a memory, and a computer program stored in the memory, the computer program being executable by the processor to implement any one of claims 1 to 3 The data block storage method described in item. 8.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述计算机可读存储介质所在设备执行如权利要求1至3任意一项所述的数据块存储方法。8. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored computer program, wherein, when the computer program runs, the device where the computer-readable storage medium is located is controlled to execute as claimed in the claims The data block storage method described in any one of 1 to 3.
CN201910606240.9A 2019-07-05 2019-07-05 A data block storage method, device, device and storage medium Active CN110442308B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910606240.9A CN110442308B (en) 2019-07-05 2019-07-05 A data block storage method, device, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910606240.9A CN110442308B (en) 2019-07-05 2019-07-05 A data block storage method, device, device and storage medium

Publications (2)

Publication Number Publication Date
CN110442308A CN110442308A (en) 2019-11-12
CN110442308B true CN110442308B (en) 2022-05-17

Family

ID=68429520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910606240.9A Active CN110442308B (en) 2019-07-05 2019-07-05 A data block storage method, device, device and storage medium

Country Status (1)

Country Link
CN (1) CN110442308B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111090396A (en) * 2019-12-10 2020-05-01 联想(北京)有限公司 File processing method and device and electronic equipment
CN113918578B (en) * 2020-07-10 2024-05-24 成都秦川物联网科技股份有限公司 Method for storing power-down data of intelligent gas meter of Internet of things in full-order mode
CN112506918B (en) * 2020-11-03 2024-06-04 深圳市宏电技术股份有限公司 Data access method, terminal and computer readable storage medium
CN115016725B (en) * 2021-03-05 2025-06-27 伊姆西Ip控股有限责任公司 Method, device and computer program product for managing storage devices
CN113934373A (en) * 2021-10-13 2022-01-14 山东鲁软数字科技有限公司 Energy monitoring data storage method and system
CN114661722A (en) * 2022-03-23 2022-06-24 天津同阳科技发展有限公司 Data storage method, data indexing method and device
CN116069260B (en) * 2023-02-23 2024-03-22 摩尔线程智能科技(北京)有限责任公司 Data processing devices, methods, computer equipment and storage media

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5614359A (en) * 1979-07-13 1981-02-12 Nec Corp Operation log storing system
CN103150397A (en) * 2013-03-26 2013-06-12 北京经纬恒润科技有限公司 Establishing method for data index, and data searching method and system
US8578126B1 (en) * 2009-10-29 2013-11-05 Netapp, Inc. Mapping of logical start addresses to physical start addresses in a system having misalignment between logical and physical data blocks
CN105302883A (en) * 2015-10-13 2016-02-03 深圳市乐唯科技开发有限公司 Time-based media file management method and system
EP3285186A1 (en) * 2016-08-16 2018-02-21 Netscout Systems Texas, LLC Methods and procedures for timestamp-based indexing of items in real-time storage

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5614359A (en) * 1979-07-13 1981-02-12 Nec Corp Operation log storing system
US8578126B1 (en) * 2009-10-29 2013-11-05 Netapp, Inc. Mapping of logical start addresses to physical start addresses in a system having misalignment between logical and physical data blocks
CN103150397A (en) * 2013-03-26 2013-06-12 北京经纬恒润科技有限公司 Establishing method for data index, and data searching method and system
CN105302883A (en) * 2015-10-13 2016-02-03 深圳市乐唯科技开发有限公司 Time-based media file management method and system
EP3285186A1 (en) * 2016-08-16 2018-02-21 Netscout Systems Texas, LLC Methods and procedures for timestamp-based indexing of items in real-time storage

Also Published As

Publication number Publication date
CN110442308A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
CN110442308B (en) A data block storage method, device, device and storage medium
KR101994021B1 (en) File manipulation method and apparatus
CN107247722B (en) File scanning method and device and intelligent terminal
US11138034B2 (en) Method and apparatus for collecting information, and method and apparatus for releasing memory
CN108255989B (en) Picture storage method and device, terminal equipment and computer storage medium
CN112954244B (en) Method, device, equipment and storage medium for realizing storage of monitoring video
CN112667405B (en) Information processing method, device, equipment and storage medium
CN108632624A (en) Image processing method, device, terminal device and readable storage medium storing program for executing
CN113986134B (en) Method for storing data, method and device for reading data
WO2021057622A1 (en) Garbage collection method, device, electronic apparatus, and storage medium
CN111767056A (en) A source code compilation method, an executable file running method, and a terminal device
CN105426322A (en) Data prefetching method and device
CN113051105A (en) Data processing method, device, equipment and storage medium
US20240264931A1 (en) Storage optimization method and apparatus for distributed storage system
CN116501450A (en) Translation control method, binary translation method, instruction execution method and device
CN114816623B (en) Embedded interface rendering and communication system based on CEF kernel and UnrealEngine
CN111708715B (en) Memory allocation method, memory allocation device and terminal equipment
CN111143092B (en) Fault recording data processing method, system and terminal equipment
CN111666150B (en) Storage space allocation method and device, terminal and computer readable storage medium
CN110866127A (en) Method for establishing index and related device
CN118885413A (en) Data reading method and device
CN111290850B (en) Data storage method, device and equipment
CN103761060A (en) Data processing method and server
CN104216836B (en) A kind of concurrent reading and concurrent writing method and apparatus of storage system
CN117033254A (en) Memory page access frequency determining method and computing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A data block storage method, device, equipment, and storage medium

Granted publication date: 20220517

Pledgee: Bank of China Limited Xiamen hi tech Park sub branch

Pledgor: Xiamen Sixin Internet of things Technology Co.,Ltd.

Registration number: Y2025980019028