CN112380165A - Method for searching recorded data file - Google Patents
Method for searching recorded data file Download PDFInfo
- Publication number
- CN112380165A CN112380165A CN202011236479.0A CN202011236479A CN112380165A CN 112380165 A CN112380165 A CN 112380165A CN 202011236479 A CN202011236479 A CN 202011236479A CN 112380165 A CN112380165 A CN 112380165A
- Authority
- CN
- China
- Prior art keywords
- data
- file
- frame length
- length information
- data file
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 21
- 238000000354 decomposition reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013075 data extraction Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/113—Details of archiving
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/148—File search processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a method for retrieving a recorded data file, which comprises the following steps that when data are recorded, a processor records the data into the data file and generates a corresponding frame length information file when receiving a frame of data; and the processor sends the data file and the frame length information file to a storage end so that the storage end correspondingly stores the data file and the frame length information file. The processor records the data into a data file and generates a corresponding frame length information file when receiving a frame of data; when data are retrieved, the processor sends the data file and the frame length information file to a storage end so that the storage end correspondingly stores the data file and the frame length information file.
Description
Technical Field
The invention relates to the field of computer communication. And more particularly to a method of retrieving a recorded data file.
Background
When recording data on channels such as a network, a recording file with a frame superimposed is formed, and the problem of frame position must be solved when data decomposition is performed. One common method is to store the frame data in a fixed length in a record file when the record data is stored. This method is simple but must ensure that the fixed length is greater than the length of the recording frame and results in wasted storage controls.
Disclosure of Invention
To solve at least one of the above problems, a first aspect of embodiments of the present invention provides a method of recording a data file,
the processor records the data into a data file and generates a corresponding frame length information file when receiving a frame of data;
and the processor sends the data file and the frame length information file to a storage end so that the storage end correspondingly stores the data file and the frame length information file.
The frame length information file is used for storing the frame length information of the data.
The frame length information file and the data file have the same file name and different suffixes.
A second aspect of embodiments of the present invention provides a method of recording a data file, including,
and the storage end receives and stores a data file and a corresponding frame length information file which are generated by the processor according to each frame of data, wherein the frame length information file is used for storing the frame length information of the data file.
A third aspect of embodiments of the present invention provides a method for retrieving a parsed data file, comprising,
the processor receives and simultaneously opens a data file and a corresponding frame length information file sent by a storage end, and retrieves and decomposes the data file according to each frame length information in the frame length information file;
the frame length information file is used for storing the frame length information of the data;
the frame length information file and the data file have the same file name and different suffixes.
A fourth aspect of embodiments of the present invention provides a method of retrieving a parsed data file, comprising,
and the storage end sends the data file and the corresponding frame length information file to a processor so that the processor retrieves and decomposes the data file according to the frame length data in the frame length information file.
The frame length information file and the data file have the same file name and different suffixes.
A fifth aspect of an embodiment of the present invention provides a processor, including:
the data processing module is used for receiving data, recording the frame length information of the data into a frame length information file when a data file is received every time a frame of data is received;
and the data sending module is used for sending the frame length information file and the data file to a storage end.
A sixth aspect of embodiments of the present invention provides a memory device, including
The storage unit is used for storing data files and corresponding frame length information files.
The invention has the following beneficial effects:
the invention synchronously generates the frame length information file of the recording data file during data recording, and each frame length data corresponds to one frame of recording data. And synchronously opening the frame length information file when retrieving the recorded data file, and decomposing the data recording file according to the frame length data in the frame length information file. The problem of frame decomposition of the recorded data is solved, and the waste of storage space is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a schematic diagram of a recording data file according to an embodiment of the present invention.
FIG. 2 illustrates a schematic diagram of retrieving a parsed data file in accordance with one embodiment of the present invention.
Detailed Description
In order to make the technical solutions and advantages of the present invention clearer, the following will describe the embodiments of the present invention in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a scenario architecture of a method for recording a data file in an embodiment of the present invention, including a processor and a storage terminal.
When data recording is carried out, data received by a processor is transmitted in the form of a plurality of data frames, and when the processor receives a frame of data, the processor records the data in a data file and synchronously records the frame length information of the data in a frame length information file; after the recording is finished, a recording data file and a corresponding frame length information file are generated, and the data file and the frame length information file are named as two files with the same name but different suffixes; the file name includes time information of the file, and thus the same name phenomenon does not occur. For example:
the processor records data A at twenty-three points of fifty-one month, fifty-five days and twenty-four days in 2020, and the file name of the data file is as follows: "a 202011051320. sql", the file name of the frame length information of the data file is: "A202011051320. txt". The file name suffix in this embodiment is only one of the actual use manners.
Fig. 2 is a scenario architecture of a method for retrieving a decomposed data file in an embodiment of the present invention, including a processor and a storage terminal.
When the data retrieval and decomposition are carried out, the processor receives and sends a data extraction instruction, receives a data file and a corresponding frame length information file from the memory, retrieves and decomposes the data file according to each frame length information in the frame length information file and sends the decomposed data file to the storage end, wherein,
the data file and the frame length information file are two files with the same name but different suffixes.
It should be understood that the above-mentioned embodiments of the present invention are only examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention, and it will be obvious to those skilled in the art that other variations or modifications may be made on the basis of the above description, and all embodiments may not be exhaustive, and all obvious variations or modifications may be included within the scope of the present invention.
Claims (10)
1. A method of recording a data file, comprising
The processor records the data into a data file and generates a corresponding frame length information file when receiving a frame of data;
and the processor sends the data file and the frame length information file to a storage end so that the storage end correspondingly stores the data file and the frame length information file.
2. The method of claim 1,
the frame length information file is used for storing the frame length information of the data.
3. The method of claim 1,
the frame length information file and the data file have the same file name and different suffixes.
4. A method of recording a data file, comprising:
and the storage end receives and stores a data file and a corresponding frame length information file which are generated by the processor according to each frame of data, wherein the frame length information file is used for storing the frame length information of the data file.
5. A method of retrieving a parsed data file, the method comprising:
the processor receives and simultaneously opens a data file and a corresponding frame length information file sent by a storage end, and retrieves and decomposes the data file according to each frame length information in the frame length information file;
the frame length information file is used for storing the frame length information of the data.
6. The method of claim 5,
the frame length information file and the data file have the same file name and different suffixes.
7. A method of retrieving a parsed data file,
and the storage end sends the data file and the corresponding frame length information file to a processor so that the processor retrieves and decomposes the data file according to the frame length data in the frame length information file.
8. The method of claim 7,
the frame length information file and the data file have the same file name and different suffixes.
9. A processor, comprising:
the data processing module is used for receiving data, recording the frame length information of the data into a frame length information file when a data file is received every time a frame of data is received;
and the data sending module is used for sending the frame length information file and the data file to a storage end.
10. A storage terminal is characterized by comprising
The storage unit is used for storing data files and corresponding frame length information files.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011236479.0A CN112380165A (en) | 2020-11-09 | 2020-11-09 | Method for searching recorded data file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011236479.0A CN112380165A (en) | 2020-11-09 | 2020-11-09 | Method for searching recorded data file |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112380165A true CN112380165A (en) | 2021-02-19 |
Family
ID=74578595
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011236479.0A Pending CN112380165A (en) | 2020-11-09 | 2020-11-09 | Method for searching recorded data file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112380165A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103702053A (en) * | 2014-01-16 | 2014-04-02 | 深圳英飞拓科技股份有限公司 | Video storage and search method and system as well as monitoring system |
CN103761056A (en) * | 2014-01-17 | 2014-04-30 | 浪潮电子信息产业股份有限公司 | Stream data storage method in video monitoring application |
CN104661086A (en) * | 2013-11-25 | 2015-05-27 | 乐视网信息技术(北京)股份有限公司 | Encoding method and device of media stream |
CN107979621A (en) * | 2016-10-24 | 2018-05-01 | 杭州海康威视数字技术股份有限公司 | A kind of storage of video file, positioning playing method and device |
-
2020
- 2020-11-09 CN CN202011236479.0A patent/CN112380165A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104661086A (en) * | 2013-11-25 | 2015-05-27 | 乐视网信息技术(北京)股份有限公司 | Encoding method and device of media stream |
CN103702053A (en) * | 2014-01-16 | 2014-04-02 | 深圳英飞拓科技股份有限公司 | Video storage and search method and system as well as monitoring system |
CN103761056A (en) * | 2014-01-17 | 2014-04-30 | 浪潮电子信息产业股份有限公司 | Stream data storage method in video monitoring application |
CN107979621A (en) * | 2016-10-24 | 2018-05-01 | 杭州海康威视数字技术股份有限公司 | A kind of storage of video file, positioning playing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5572578A (en) | Exchange of information between interconnected voice mail systems | |
CN100449543C (en) | Method and apparatus for holding journal | |
CN112000741B (en) | Internal and external network data exchange system, method, device, computer equipment and medium | |
CN109885577B (en) | Data processing method, device, terminal and storage medium | |
CN101426052A (en) | Backup and importing method for address book and short message of mobile terminal | |
CN107590162A (en) | The storage method and device of journal file | |
CN104580310A (en) | Log processing method and server | |
CN106503008A (en) | File memory method and device and file polling method and apparatus | |
CN108924258A (en) | Background information method for pushing, device, computer equipment and storage medium | |
CN108958969B (en) | Database disaster recovery method, device and disaster recovery and backup systems | |
CN112583918A (en) | Intranet and extranet document interaction system, method and storage medium | |
US6898599B2 (en) | Method and system for automated web reports | |
CN112380165A (en) | Method for searching recorded data file | |
KR100680034B1 (en) | Context cognizance enhancing message transform system, and method for the same | |
CN103778231A (en) | Method and system for managing operation record information, of databank | |
CN110334064A (en) | A kind of processing method and relevant apparatus of journal file | |
CN114840497A (en) | Method, system and device for preprocessing row migration of database and storage medium | |
CN112447280A (en) | Intelligent medical system for medical image information management | |
US9069751B1 (en) | Systems and methods for managing document pedigrees | |
CN118398151B (en) | Electronic medical record management system based on cloud storage | |
CN115733833B (en) | File downloading method and device, computer equipment and storage medium | |
CN115730016B (en) | Data synchronization method, system, device, computer equipment and storage medium | |
CN110413583B (en) | Log monitoring method and device based on FLUME system and server | |
CN106897465A (en) | A kind of document audit method and system | |
CN115033214A (en) | Data import method and device, computer equipment and storage medium |
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 |