CN109597566A - A kind of reading data, storage method and device - Google Patents

A kind of reading data, storage method and device Download PDF

Info

Publication number
CN109597566A
CN109597566A CN201710922962.6A CN201710922962A CN109597566A CN 109597566 A CN109597566 A CN 109597566A CN 201710922962 A CN201710922962 A CN 201710922962A CN 109597566 A CN109597566 A CN 109597566A
Authority
CN
China
Prior art keywords
data
target
read
storage
medium
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.)
Granted
Application number
CN201710922962.6A
Other languages
Chinese (zh)
Other versions
CN109597566B (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201710922962.6A priority Critical patent/CN109597566B/en
Publication of CN109597566A publication Critical patent/CN109597566A/en
Application granted granted Critical
Publication of CN109597566B publication Critical patent/CN109597566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0614Improving the reliability of 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/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • G06F3/0622Securing storage systems in relation to access
    • 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
    • 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/0643Management of files

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

The embodiment of the present application provides a kind of reading data, storage method and device, it is related to technical field of data processing, the above method includes: reception data read request, is carried in data read request: the corresponding storage time information of the multi-medium data to be read stored in a manner of correcting and eleting codes;According to the storage time information carried in data read request, the storage location information of target set of data is obtained from target index file, target index file, for storing the storage location information and storage time information of each data group that the multi-medium data stored in a manner of correcting and eleting codes includes in target data block, target data block are as follows: the data block that the band of storing multimedia data includes, target set of data are as follows: the data group that multi-medium data to be read includes;According to identified storage location information, multi-medium data to be read is read.Using technical solution provided by the embodiments of the present application, the number of failure when can reduce the multi-medium data that reading is stored according to correcting and eleting codes mode.

Description

A kind of reading data, storage method and device
Technical field
This application involves technical field of data processing, more particularly to a kind of reading data, storage method and device.
Background technique
With social development, the data such as multimedia that people need to store in work, life are more and more, to meet people The demand, select for the data such as multimedia to be stored in distributed memory system in more and more application scenarios.
When carrying out data storage in distributed memory system, it is contemplated that the factors such as data integrity, enhancing data protection, Data storage is usually carried out in a manner of correcting and eleting codes.
Wherein, data storage is carried out in a manner of correcting and eleting codes it is to be understood that data, which are divided into k sections, is stored in k number According in block, m sections of redundant datas then are obtained further according to above-mentioned k segment data and specific data processing algorithm, and are stored in m In data block, above-mentioned (k+m) a data block constitutes a band.
When data block in damaged condition in above-mentioned (k+m) a data block is no more than m, can be according to residue The data stored in the data block of non-damaging state recover the data stored in damaged condition data block.
It is a at (k+m) when reading the partial data carried out in a band obtained from data storage in the manner described above In the presence of the data stored in data block are equal, it just can determine that the partial data to be read in (k+m) a data block Storage location, to realize reading data.When wherein several data blocks are in damaged condition, need to first pass through in non-damage The data stored in the data block of bad state recover the data stored in damaged condition data block, then carry out data reading It takes.
Although reading data in most cases may be implemented using aforesaid way, work as in damaged condition data When the quantity of block is more than m, by the data stored in the data block in non-damaging state, it can not recover in damage shape The data stored in the data block of state just not can guarantee the data stored in (k+m) a data block yet and exist, and then cause to count Fail according to reading.
Summary of the invention
The embodiment of the present application is designed to provide a kind of reading data, storage method and device, with reduce read according to The number of failure when the multi-medium data that correcting and eleting codes mode stores.Specific technical solution is as follows:
In a first aspect, the embodiment of the present application provides a kind of method for reading data, which comprises
Receive data read request, wherein carry in the data read request: what is stored in a manner of correcting and eleting codes is to be read The corresponding storage time information of multi-medium data;
According to the storage time information carried in the data read request, target data is obtained from target index file The storage location information of group, wherein the target index file, for storing the multi-medium data packet stored in a manner of correcting and eleting codes Storage location information and storage time information of each data group contained in target data block, target data block are as follows: storage is more The data block that the band of media data includes, target set of data are as follows: the data group that the multi-medium data to be read includes;
According to identified storage location information, the multi-medium data to be read is read.
In a kind of implementation of the application, the reception data read request the step of after, further includes:
Determine the data block that the band for storing the multi-medium data to be read includes;
Obtain the quantity of primary sources block, wherein the primary sources block are as follows: in damage in determined data block The data block of state;
Judge whether obtained quantity is more than preset quantity;
If it is, execution is described according to the storage time information carried in the data read request, text is indexed from target Part obtains the step of storage location information of target set of data;
It is described according to the storage time information carried in the data read request, obtain target from target index file The step of storage location information of data group, comprising:
According to the storage time information carried in the data read request, is obtained from target index file and be stored in The storage location information of target set of data in two class data blocks, wherein the secondary sources block are as follows: in determined data block Data block in non-damaging state.
In a kind of implementation of the application, the target index file is also used to store and is stored in a manner of correcting and eleting codes The length for each data group that multi-medium data includes;
After the reception data read request the step of, further includes:
According to the length of the data group stored in the target index file, the length of target set of data is obtained;
The step of storage location information determined by the foundation, the reading multi-medium data to be read, comprising:
Successively since the position that the storage location information of identified each target set of data indicates, according to the number of targets According to the length read access evidence of group, realizes and read the multi-medium data to be read.
In a kind of implementation of the application, the target index file are as follows: the corresponding index file of target object;
Target object are as follows: for storing object belonging to the band of the multi-medium data to be read.
Second aspect, the embodiment of the present application provide a kind of date storage method, which comprises
Obtain multi-medium data to be stored;
Multi-medium data obtained is stored in a manner of correcting and eleting codes;
Determine the storage location information and storage of data group that multi-medium data obtained includes in target data block Temporal information, wherein target data block are as follows: the data block that the band for storing multi-medium data obtained includes;
The storage location information and storage time information of data group that include by multi-medium data obtained, each store Into target index file.
In a kind of implementation of the application, after described the step of obtaining multi-medium data to be stored, further includes:
Determine the length for each data group that multi-medium data obtained includes;
The length for each data group that multi-medium data obtained includes is stored into the target index file.
In a kind of implementation of the application, the target index file are as follows: the corresponding index file of target object;
Target object are as follows: for storing object belonging to the band of obtained multi-medium data.
The third aspect, the embodiment of the present application provide a kind of reading data device, and described device includes:
Request receiving module, for receiving data read requests, wherein carry in the data read request: being deleted with entangling The corresponding storage time information of multi-medium data to be read that code mode stores;
Information acquisition module, for being indexed from target according to the storage time information carried in the data read request The storage location information of target set of data is obtained in file, wherein the target index file, for storing in a manner of correcting and eleting codes Storage location information and storage time information of each data group that the multi-medium data of storage includes in target data block, mesh Mark data block are as follows: the data block that the band of storing multimedia data includes, target set of data are as follows: the multi-medium data to be read The data group for including;
Data read module, for reading the multi-medium data to be read according to identified storage location information.
In a kind of implementation of the application, the reading data device further include:
Data block determining module, for determining for depositing after the request receiving module receives data read request Store up the data block that the band of the multi-medium data to be read includes;
Quantity obtains module, for obtaining the quantity of primary sources block, wherein the primary sources block are as follows: institute is really Determine data block in damaged condition in data block;
Quantity judgment module, for judging whether obtained quantity is more than preset quantity, if it is, the information acquisition mould Block;
The information acquisition module, specifically for according to the storage time information carried in the data read request, from The storage location information of target set of data being stored in secondary sources block is obtained in target index file, wherein described the Two class data blocks are as follows: the data block of non-damaging state is in determined data block.
In a kind of implementation of the application, the target index file is also used to store and is stored in a manner of correcting and eleting codes The length for each data group that multi-medium data includes;
The reading data device further include:
Length obtains module, is used for after the request receiving module receives data read request, according to the target rope The length of the data group stored in quotation part obtains the length of target set of data;
The data read module, specifically for successively referring to from the storage location information of identified each target set of data The position shown starts, and according to the length read access evidence of the target set of data, realizes and reads the multi-medium data to be read.
In a kind of implementation of the application, the target index file are as follows: the corresponding index file of target object;
Target object are as follows: for storing object belonging to the band of the multi-medium data to be read.
Fourth aspect, the embodiment of the present application provide a kind of data storage device, and described device includes:
Data obtaining module, for obtaining multi-medium data to be stored;
Data memory module, for storing multi-medium data obtained in a manner of correcting and eleting codes;
Information determination module, for determining data group depositing in target data block that multi-medium data obtained includes Store up location information and storage time information, wherein target data block are as follows: for storing the band packet of multi-medium data obtained The data block contained;
Information storage module, the storage location information for data group that include by multi-medium data obtained, each It stores with storage time information into target index file.
In a kind of implementation of the application, the data storage device further include:
Length determination modul determines institute after obtaining multi-medium data to be stored in the data obtaining module The length for each data group that the multi-medium data of acquisition includes;
The length of length memory module, each data group for including by multi-medium data obtained is stored to described In target index file.
In a kind of implementation of the application, the target index file are as follows: the corresponding index file of target object;
Target object are as follows: for storing object belonging to the band of obtained multi-medium data.
5th aspect, the embodiment of the present application provide a kind of electronic equipment, including processor, communication interface, memory and Communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes side described in aforementioned first aspect embodiment Method step.
6th aspect, the embodiment of the present application provide a kind of electronic equipment, including processor, communication interface, memory and Communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes side described in aforementioned second aspect embodiment Method step.
7th aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer-readable storage Dielectric memory contains computer program, realizes described in aforementioned first aspect embodiment when the computer program is executed by processor Method and step.
Eighth aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer-readable storage Dielectric memory contains computer program, and the computer program is realized when being executed by processor described in aforementioned second aspect embodiment Method and step.
As seen from the above, it in above-mentioned technical proposal provided by the embodiments of the present application, is stored in a manner of correcting and eleting codes in reading When multi-medium data to be read, according to the corresponding storage time information of multi-medium data to be read, obtained from target index file The storage location information for the data group that multi-medium data to be read includes is obtained, and then according to storage location information realization obtained Read multi-medium data to be read.With in the prior art, only in guaranteeing band for storing multi-medium data to be read In the presence of the data of each data block storage are equal, the storage location information of each data group in data to be read just can determine that It compares, it, can be each in multi-medium data to be read from being directly obtained in index file in scheme provided by the embodiments of the present application The storage location information of data group, and then the failure time for reading the multi-medium data stored according to correcting and eleting codes mode can be reduced Number.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of date storage method provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram of method for reading data provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram of data-storage system provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of data storage device provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of reading data device provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application;
Fig. 7 is the structural schematic diagram of another electronic equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
First concept involved in the embodiment of the present application is illustrated below.
1, multi-medium data
Multi-medium data mentioned in the embodiment of the present application can be video data, audio data, image data etc..
Multi-medium data can be stream data, be also possible to non-stream data, and the application is defined not to this.
2, data group
Data group can be understood as the set of multi-medium data master data unit, wherein the basic number of multi-medium data It is different because of the particular content of multi-medium data according to unit.
For example, master data unit is video frame when multi-medium data is video data, have between adjacent video frames compared with Strong temporal correlation, in this case, data group is it is to be understood that GOP (Group Of Pictures, image group);
When multi-medium data is audio data, master data unit is audio frame, and in this case, data group is understood that Are as follows: according to the set of a certain number of audio frames of audio collection sequence;
When multi-medium data is image data, master data unit is image, and in this case, data group is understood that Are as follows: an image.
3, the length of data group
The length of data group can be understood as the quantity of master data unit included in data group.
For example, when multi-medium data is video data, data group GOP, then the length of data group are as follows: included in GOP The quantity of video frame;
When multi-medium data is audio data, the length of data group are as follows: the quantity of audio frame included in data group;
When multi-medium data is image data, the length of data group are as follows: 1.
4, the storage location information of data group
The storage location information of data group is it is to be understood that for indicating the letter of the storage location of data group within the data block Breath, these information may include: the information for the data block organized for storing data (for example, the mark of data block, data block rise Beginning storage location etc.), the information of the affiliated band of data block organized for storing data is (for example, the mark of band, band rise Beginning storage location etc.), the offset of the storage location of data group within the data block etc..
Wherein, the offset of the storage location of above-mentioned data group within the data block can only include: the starting of data group Storage location offset within the data block can also include: the offset of the termination storage location of data group within the data block, this Application is defined not to this.
By taking multi-medium data is video data as an example, data group GOP, then the storage location information of a GOP be can wrap Include: for storing the information of the data block of the GOP, the storage location offset within the data block of first I frame in the GOP, The information etc. of the affiliated band of data block for storing the GOP.
By taking multi-medium data is image as an example, a data group includes an image, then the storage location of a data group Information may include: that information for storing the data block of the data group corresponding image, the data group corresponding image are deposited Storage space sets the information of the affiliated band of offset within the data block, the data block for storing the data group corresponding image.
5, the storage time information of data group
The storage time information of data group is it is to be understood that for indicating the letter of the storage time of data group within the data block It ceases, can only include: starting storage time when being stored to the data in data group in these information, can also wrap It includes: the termination storage time that storage is being carried out to the data in data group, the application is defined not to this.
By taking multi-medium data is video data as an example, data group GOP, then the storage time information of a GOP be can wrap Include: the storage time of I frame in the GOP finally stores storage time of image etc. in the GOP.
By taking multi-medium data is image as an example, a data group includes an image, then the storage location of a data group Information may include: the storage time of the data group corresponding image.
Overall description is carried out to method for reading data provided by the embodiments of the present application again below.
Due in the prior art when reading the multi-medium data stored according to correcting and eleting codes mode, if what target stripe included The quantity of in damaged condition data block is more than certain amount in data block, by being in non-damaging state in target stripe The data stored in data block can not recover the data stored in damaged condition data block, not can guarantee mesh in this way The data stored in each data block in mark band exist, and also can not just determine multi-medium data to be read in target stripe Storage location in each data block, and then reading data is caused to fail.Wherein, above-mentioned target stripe are as follows: continue for storing Take the band of multi-medium data.
In order to solve the above technical problems, the embodiment of the present application provides a kind of method for reading data, the method for reading data Include:
Receive data read request, wherein carry in data read request: the more matchmakers to be read stored in a manner of correcting and eleting codes The corresponding storage time information of volume data;
According to the storage time information carried in data read request, target set of data is obtained from target index file Storage location information, wherein target index file, it is each for store that the multi-medium data stored in a manner of correcting and eleting codes includes Storage location information and storage time information of the data group in target data block, target data block are as follows: storing multimedia data The band data block that includes, target set of data are as follows: the data group that multi-medium data to be read includes;
According to identified storage location information, multi-medium data to be read is read.
As seen from the above, it in above-mentioned technical proposal provided by the embodiments of the present application, is stored in a manner of correcting and eleting codes in reading When multi-medium data to be read, according to the corresponding storage time information of multi-medium data to be read, obtained from target index file The storage location information for the data group that multi-medium data to be read includes is obtained, and then according to storage location information realization obtained Read multi-medium data to be read.With in the prior art, only in guaranteeing band for storing multi-medium data to be read In the presence of the data of each data block storage are equal, the storage location information of each data group in data to be read just can determine that It compares, it, can be each in multi-medium data to be read from being directly obtained in index file in scheme provided by the embodiments of the present application The storage location information of data group, and then the failure time for reading the multi-medium data stored according to correcting and eleting codes mode can be reduced Number.
In order to more clearly be carried out to method for reading data provided by the embodiments of the present application and data method of reseptance Illustrate, provides date storage method below as the embodiment of the present application is first introduced, then introduce data provided by the embodiments of the present application The sequence of read method is described in detail.
Fig. 1 is a kind of flow diagram of date storage method provided by the embodiments of the present application, this method comprises:
S101: multi-medium data to be stored is obtained.
Since the data volume of multi-medium data initial data is generally large, so, if directly storage initial data will lead to Storage resource consumes excessively, is based on this, when storing to multi-medium data, the data stored are the number after being compressed According to.
In view of the foregoing, multi-medium data to be stored in this step can be understood as the original number of multi-medium data According to it is also understood that carry out compressed multi-medium data to initial data.
S102: multi-medium data obtained is stored in a manner of correcting and eleting codes.
In a kind of implementation, when the multi-medium data obtained in S101 is initial data, with correcting and eleting codes in this step When mode stores multi-medium data obtained, first multi-medium data obtained can be compressed, then with correcting and eleting codes Mode stores compressed data.
In another implementation, when the multi-medium data obtained in S101 is to carry out compressed more matchmakers to initial data When storing multi-medium data obtained when volume data, in this step in a manner of correcting and eleting codes, to being obtained directly in a manner of correcting and eleting codes The multi-medium data obtained is stored.
S103: determine storage location information in target data block of data group that multi-medium data obtained includes and Storage time information.
Wherein, target data block are as follows: the data block that the band for storing multi-medium data obtained includes.
Determine the storage location information and storage of data group that multi-medium data obtained includes in target data block When temporal information, determination during storing multi-medium data obtained in a manner of correcting and eleting codes can be, it is, being obtained The data in multi-medium data obtained can be obtained its storage location information and storage time information once being stored.In addition, It can also be after being stored in a manner of correcting and eleting codes to multi-medium data obtained, to the storage position generated in storing process What confidence breath and storage time information were arranged.The application is defined not to this.
S104: storage location information and the storage time letter of data group that include by multi-medium data obtained, each Breath is stored into target index file.
In a kind of implementation, after the step of obtaining multi-medium data to be stored, it can also determine obtained The length for each data group that multi-medium data includes, and the length for each data group for including by multi-medium data obtained It stores into target index file.After the length of each data group is stored into target index file, without stored Being identified property information (for example, GOP information etc.) detects in data, and each data group can be known from target index file Length.
It, can for carrying out the entire data-storage system of data storage in a manner of correcting and eleting codes in another implementation To only exist an index file, it is, target index file can be what entire storage system shared, it is whole for storing The storage location information for the data group that each multi-medium data stored in a data-storage system includes, storage time letter The information such as breath, length.
In another implementation, carry out can have in the data-storage system of data storage in a manner of correcting and eleting codes more Storage resource, that is, can store a large amount of data.After carrying out data storage, to carry out data search, data convenient for the later period The operation such as reading, the storage resource of data-storage system can be divided into different object (object), in every object Store at least one band.In this case, an index file, the index of every object can be generated for each object File can also be referred to as index object.Based on the above situation, target index file is it is to be understood that target object is corresponding Index file, target object are as follows: for storing object belonging to the band of obtained multi-medium data.
As seen from the above, in the scheme provided in above-mentioned each embodiment, in a manner of correcting and eleting codes to multi-medium data into When row storage, in addition to wanting storing multimedia data itself, also storing multimedia data includes each in target index file The storage location information and storage time information of data group, in this way to the scheme storage provided according to above-mentioned each embodiment When data are read out, without guaranteeing that the data of each data block storage in the band for storing multi-medium data to be read are deposited In case, from the storage location that can directly obtain each data group in multi-medium data to be read in target index file Information, and then the frequency of failure for reading the multi-medium data stored according to correcting and eleting codes mode can be reduced.
Fig. 2 is a kind of flow diagram of method for reading data provided by the embodiments of the present application, this method comprises:
S201: data read request is received.
Wherein, it is carried in data read request: the corresponding storage of multi-medium data to be read stored in a manner of correcting and eleting codes Temporal information.
Specifically, the corresponding storage time information of above-mentioned multi-medium data to be read may include: multimedia number to be read According to starting storage time, duration, the corresponding storage time information of certainly above-mentioned multi-medium data to be read also may include: to Read the starting storage time of multi-medium data, terminate storage time etc., the application is defined not to this.
S202: according to the storage time information carried in data read request, number of targets is obtained from target index file According to the storage location information of group.
Wherein, target index file, each data for including for storing the multi-medium data stored in a manner of correcting and eleting codes Storage location information and storage time information of the group in target data block, target data block are as follows: the item of storing multimedia data Band comprising data block, target set of data are as follows: the data group for including in multi-medium data to be read.
Specifically, obtaining target from target index file according to the storage time information carried in data read request When the storage location information of data group, can first in target index file search with data read request in carry storage when Between information match, the storage time information of target set of data, then determine that the storage time information found is corresponding and deposit Location information is stored up, the above-mentioned storage location information determined is the storage location information of target set of data.
S203: according to identified storage location information, above-mentioned multi-medium data to be read is read.
In a kind of implementation, after the step of receiving data read request (S201), it can also determine for storing The data block that the band of multi-medium data to be read includes, obtains the quantity of primary sources block, and judges that obtained quantity is No is more than preset quantity, when quantity obtained is more than preset quantity, above-mentioned is carried according in data read request executing Storage time information, the step of storage location information of target set of data is obtained from target index file (S202);
Wherein, above-mentioned primary sources block are as follows: in damaged condition data block in determined data block.
Based on the above situation according to the storage time information carried in data read request, obtained from target index file When storage location information (S202) of target set of data, can according to the storage time information carried in data read request, from The storage location information for the target set of data being stored in secondary sources block is obtained in target index file, wherein the second class Data block are as follows: the data block of non-damaging state is in determined data block.
When above-mentioned preset quantity can be understood as using correcting and eleting codes mode storing data, it is specified that for storing redundant data Data block quantity.
As it can be seen that in this implementation, when number in damaged condition in the band for storing multi-medium data to be read When more according to number of blocks, according to the data stored in the data block of non-damaging state are in above-mentioned band, possibly it can not restore The data stored in above-mentioned in damaged condition data block out, and since in this implementation text can be indexed according to target Part determines the storage location information for the data group being stored in above-mentioned secondary sources block, therefore, can still mention for user For some or all of data of data to be read, the number of reading data failure can not only be substantially reduced, additionally it is possible to significantly User experience is provided.
In another implementation, above-mentioned target index file is also used to store the multimedia stored in a manner of correcting and eleting codes The length for each data group that data include;
It, can also be according to the data stored in target index file after the step of receiving data read request (S201) The length of group, obtains the length of target set of data;
In this case, according to identified storage location information, the step of reading above-mentioned multi-medium data to be read (S203), comprising:
Successively since the position that the storage location information of identified each target set of data indicates, according to the number of targets According to the length read access evidence of group, realizes and read above-mentioned multi-medium data to be read.
In the case where being also stored with the length for each data group that multi-medium data includes in target index file, carry out When reading data, the length for each data group to be read may know that according to the length of the data group recorded in target index file Degree, this data group terminates after being also known that reading how many data, without detecting follow-up data in reading the data In whether there is identification information (for example, GOP information etc.), and then improve data reading speed.
It, can for carrying out the entire data-storage system of data storage in a manner of correcting and eleting codes in another implementation To only exist an index file, it is, target index file can be what entire storage system shared, it is whole for storing The storage location information for the data group that each multi-medium data stored in a data-storage system includes, storage time letter The information such as breath, length.
In another implementation, carry out can have in the data-storage system of data storage in a manner of correcting and eleting codes more Storage resource, that is, can store a large amount of data.After carrying out data storage, to carry out data search, data convenient for the later period The operation such as reading, the storage resource of data-storage system can be divided into different object (object), data above-mentioned in this way Storage system can also be referred to as object storage system, store at least one band in every object.It in this case, can be with An index file is generated for every object, the index file of every object can also be referred to as index object.It is based on Above situation, target index file is it is to be understood that the corresponding index file of target object, target object are as follows: for storing Obtain object belonging to the band of multi-medium data.
It is divided into the implementation of different object based on above-mentioned storage resource, may include member in object storage system Data server, the structural schematic diagram of object storage system shown in Figure 3, wherein meta data server is for storing rope Draw category information, for example, the offset in object of the information, each band of the stored band of each object, each index Storage time section of data block corresponding to object etc..From figure 3, it can be seen that in above-mentioned object storage system in addition to comprising It also include object storage resource, object storage resource shown in Fig. 3 are as follows: in object storage system outside meta data server The set for the storage resource that the storage server for being included has, it is assumed that include storage server 1 in object storage system, deposit Store up server 2 ... storage server N, wherein N is natural number, then above-mentioned object storage resource is it is to be understood that above-mentioned storage The set for the storage resource that server 1-N has.
Object storage resource in object storage system is divided into different object, is stored with item in every object Band, each object is with an index object, e.g.,
1, band 2 of having ready conditions is stored in object1, object1 is corresponding with index object1;
Have ready conditions 3, band 4, band 5 are stored in object2, object2 is corresponding with index object2;
Have ready conditions 6, band 7, band 8, band 9 are stored in object3, object3 is corresponding with index object3;
The data block of institute's storing data in a manner of correcting and eleting codes is stored in each band, as included in band 1 in Fig. 3:
The data block 1 that is stored in hard disk 1, the data block 2 being stored in hard disk 2, the data block 3 being stored in hard disk 3 With the data block 4 being stored in hard disk 4, above-mentioned hard disk 1- hard disk 4 can be the hard disk in same storage server, can also To be the hard disk in the different storage servers, the application is defined not to this.
The case where other bands, is similar to band 1, does not list one by one in Fig. 3.
In this case, it according to the storage time information carried in data read request, is obtained from target index file When the storage location information of target set of data, executing subject can first be sent out the storage time information carried in data read request Meta data server is given, above-mentioned storage time information is determined according to the above-mentioned index category information of its storage by meta data server The information of corresponding index object, that is, the information of target index file, for example, the mark etc. of target index file, and The information of above-mentioned index object is fed back into executing subject, the information that executing subject parses received index object is corresponding The content of object, that is, the content of parsing target index file are indexed, determines that above-mentioned storage time is believed according to parsing result Band belonging to data block where ceasing corresponding data group, obtains determined each band in object from meta data server Offset, in conjunction with the content recorded in target index file, e.g., the data block, data block where target set of data are in band In offset, the offset of target set of data within the data block etc., obtain the storage location information of target set of data.
As seen from the above, it in the above-mentioned technical proposal that above-mentioned each embodiment provides, is stored in a manner of correcting and eleting codes reading Multi-medium data to be read when, according to the corresponding storage time information of multi-medium data to be read, from target index file The storage location information for the data group that multi-medium data to be read includes is obtained, and then real according to storage location information obtained Now read multi-medium data to be read.With in the prior art, only guaranteeing the band for storing multi-medium data to be read In the storage of each data block data it is equal in the presence of, just can determine that the storage location letter of each data group in data to be read Manner of breathing ratio can be each in multi-medium data to be read from directly obtaining in index file in scheme provided by the above embodiment The storage location information of data group, and then the failure time for reading the multi-medium data stored according to correcting and eleting codes mode can be reduced Number.
Corresponding with above-mentioned date storage method, the embodiment of the present application also provides a kind of data storage devices.
Fig. 4 is a kind of structural schematic diagram of data storage device provided by the embodiments of the present application, which includes:
Data obtaining module 301, for obtaining multi-medium data to be stored;
Data memory module 302, for storing multi-medium data obtained in a manner of correcting and eleting codes;
Information determination module 303, for determining data group that multi-medium data obtained includes in target data block Storage location information and storage time information, wherein target data block are as follows: for storing the item of multi-medium data obtained Band comprising data block;
Information storage module 304, the storage location for data group that include by multi-medium data obtained, each are believed Breath and storage time information are stored into target index file.
In a kind of implementation, above-mentioned data storage device can also include:
Length determination modul determines institute after obtaining multi-medium data to be stored in the data obtaining module The length for each data group that the multi-medium data of acquisition includes;
The length of length memory module, each data group for including by multi-medium data obtained is stored to described In target index file.
In a kind of implementation, the target index file are as follows: the corresponding index file of target object;
Target object are as follows: for storing object belonging to the band of obtained multi-medium data.
As seen from the above, in the scheme provided in above-mentioned each embodiment, in a manner of correcting and eleting codes to multi-medium data into When row storage, in addition to wanting storing multimedia data itself, also storing multimedia data includes each in target index file The storage location information and storage time information of data group, in this way to the scheme storage provided according to above-mentioned each embodiment When data are read out, without guaranteeing that the data of each data block storage in the band for storing multi-medium data to be read are deposited In case, from the storage location that can directly obtain each data group in multi-medium data to be read in target index file Information, and then the frequency of failure for reading the multi-medium data stored according to correcting and eleting codes mode can be reduced.
Corresponding with above-mentioned method for reading data, the embodiment of the present application also provides a kind of reading data devices.
Fig. 5 is a kind of structural schematic diagram of reading data device provided by the embodiments of the present application, which includes:
Request receiving module 401, for receiving data read requests, wherein carried in the data read request: to entangle Delete the corresponding storage time information of multi-medium data to be read that yard mode stores;
Information acquisition module 402, for according to the storage time information carried in the data read request, from target rope The storage location information of target set of data is obtained in quotation part, wherein the target index file, for storing with correcting and eleting codes side Storage location information and storage time information of each data group that the multi-medium data of formula storage includes in target data block, Target data block are as follows: the data block that the band of storing multimedia data includes, target set of data are as follows: the multimedia number to be read According to comprising data group;
Data read module 403, for reading the multimedia number to be read according to identified storage location information According to.
In a kind of implementation, above-mentioned reading data device can also include:
Data block determining module, for determining for depositing after the request receiving module receives data read request Store up the data block that the band of the multi-medium data to be read includes;
Quantity obtains module, for obtaining the quantity of primary sources block, wherein the primary sources block are as follows: institute is really Determine data block in damaged condition in data block;
Quantity judgment module, for judging whether obtained quantity is more than preset quantity, if it is, the information acquisition mould Block;
The information acquisition module, specifically for according to the storage time information carried in the data read request, from The storage location information of target set of data being stored in secondary sources block is obtained in target index file, wherein described the Two class data blocks are as follows: the data block of non-damaging state is in determined data block.
In a kind of implementation, the target index file is also used to store the multimedia number stored in a manner of correcting and eleting codes According to comprising each data group length;
The reading data device can also include:
Length obtains module, is used for after the request receiving module receives data read request, according to the target rope The length of the data group stored in quotation part obtains the length of target set of data;
The data read module, specifically for successively referring to from the storage location information of identified each target set of data The position shown starts, and according to the length read access evidence of the target set of data, realizes and reads the multi-medium data to be read.
In a kind of implementation, the target index file are as follows: the corresponding index file of target object;
Target object are as follows: for storing object belonging to the band of the multi-medium data to be read.
As seen from the above, it in the above-mentioned technical proposal that above-mentioned each embodiment provides, is stored in a manner of correcting and eleting codes reading Multi-medium data to be read when, according to the corresponding storage time information of multi-medium data to be read, from target index file The storage location information for the data group that multi-medium data to be read includes is obtained, and then real according to storage location information obtained Now read multi-medium data to be read.With in the prior art, only guaranteeing the band for storing multi-medium data to be read In the storage of each data block data it is equal in the presence of, just can determine that the storage location letter of each data group in data to be read Manner of breathing ratio can be each in multi-medium data to be read from directly obtaining in index file in scheme provided by the above embodiment The storage location information of data group, and then the failure time for reading the multi-medium data stored according to correcting and eleting codes mode can be reduced Number.
Corresponding with above-mentioned date storage method, the embodiment of the present application also provides a kind of electronic equipment.
Fig. 6 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application, including processor 501, communication connect Mouth 502, memory 503 and communication bus 504, wherein processor 501, communication interface 502, memory 503 pass through communication bus 504 complete mutual communication,
Memory 503, for storing computer program;
Processor 501 when for executing the program stored on memory 503, realizes number described in the embodiment of the present application According to storage method.
In one embodiment of the application, above-mentioned date storage method, comprising:
Obtain multi-medium data to be stored;
Multi-medium data obtained is stored in a manner of correcting and eleting codes;
Determine the storage location information and storage of data group that multi-medium data obtained includes in target data block Temporal information, wherein target data block are as follows: the data block that the band for storing multi-medium data obtained includes;
The storage location information and storage time information of data group that include by multi-medium data obtained, each store Into target index file.
It should be noted that the data that above-mentioned processor 501 executes the program stored on memory 503 and realizes store The other embodiments of method, identical as the embodiment that preceding method embodiment part provides, which is not described herein again.
As seen from the above, in the scheme provided in the present embodiment, electronic equipment in a manner of correcting and eleting codes to multi-medium data When being stored, in addition to wanting storing multimedia data itself, storing multimedia data includes each also in target index file The storage location information and storage time information of a data group, in this way to the data stored according to scheme provided in this embodiment When being read out, the data without guaranteeing each data block storage in the band for storing multi-medium data to be read are existing In the case of, believe from the storage location that can directly obtain each data group in multi-medium data to be read in target index file Breath, and then the frequency of failure for reading the multi-medium data stored according to correcting and eleting codes mode can be reduced.
Corresponding with aforementioned data read method, the embodiment of the present application provides another electronic equipment.
Fig. 7 is the structural schematic diagram of another electronic equipment provided by the embodiments of the present application, including processor 601, communication Interface 602, memory 603 and communication bus 604, wherein processor 601, communication interface 602, memory 603 are total by communication Line 604 completes mutual communication,
Memory 603, for storing computer program;
Processor 601 when for executing the program stored on memory 603, realizes number provided by the embodiments of the present application According to read method.
In one embodiment of the application, above-mentioned method for reading data, comprising:
Receive data read request, wherein carry in the data read request: what is stored in a manner of correcting and eleting codes is to be read The corresponding storage time information of multi-medium data;
According to the storage time information carried in the data read request, target data is obtained from target index file The storage location information of group, wherein the target index file, for storing the multi-medium data packet stored in a manner of correcting and eleting codes Storage location information and storage time information of each data group contained in target data block, target data block are as follows: storage is more The data block that the band of media data includes, target set of data are as follows: the data group that the multi-medium data to be read includes;
According to identified storage location information, the multi-medium data to be read is read.
It should be noted that above-mentioned processor 601 executes the program stored on memory 603 and the reading data realized The other embodiments of method, identical as the embodiment that preceding method embodiment part provides, which is not described herein again.
As seen from the above, in above-mentioned technical proposal provided in this embodiment, electronic equipment is deposited in a manner of correcting and eleting codes in reading When the multi-medium data to be read of storage, according to the corresponding storage time information of multi-medium data to be read, from target index file The middle storage location information for obtaining the data group that multi-medium data to be read includes, and then according to storage location information obtained It realizes and reads multi-medium data to be read.With in the prior art, only guaranteeing the item for storing multi-medium data to be read In the presence of the data of each data block storage are equal in band, the storage location of each data group in data to be read just can determine that Information is compared, and in scheme provided in this embodiment, electronic equipment can directly obtain multimedia number to be read from index file The storage location information of each data group in, and then can reduce and read the multi-medium data stored according to correcting and eleting codes mode The frequency of failure.
The communication bus that above-mentioned various electronic equipments are mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned various electronic equipments and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
It is corresponding with above-mentioned date storage method, the embodiment of the present application also provides a kind of computer readable storage medium, Computer program is stored in the computer readable storage medium, the computer program realizes this Shen when being executed by processor It please date storage method described in embodiment.
In one embodiment of the application, above-mentioned date storage method, comprising:
Obtain multi-medium data to be stored;
Multi-medium data obtained is stored in a manner of correcting and eleting codes;
Determine the storage location information and storage of data group that multi-medium data obtained includes in target data block Temporal information, wherein target data block are as follows: the data block that the band for storing multi-medium data obtained includes;
The storage location information and storage time information of data group that include by multi-medium data obtained, each store Into target index file.
It should be noted that the computer program stored in above-mentioned computer readable storage medium is executed by processor and reality The other embodiments of existing date storage method, it is identical as the embodiment that preceding method embodiment part provides, it is no longer superfluous here It states.
As seen from the above, in the scheme provided in the present embodiment, pass through what is stored in execution computer readable storage medium Computer program, when being stored in a manner of correcting and eleting codes to multi-medium data, in addition to wanting storing multimedia data itself, also in mesh Storing multimedia data includes the storage location information and storage time information of each data group in mark index file, is existed in this way When being read out to the data of the scheme storage provided according to above-mentioned each embodiment, without guaranteeing for storing more matchmakers to be read In the presence of the data of each data block storage are equal in the band of volume data, can be directly obtained from target index file to The storage location information of each data group in multi-medium data is read, and then can reduce what reading was stored according to correcting and eleting codes mode The frequency of failure of multi-medium data.
Corresponding with aforementioned data read method, the embodiment of the present application provides another computer readable storage medium, Computer program is stored in the computer readable storage medium, the computer program realizes this Shen when being executed by processor Please embodiment provide method for reading data.
In one embodiment of the application, above-mentioned method for reading data, comprising:
Receive data read request, wherein carry in the data read request: what is stored in a manner of correcting and eleting codes is to be read The corresponding storage time information of multi-medium data;
According to the storage time information carried in the data read request, target data is obtained from target index file The storage location information of group, wherein the target index file, for storing the multi-medium data packet stored in a manner of correcting and eleting codes Storage location information and storage time information of each data group contained in target data block, target data block are as follows: storage is more The data block that the band of media data includes, target set of data are as follows: the data group that the multi-medium data to be read includes;
According to identified storage location information, the multi-medium data to be read is read.
It should be noted that the computer program stored in above-mentioned computer readable storage medium is executed by processor and reality The other embodiments of existing method for reading data, it is identical as the embodiment that preceding method embodiment part provides, it is no longer superfluous here It states.
As seen from the above, in above-mentioned technical proposal provided in this embodiment, by executing above-mentioned computer-readable storage medium The computer program stored in matter, when reading the multi-medium data to be read stored in a manner of correcting and eleting codes, according to more matchmakers to be read The corresponding storage time information of volume data, obtains depositing for the data group that multi-medium data to be read includes from target index file Location information is stored up, and then multi-medium data to be read is read according to storage location information realization obtained.With in the prior art, In the presence of the data of each data block storage are equal only in guaranteeing the band for storing multi-medium data to be read, It can determine that the storage location information of each data group in data to be read is compared, it, can be from rope in scheme provided in this embodiment The storage location information of each data group in multi-medium data to be read is directly obtained in quotation part, and then can be reduced reading and be pressed According to the frequency of failure for the multi-medium data that correcting and eleting codes mode stores.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For electronic equipment, computer readable storage medium embodiment, since it is substantially similar to the method embodiment, so the ratio of description Relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection scope of the application.It is all Any modification, equivalent replacement, improvement and so within spirit herein and principle are all contained in the protection scope of the application It is interior.

Claims (14)

1. a kind of method for reading data, which is characterized in that the described method includes:
Receive data read request, wherein carry in the data read request: the more matchmakers to be read stored in a manner of correcting and eleting codes The corresponding storage time information of volume data;
According to the storage time information carried in the data read request, target set of data is obtained from target index file Storage location information, wherein the target index file includes for storing the multi-medium data stored in a manner of correcting and eleting codes Storage location information and storage time information of each data group in target data block, target data block are as follows: storage multimedia The data block that the band of data includes, target set of data are as follows: the data group that the multi-medium data to be read includes;
According to identified storage location information, the multi-medium data to be read is read.
2. the method according to claim 1, wherein after the reception data read request the step of, also Include:
Determine the data block that the band for storing the multi-medium data to be read includes;
Obtain the quantity of primary sources block, wherein the primary sources block are as follows: in damaged condition in determined data block Data block;
Judge whether obtained quantity is more than preset quantity;
If it is, execution is described according to the storage time information carried in the data read request, obtained from target index file The step of obtaining the storage location information of target set of data;
It is described according to the storage time information carried in the data read request, obtain target data from target index file The step of storage location information of group, comprising:
According to the storage time information carried in the data read request, is obtained from target index file and be stored in the second class The storage location information of target set of data in data block, wherein the secondary sources block are as follows: be in determined data block The data block of non-damaging state.
3. method according to claim 1 or 2, which is characterized in that
The target index file is also used to store each data group that the multi-medium data stored in a manner of correcting and eleting codes includes Length;
After the reception data read request the step of, further includes:
According to the length of the data group stored in the target index file, the length of target set of data is obtained;
The step of storage location information determined by the foundation, the reading multi-medium data to be read, comprising:
Successively since the position that the storage location information of identified each target set of data indicates, according to the target set of data Length read fetch evidence, realize and read the multi-medium data to be read.
4. method according to any one of claim 1-3, which is characterized in that
The target index file are as follows: the corresponding index file of target object;
Target object are as follows: for storing object belonging to the band of the multi-medium data to be read.
5. a kind of date storage method, which is characterized in that the described method includes:
Obtain multi-medium data to be stored;
Multi-medium data obtained is stored in a manner of correcting and eleting codes;
Determine the storage location information and storage time of data group that multi-medium data obtained includes in target data block Information, wherein target data block are as follows: the data block that the band for storing multi-medium data obtained includes;
The storage location information and storage time information of data group that include by multi-medium data obtained, each are stored to mesh It marks in index file.
6. according to the method described in claim 5, it is characterized in that, described the step of obtaining multi-medium data to be stored it Afterwards, further includes:
Determine the length for each data group that multi-medium data obtained includes;
The length for each data group that multi-medium data obtained includes is stored into the target index file.
7. method according to claim 5 or 6, which is characterized in that
The target index file are as follows: the corresponding index file of target object;
Target object are as follows: for storing object belonging to the band of obtained multi-medium data.
8. a kind of reading data device, which is characterized in that described device includes:
Request receiving module, for receiving data read requests, wherein carried in the data read request: with correcting and eleting codes side The corresponding storage time information of multi-medium data to be read of formula storage;
Information acquisition module, for according to the storage time information carried in the data read request, from target index file The middle storage location information for obtaining target set of data, wherein the target index file is stored in a manner of correcting and eleting codes for storing The multi-medium data storage location information and storage time information of each data group in target data block that include, number of targets According to block are as follows: the data block that the band of storing multimedia data includes, target set of data are as follows: the multi-medium data to be read includes Data group;
Data read module, for reading the multi-medium data to be read according to identified storage location information.
9. device according to claim 8, which is characterized in that described device further include:
Data block determining module, for determining for storing after the request receiving module receives data read request State the data block that the band of multi-medium data to be read includes;
Quantity obtains module, for obtaining the quantity of primary sources block, wherein the primary sources block are as follows: determined number According to data block in damaged condition in block;
Quantity judgment module, for judging whether obtained quantity is more than preset quantity, if it is, the information acquisition module;
The information acquisition module, specifically for according to the storage time information carried in the data read request, from target The storage location information for the target set of data being stored in secondary sources block is obtained in index file, wherein second class Data block are as follows: the data block of non-damaging state is in determined data block.
10. device according to claim 8 or claim 9, which is characterized in that
The target index file is also used to store each data group that the multi-medium data stored in a manner of correcting and eleting codes includes Length;
Described device further include:
Length obtains module, for indexing text according to the target after the request receiving module receives data read request The length of the data group stored in part obtains the length of target set of data;
The data read module, specifically for what is successively indicated from the storage location information of identified each target set of data Position starts, and according to the length read access evidence of the target set of data, realizes and reads the multi-medium data to be read.
11. the device according to any one of claim 8-10, which is characterized in that
The target index file are as follows: the corresponding index file of target object;
Target object are as follows: for storing object belonging to the band of the multi-medium data to be read.
12. a kind of data storage device, which is characterized in that described device includes:
Data obtaining module, for obtaining multi-medium data to be stored;
Data memory module, for storing multi-medium data obtained in a manner of correcting and eleting codes;
Information determination module, for determining the storage position of data group that multi-medium data obtained includes in target data block Confidence breath and storage time information, wherein target data block are as follows: the band for storing multi-medium data obtained includes Data block;
Information storage module, for data group that include by multi-medium data obtained, each storage location information and deposit Storage temporal information is stored into target index file.
13. device according to claim 12, which is characterized in that described device further include:
Length determination modul, after obtaining multi-medium data to be stored in the data obtaining module, determination is obtained Multi-medium data each data group for including length;
Length memory module, the length of each data group for including by multi-medium data obtained are stored to the target In index file.
14. device according to claim 12 or 13, which is characterized in that
The target index file are as follows: the corresponding index file of target object;
Target object are as follows: for storing object belonging to the band of obtained multi-medium data.
CN201710922962.6A 2017-09-30 2017-09-30 Data reading and storing method and device Active CN109597566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710922962.6A CN109597566B (en) 2017-09-30 2017-09-30 Data reading and storing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710922962.6A CN109597566B (en) 2017-09-30 2017-09-30 Data reading and storing method and device

Publications (2)

Publication Number Publication Date
CN109597566A true CN109597566A (en) 2019-04-09
CN109597566B CN109597566B (en) 2022-03-04

Family

ID=65956918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710922962.6A Active CN109597566B (en) 2017-09-30 2017-09-30 Data reading and storing method and device

Country Status (1)

Country Link
CN (1) CN109597566B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026580A (en) * 2019-11-29 2020-04-17 浪潮电子信息产业股份有限公司 Data reading method, device, equipment and storage medium
CN111245928A (en) * 2020-01-09 2020-06-05 深圳物控智联科技有限公司 Resource adjusting method based on super-fusion architecture, Internet of things server and medium
CN111782588A (en) * 2019-11-22 2020-10-16 西安宇视信息科技有限公司 File reading method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546755A (en) * 2011-12-12 2012-07-04 华中科技大学 Data storage method of cloud storage system
CN102945679A (en) * 2012-09-29 2013-02-27 华为技术有限公司 Video data processing method and video data read-write equipment
CN104462141A (en) * 2013-09-24 2015-03-25 中国移动通信集团重庆有限公司 Data storage and query method and system and storage engine device
CN104699816A (en) * 2015-03-25 2015-06-10 成都华迈通信技术有限公司 Method and device for processing data
CN104965845A (en) * 2014-12-30 2015-10-07 浙江大华技术股份有限公司 Small file positioning method and system
US20150324371A1 (en) * 2013-12-31 2015-11-12 Huawei Technologies Co., Ltd. Data Processing Method and Device in Distributed File Storage System

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546755A (en) * 2011-12-12 2012-07-04 华中科技大学 Data storage method of cloud storage system
CN102945679A (en) * 2012-09-29 2013-02-27 华为技术有限公司 Video data processing method and video data read-write equipment
CN104462141A (en) * 2013-09-24 2015-03-25 中国移动通信集团重庆有限公司 Data storage and query method and system and storage engine device
US20150324371A1 (en) * 2013-12-31 2015-11-12 Huawei Technologies Co., Ltd. Data Processing Method and Device in Distributed File Storage System
CN104965845A (en) * 2014-12-30 2015-10-07 浙江大华技术股份有限公司 Small file positioning method and system
CN104699816A (en) * 2015-03-25 2015-06-10 成都华迈通信技术有限公司 Method and device for processing data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782588A (en) * 2019-11-22 2020-10-16 西安宇视信息科技有限公司 File reading method, device, equipment and medium
CN111026580A (en) * 2019-11-29 2020-04-17 浪潮电子信息产业股份有限公司 Data reading method, device, equipment and storage medium
CN111245928A (en) * 2020-01-09 2020-06-05 深圳物控智联科技有限公司 Resource adjusting method based on super-fusion architecture, Internet of things server and medium

Also Published As

Publication number Publication date
CN109597566B (en) 2022-03-04

Similar Documents

Publication Publication Date Title
CN106534273A (en) Block chain metadata storage system, and storage method and retrieval method thereof
US11546088B2 (en) Check code processing method, electronic device and storage medium
CN103731499B (en) Terminal and document transmission method
CN110247986A (en) A kind of document transmission method, device and electronic equipment
CN109756760B (en) Video tag generation method and device and server
CN109597566A (en) A kind of reading data, storage method and device
CN110475124B (en) Video jamming detection method and device
CN108076377A (en) A kind of storage of video, playback method, device, electronic equipment and storage medium
US9176857B2 (en) Method and apparatus for managing video memory in embedded device
CN104850556B (en) A kind of method and device of data processing
CN110232633A (en) A kind of electronic signature method, apparatus, storage medium and server
CN105357229B (en) Video processing method and device
CN105338564B (en) A kind of client adaptation method, client, server and system
CN109558263A (en) A kind of processing method and relevant apparatus of solid state hard disk data read errors
CN111860590A (en) License plate voting method and device, computer equipment and storage medium
US11341842B2 (en) Metering data management system and computer readable recording medium
CN106358220B (en) The detection method of abnormal contact information, apparatus and system
CN110399344A (en) Choose the method and device of multiimage
CN107707395B (en) Data transmission method, device and system
CN106294630B (en) Multimedia messages recommended method, device and multimedia system
CN106293996B (en) Method of data synchronization, main equipment, alternate device and system
CN110248205B (en) Method and device for packing video recording data
CN109491807A (en) Data exchange method, device and system
CN115550380A (en) Data synchronization method, device, equipment and storage medium
CN105744304B (en) A kind of processing method and processing device of EPG data

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