CN112380165A - Method for searching recorded data file - Google Patents

Method for searching recorded data file Download PDF

Info

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
Application number
CN202011236479.0A
Other languages
Chinese (zh)
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.)
Beijing Institute of Electronic System Engineering
Original Assignee
Beijing Institute of Electronic System Engineering
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 Beijing Institute of Electronic System Engineering filed Critical Beijing Institute of Electronic System Engineering
Priority to CN202011236479.0A priority Critical patent/CN112380165A/en
Publication of CN112380165A publication Critical patent/CN112380165A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/113Details of archiving
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, 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

本发明公开了一种检索记录数据文件的方法,包括,记录数据时,处理器每接收到一帧数据,将所述数据记录到数据文件并生成对应的帧长信息文件;所述处理器将所述数据文件和所述帧长信息文件发送至存储端以使得所述存储端将所述数据文件和所述帧长信息文件对应存储。处理器每接收到一帧数据,将所述数据记录到数据文件并生成对应的帧长信息文件;在检索数据时,所述处理器将所述数据文件和所述帧长信息文件发送至存储端以使得所述存储端将所述数据文件和所述帧长信息文件对应存储。

Figure 202011236479

The invention discloses a method for retrieving recorded data files, comprising: when recording data, each time a processor receives a frame of data, recording the data into a data file and generating a corresponding frame length information file; The data file and the frame length information file are sent to the storage end, so that the storage end stores the data file and the frame length information file correspondingly. Each time the processor receives a frame of data, the data is recorded in a data file and a corresponding frame length information file is generated; when retrieving data, the processor sends the data file and the frame length information file to the storage end so that the storage end stores the data file and the frame length information file correspondingly.

Figure 202011236479

Description

Method for searching recorded data file
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.
CN202011236479.0A 2020-11-09 2020-11-09 Method for searching recorded data file Pending CN112380165A (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
CN110188096B (en) Index creating method, device and equipment for data record
CN109542889B (en) Stream data column storage method, device, equipment and storage medium
CN110162662B (en) Verification method, device and equipment for data records in block chain type account book
CN110162526B (en) Method, device and equipment for inquiring data records in block chain type account book
CN112000741A (en) Intranet and extranet data exchange system, method, device, computer equipment and medium
CN110825737A (en) Index creation and data query method, device and equipment
CN110347674A (en) A kind of index creation method, device and equipment based on service identification
CN105373541A (en) Processing method and system for data operation request of database
CN113535720A (en) Index creating method, device and equipment in block chain type account book
WO2018006721A1 (en) Method and apparatus for storing log file
CN104580310A (en) Log processing method and server
CN112036161A (en) Requirement document processing method, device, equipment and storage medium
CN111526181B (en) Data request processing method and system and computing device
CN113806373B (en) Data processing method, device, electronic equipment and storage medium
US20030084062A1 (en) Method and system for automated web reports
CN112380165A (en) Method for searching recorded data file
CN110502549A (en) User data processing method, device, computer equipment and storage medium
WO2019134238A1 (en) Method for executing auxiliary function, device, storage medium, and terminal
CN109325221A (en) The merging method and device of form document
CN110636042B (en) Method, device and equipment for updating verified block height of server
KR100680034B1 (en) Context-Aware Enhanced Message Conversion System and Method
CN111026764B (en) Data storage method and device, electronic product and storage medium
CN114189530A (en) Resource cooperation method and system based on Internet
CN110347748B (en) Data verification method, system, device and equipment based on inverted index
CN111444194A (en) Method, device and equipment for clearing indexes in block chain type account book

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210219