CN107733709A - Date storage method, device and electronic equipment - Google Patents
Date storage method, device and electronic equipment Download PDFInfo
- Publication number
- CN107733709A CN107733709A CN201710961691.5A CN201710961691A CN107733709A CN 107733709 A CN107733709 A CN 107733709A CN 201710961691 A CN201710961691 A CN 201710961691A CN 107733709 A CN107733709 A CN 107733709A
- Authority
- CN
- China
- Prior art keywords
- data
- stored
- daily record
- checked
- type
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/069—Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
-
- 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/1734—Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
-
- 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/18—File system types
- G06F16/1805—Append-only file systems, e.g. using logs or journals to store data
- G06F16/1815—Journaling file systems
Abstract
The present invention is on a kind of date storage method, device and electronic equipment, belongs to areas of information technology.Methods described includes:When receiving daily record to be stored, the data structure of daily record to be stored is determined, data structure includes at least one data field in daily record to be stored;According to data structure, daily record to be stored is divided into the data of at least one type;The data of daily record to be stored are stored according at least one type.Data structure of the invention by determining daily record to be stored, data field in the daily record to be stored included according to data structure, daily record to be stored is divided into the data of multiple types, and the data of daily record to be stored are stored according to multiple types, so that while being stored to daily record to be stored, also by the data structure storage of daily record to be stored, data structure is avoided to lose, daily record can also be gone out according to data convert, solve the problems, such as common portion data redundancy in server, reduce the memory space of daily record to be stored.
Description
Technical field
The present invention relates to areas of information technology, more particularly to a kind of date storage method, device and electronic equipment.
Background technology
With the rapid development of information technology, the service that internet can provide the user is more and more.For different
For website, in order to each user provide targetedly service, the server that website is relied on would generally according to such as with
The log-on data at family, daily record of the data such as data, the historical data generation on user is browsed, daily record is stored, and when inspection
When measuring the login of different user, the daily record of the different user of storage can be obtained, service is provided the user according to daily record.
In correlation technique, daily record is usually expressed as the nested tree form data structure of irregular deep layer, the number of multiple dimensions
According to being incorporated into this tree form data structure, namely the data structure of daily record is nested data structure.In nested data structure
In, each leaf node is one data word section, and the value of data field can be monodrome or multivalue;Each minor matters point is a number
According to group, data group can be repetition or non-repetitive, and non-duplicate data group can include the leaf node of the different fixed qty of structure, weight
Complex data group can include the leaf node of structure identical on-fixed quantity.
During the present invention is realized, inventor has found that correlation technique at least has problems with:
Daily record can completely be parsed, resolved to a plurality of flat when storing the daily record of nested data structure by server
Change data, by a plurality of flattening data storage.Due to identical common portion data in a plurality of flattening data be present, and parse
A plurality of flattening data afterwards can lose the nested data structure of daily record, can not restore as daily record, cause the public affairs in server
Partial data redundancy altogether, takes substantial amounts of memory space.
The content of the invention
To overcome the nested number that a plurality of flattening loss of data daily record obtained after daily record is parsed present in correlation technique
According to structure, it can not restore as daily record, cause the common portion data redundancy in server, take asking for substantial amounts of memory space
Topic, the present invention provide a kind of date storage method, device and electronic equipment.
First aspect according to embodiments of the present invention, there is provided a kind of date storage method, methods described include:
When receiving daily record to be stored, the data structure of the daily record to be stored is determined, the data structure includes institute
State at least one data field in daily record to be stored;
According to the data structure, the daily record to be stored is divided into the data of at least one type;
The data of the daily record to be stored are stored according at least one type.
In another embodiment, it is described according to the data structure, the daily record to be stored is divided at least one
The data of type include:
For each data field at least one data field, the number is determined in the daily record to be stored
According to multiple values of field;
The data for the type that data corresponding to the multiple value are indicated as the data field.
In another embodiment, the data by the daily record to be stored carry out storage bag according at least one type
Include:
For each type at least one type, multiple values that the type includes are determined;
Determine multiple position datas of the multiple value in the daily record to be stored respectively, by the multiple value with
The multiple position data is correspondingly stored.
In another embodiment, methods described also includes:
When receiving data inquiry request, the data structure to be checked in the data inquiry request is obtained, it is described to treat
Inquire about type and value that data structure comprises at least data to be checked;
According to the data structure to be checked, the data to be checked are obtained.
In another embodiment, described according to the data structure to be checked, obtaining the data to be checked includes:
At least one value to be checked is obtained in the type that the data structure to be checked carries;
Determine to specify value in the value to be checked, obtain specified location data corresponding to the specified value, institute
It is consistent with the value in the data structure to be checked to state specified value;
Type, the specified value and the specified location data carried based on the data structure to be checked, it is raw
Into the data to be checked.
Second aspect according to embodiments of the present invention, there is provided a kind of data storage device, described device include:
Determining module, for when receiving daily record to be stored, determining the data structure of the daily record to be stored, the number
Include at least one data field in the daily record to be stored according to structure;
Division module, for the daily record to be stored according to the data structure, to be divided into the number of at least one type
According to;
Memory module, for the data of the daily record to be stored to be stored according at least one type.
In another embodiment, the division module includes:
Determination sub-module, for for each data field at least one data field, described to be stored
Multiple values of the data field are determined in daily record;
Submodule is divided, for the number for the type for indicating data corresponding to the multiple value as the data field
According to.
In another embodiment, the memory module includes:
Determination sub-module, for for each type at least one type, determining that the type includes
Multiple values;
Sub-module stored, for determining multiple position datas of the multiple value in the daily record to be stored respectively,
Stored the multiple value is corresponding with the multiple position data.
In another embodiment, described device also includes:
Structure acquisition module, it is to be checked in the data inquiry request for when receiving data inquiry request, obtaining
Data structure is ask, the data structure to be checked comprises at least the type and value of data to be checked;
Data acquisition module, for according to the data structure to be checked, obtaining the data to be checked.
In another embodiment, the data acquisition module includes:
First acquisition submodule, it is at least one to be checked for being obtained in the type of the data structure carrying to be checked
Value;
Second acquisition submodule, for determining to specify value in the value to be checked, obtain the specified value pair
The specified location data answered, the specified value are consistent with the value in the data structure to be checked;
Submodule is generated, for type, the specified value and described carried based on the data structure to be checked
Specified location data, generate the data to be checked.
The third aspect according to embodiments of the present invention, there is provided a kind of electronic equipment, including above-mentioned data storage device.
Fourth aspect according to embodiments of the present invention, there is provided a kind of electronic equipment, including:Memory, it can be held for storing
Row instruction;And processor, for performing the executable instruction with the memory communication so as to completing above-mentioned data
The operation of storage method.
The technical scheme that embodiments of the invention provide can include the following benefits:
When receiving daily record to be stored, the data structure of daily record to be stored is determined, waits to deposit according to what data structure included
At least one data field in daily record is stored up, daily record to be stored is divided into the data of at least one type, and by day to be stored
The data of will are stored according at least one type so that, also will be to be stored while being stored to daily record to be stored
The data structure storage of daily record, the data structure of daily record to be stored is avoided to lose, can be according to the data in daily record to be stored also
Original goes out daily record to be stored, solves the problems, such as common portion data redundancy in server, and the storage for reducing daily record to be stored is empty
Between.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention
Example, and for explaining principle of the invention together with specification.
Fig. 1 is a kind of flow chart of date storage method according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of date storage method according to an exemplary embodiment;
Fig. 3 A are a kind of block diagrams of data storage device according to an exemplary embodiment;
Fig. 3 B are a kind of block diagrams of data storage device according to an exemplary embodiment;
Fig. 3 C are a kind of block diagrams of data storage device according to an exemplary embodiment;
Fig. 3 D are a kind of block diagrams of data storage device according to an exemplary embodiment;
Fig. 3 E are a kind of block diagrams of data storage device according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of data storage device 400 according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is a kind of flow chart of date storage method according to an exemplary embodiment, as shown in figure 1, the party
Method comprises the following steps.
In a step 101, when receiving daily record to be stored, the data structure of daily record to be stored, data structure bag are determined
Include at least one data field in daily record to be stored.
In a step 102, according to data structure, daily record to be stored is divided into the data of at least one type.
In step 103, the data of daily record to be stored are stored according at least one type.
Method provided in an embodiment of the present invention, when receiving daily record to be stored, the data structure of daily record to be stored is determined,
At least one data field in the daily record to be stored included according to data structure, daily record to be stored is divided at least one class
The data of type, and the data of daily record to be stored are stored according at least one type so that carried out to daily record to be stored
While storage, also by the data structure storage of daily record to be stored, the data structure of daily record to be stored is avoided to lose, can basis
Data convert in daily record to be stored goes out daily record to be stored, solves the problems, such as common portion data redundancy in server, reduces
The memory space of daily record to be stored.
In another embodiment, according to data structure, daily record to be stored is divided into the packet of at least one type
Include:
For each data field at least one data field, the multiple of data field are determined in daily record to be stored
Value;
The data for the type that data corresponding to multiple values are indicated as data field.
In another embodiment, the data of daily record to be stored are carried out into storage according at least one type includes:
For each type at least one type, multiple values that type includes are determined;
Determine multiple position datas of the multiple value in the daily record to be stored respectively, by the multiple value with
The multiple position data is correspondingly stored.
In another embodiment, method also includes:
When receiving data inquiry request, the data structure to be checked in data inquiry request, data to be checked are obtained
Structure comprises at least the type and value of data to be checked;
According to data structure to be checked, data to be checked are obtained.
In another embodiment, according to data structure to be checked, obtaining data to be checked includes:
At least one value to be checked is obtained in the type that data structure to be checked carries;
Determine to specify value in the value to be checked, obtain specified location data corresponding to the specified value, institute
It is consistent with the value in the data structure to be checked to state specified value;
Type, the specified value and the specified location data carried based on the data structure to be checked, it is raw
Into the data to be checked.
Above-mentioned all optional technical schemes, any combination can be used to form the alternative embodiment of the present invention, herein no longer
Repeat one by one.
Fig. 2 is a kind of flow chart of date storage method according to an exemplary embodiment, as shown in Fig. 2 the party
Method comprises the following steps.
In step 201, when receiving daily record to be stored, the data structure of daily record to be stored, data structure bag are determined
Include at least one data field in daily record to be stored.
In embodiments of the present invention, daily record to be stored is respectively provided with data structure, and data structure is complicated, the day to be stored having
Will can have several Rotating fields so that can include a plurality of different data in a daily record to be stored.Data structure is generally by treating
The data field that storage daily record includes embodies.For daily record to be stored, wherein a plurality of different data may be included, this
The data field of some data is probably identical in a little data, is only deposited in the value of data field and the position data of value
In difference.For example, data that daily record to be stored includes are set as DocID:10、DocID:20 and Name URL:‘http://
A ', the then data field that the daily record to be stored includes are DocID and Name URL, namely the data structure of daily record to be stored is
DocID and Name URL, wherein, the value of DocID fields is 10 and the value of 20, Name url field is ' http://A’.
It was recognized by the inventor that for each daily record to be stored, its data structure is fixed, namely day to be stored
The number for the data field that data structure in will includes be it is changeless, therefore, can be first when storing daily record to be stored
The data structure of daily record to be stored is first determined, and in the data field subsequently in data structure to the number in daily record to be stored
According to being classified so that while daily record to be stored is stored, also the data structure by daily record to be stored is stored.
In step 202, for each data field at least one data field, number is determined in daily record to be stored
According to multiple values of field, the data for the type that data corresponding to multiple values are indicated as data field.
In embodiments of the present invention, daily record to be stored includes more datas, and data field is there may be in these data
The consistent data only being had differences in the position data of value and value, so, can with according to data field to be stored
Data in daily record are classified, using data field identical data as same type of data.
For example, data that daily record to be stored includes are set as DocID:10、DocID:20、Name URL:‘http://A’、
Name URL:‘http://B ' and Links Forward:80, then it can determine the data field that daily record to be stored includes
For DocID, Name URL and Links Forward, daily record to be stored can be divided into three types, the first type is
DocID, the type include data DocID:10 and data DocID:20;Second of type is Name URL, in this type
Including data Name URL:‘http://A ' and data Name URL:‘http://B’;The third type is Links
Forward, this type include data Links Forward:80.
In step 203, for each type at least one type, multiple values that type includes are determined,
Multiple position datas of multiple values in the daily record to be stored are determined respectively, multiple values are corresponding with multiple position datas
Stored.
In embodiments of the present invention, for each type, wherein multiple values may be included, and each value is in day
Position in will is different, in order that daily record subsequently can be reduced according to the type and value of data, it is thus necessary to determine that taking
It is worth position data in daily record, and stored value is corresponding with position data.Wherein, by value and position data pair
When should be stored, it can be data list of each type generation as shown in table 1, the type is recorded in the data list
In position data of each value in daily record.
Table 1
In table 1, Name URL are type, and Value is value, Repetition Level and Defination Level
For indicating position of the corresponding value in daily record.Wherein, Defination Level are used to represent value in daily record
In depth, because daily record is the nested tree form data structure of irregular deep layer, the root of tree form data structure is message,
Message includes multiple fields, namely multiple types, has multiple values on field, records multiple values at this
Definition Level of the depth as the value on field on field.Repetition Level are used to record
Value on field is repeated in which depth, and the value only repeated can just have Repetition
Level.For the value not repeated, its Repetition Level may be configured as 0.
It should be noted that above-mentioned steps 201 to the process described in step 203, which is server, is receiving day to be stored
During will, the process that is stored to daily record to be stored.And during practical application, user may be needed to being deposited in server
Certain a data in the daily record of storage is inquired about, and at this moment, user will issue data inquiry request by terminal to server,
, can be to perform following step 204 to step 205 when server receives data inquiry request;If server does not receive
Data inquiry request, then following step 204 need not be performed to step 205.
In step 204, when receiving data inquiry request, the data knot to be checked in data inquiry request is obtained
Structure, data structure to be checked comprise at least the type and value of data to be checked.
In embodiments of the present invention, user can input the data structure of data to be checked in terminal, be generated by terminal
The data inquiry request of the data structure of the data to be checked is carried, and the data inquiry request is sent to server.Wherein,
Terminal can provide data query entrance, and when detecting that user triggers the data query entrance, reality is to be checked for inputting
The input frame of data structure, input frame can be divided into type input frame and value input frame.When terminal detects that user completes input
During input in frame, type and value in input frame are obtained, using the type and value as data structure to be checked, and is generated
The data inquiry request of the data structure to be checked is carried, the data inquiry request is sent to server.For example, user is defeated
It can be DocID to enter the type inputted in frame, and value can be 10, and so, the data that terminal will generate carrying DocID and 10 are looked into
Ask request.It should be noted that the type for being used to input data to be checked that terminal provides can be for one with the input frame of value
Input frame, or two different input frames, the present invention are limited without specific this.
When server receives the data inquiry request of terminal transmission, data to be checked are extracted in data inquiry request
Structure, so that the type subsequently based on the data to be checked in data structure to be checked and value determine data to be checked.
It should be noted that because the daily record stored in server may be multiple, and phase may be stored in multiple daily records
Same data field, therefore, terminal can also add daily record mark when generating data inquiry request in data inquiry request
Know, so that server is after data inquiry request is received, can be inquired about in the daily record that daily record identifies instruction, without again
Inquired about one by one, save substantial amounts of workload.
In step 205, at least one value to be checked is obtained in the type that data structure to be checked carries, to be checked
Ask and determine to specify value in value, obtain and specify specified location data corresponding to value, specify value and data structure to be checked
In value it is consistent.
In embodiments of the present invention, after the type and value of data to be checked is got, first in daily record determine with
The consistent data field of the types of data to be checked, namely determine in daily record the type of data to be checked;Then, then at such
Data to be checked corresponding to the value of data structure are determined in type.Due to when storing daily record, each data field in daily record
One or more value may be corresponded to, therefore, it is determined that after the data field of data to be checked, obtains the data field
Data list, the specified value consistent with the value carried in data inquiry request is inquired about in data list, this is specified and taken
Position data corresponding to value is as specified location data, subsequently to determine data to be checked in daily record according to the position data
In position, and then data to be checked are reduced.Name URL and http are carried in data inquiry request for example, setting: //
A, and data field Name URL correspond to data list as shown in table 1, then according to value http:What //A was determined in table 1
Specified location data are Repetition Level:0, Defination Level:2.
It should be noted that when the value that is carried based on data inquiry request inquires about data list, can in order according to
The value that the secondary value by data list carries with data inquiry request is compared, due in a type, each
The value of data is unique, therefore, when a certain value in data list is consistent with the value that data inquiry request carries
When, then directly the value can be defined as specifying value, without whole values of the example in data list.Wherein, the present invention is right
Value in data list is limited with the mode that the value that data inquiry request carries is compared without specific.
In step 206, type, specified value and the specified location data carried based on data structure to be checked, it is raw
Into data to be checked.
In embodiments of the present invention, due to got in step 205 data to be checked type, specify value and
Specified location data, therefore, it can be restored according to the type of data to be checked, specified value and specified location data to be checked
Form of the data script in daily record.Wherein, when generating data to be checked, such as Striping/Assembly can be used
Algorithm, the embodiment of the present invention are limited without specific the algorithm for generating data to be checked.
After data to be checked are got, the data to be checked can be back to the end for sending data inquiry request
End, by terminal by the data display to be checked to user.
Method provided in an embodiment of the present invention, when receiving daily record to be stored, the data structure of daily record to be stored is determined,
At least one data field in the daily record to be stored included according to data structure, daily record to be stored is divided at least one class
The data of type, and the data of daily record to be stored are stored according at least one type so that carried out to daily record to be stored
While storage, also by the data structure storage of daily record to be stored, the data structure of daily record to be stored is avoided to lose, can basis
Data convert in daily record to be stored goes out daily record to be stored, solves the problems, such as common portion data redundancy in server, reduces
The memory space of daily record to be stored.
Fig. 3 A are a kind of block diagrams of data storage device according to an exemplary embodiment.Reference picture 3A, the device
Including determining module 301, division module 302 and memory module 303.
The determining module 301, for when receiving daily record to be stored, determining the data structure of daily record to be stored, data
Structure includes at least one data field in daily record to be stored;
The division module 302, for daily record to be stored according to data structure, to be divided into the data of at least one type;
The memory module 303, for the data of daily record to be stored to be stored according at least one type.
Device provided in an embodiment of the present invention, when receiving daily record to be stored, the data structure of daily record to be stored is determined,
At least one data field in the daily record to be stored included according to data structure, daily record to be stored is divided at least one class
The data of type, and the data of daily record to be stored are stored according at least one type so that carried out to daily record to be stored
While storage, also by the data structure storage of daily record to be stored, the data structure of daily record to be stored is avoided to lose, can basis
Data convert in daily record to be stored goes out daily record to be stored, solves the problems, such as common portion data redundancy in server, reduces
The memory space of daily record to be stored.
In another embodiment, referring to Fig. 3 B, the division module 302, including determination sub-module 3021 and division submodule
Block 3022.
The determination sub-module 3021, for for each data field at least one data field, in day to be stored
Multiple values of data field are determined in will;
The division submodule 3022, for the number for the type for indicating data corresponding to multiple values as data field
According to.
In another embodiment, referring to Fig. 3 C, the memory module 303, including determination sub-module 3031 and storage submodule
Block 3032.
The determination sub-module 3031, for for each type at least one type, determining what type included
Multiple values;
The sub-module stored 3032, will for determining multiple position datas of multiple values in daily record to be stored respectively
Multiple values are corresponding with multiple position datas to be stored.
In another embodiment, structure acquisition module 304 and data acquisition module are also included referring to Fig. 3 D, the device
305。
The structure acquisition module 304, it is to be checked in data inquiry request for when receiving data inquiry request, obtaining
Data structure is ask, data structure to be checked comprises at least the type and value of data to be checked;
The data acquisition module 305, for according to data structure to be checked, obtaining data to be checked.
In another embodiment, referring to Fig. 3 E, the data acquisition module 305, including the first acquisition submodule 3051,
Two acquisition submodules 3052 and generation submodule 3053.
First acquisition submodule 3051, it is at least one to be checked for being obtained in the type that is carried in data structure to be checked
Ask value;
Second acquisition submodule 3052, for determining to specify value in value to be checked, obtain and specify value corresponding
Specified location data, specify value it is consistent with the value in data structure to be checked;
The generation submodule 3053, for the type, specified value and specific bit carried based on data structure to be checked
Data are put, generate data to be checked.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 4 is a kind of block diagram of the device 400 of data storage according to an exemplary embodiment.For example, device 400
It may be provided in a server.Reference picture 4, device 400 include processing component 422, and it further comprises one or more places
Device is managed, and as the memory resource representated by memory 432, can be by the instruction of the execution of processing component 422, example for storing
Such as application program.The application program stored in memory 432 can include it is one or more each correspond to one group
The module of instruction.In addition, processing component 422 is configured as execute instruction, to perform above-mentioned date storage method.
Device 400 can also include the power management that a power supply module 426 is configured as performs device 400, and one has
Line or radio network interface 450 are configured as device 400 being connected to network, and input and output (I/O) interface 458.Dress
Putting 400 can operate based on the operating system for being stored in memory 432, such as WindowsServerTM, MacOSXTM, UnixTM,
LinuxTM, FreeBSDTMIt is or similar.
The embodiment of the present invention also includes a kind of electronic equipment, including above-mentioned data storage device;Also include:Memory,
For storing executable instruction;And processor, for performing the executable instruction with the memory communication so as to complete
Into the operation of above-mentioned date storage method.
A1, a kind of date storage method, it is characterised in that methods described includes:
When receiving daily record to be stored, the data structure of the daily record to be stored is determined, the data structure includes institute
State at least one data field in daily record to be stored;
According to the data structure, the daily record to be stored is divided into the data of at least one type;
The data of the daily record to be stored are stored according at least one type.
A2, the method according to claim 11, it is characterised in that it is described according to the data structure, wait to deposit by described
The data that storage daily record is divided at least one type include:
For each data field at least one data field, the number is determined in the daily record to be stored
According to multiple values of field;
The data for the type that data corresponding to the multiple value are indicated as the data field.
A3, the method according to claim 11, it is characterised in that the data by the daily record to be stored according to
At least one type, which carries out storage, to be included:
For each type at least one type, multiple values that the type includes are determined;
Determine multiple position datas of the multiple value in the daily record to be stored respectively, by the multiple value with
The multiple position data is correspondingly stored.
A4, the method according to claim 11, it is characterised in that methods described also includes:
When receiving data inquiry request, the data structure to be checked in the data inquiry request is obtained, it is described to treat
Inquire about type and value that data structure comprises at least data to be checked;
According to the data structure to be checked, the data to be checked are obtained.
A5, the method according to claim 11, it is characterised in that it is described according to the data structure to be checked, obtain
The data to be checked include:
At least one value to be checked is obtained in the type that the data structure to be checked carries;
Determine to specify value in the value to be checked, obtain specified location data corresponding to the specified value, institute
It is consistent with the value in the data structure to be checked to state specified value;
Type, the specified value and the specified location data carried based on the data structure to be checked, it is raw
Into the data to be checked.
A6, a kind of data storage device, it is characterised in that described device includes:
Determining module, for when receiving daily record to be stored, determining the data structure of the daily record to be stored, the number
Include at least one data field in the daily record to be stored according to structure;
Division module, for the daily record to be stored according to the data structure, to be divided into the number of at least one type
According to;
Memory module, for the data of the daily record to be stored to be stored according at least one type.
A7, device according to claim 6, it is characterised in that the division module includes:
Determination sub-module, for for each data field at least one data field, described to be stored
Multiple values of the data field are determined in daily record;
Submodule is divided, for the number for the type for indicating data corresponding to the multiple value as the data field
According to.
A8, device according to claim 6, it is characterised in that the memory module includes:
Determination sub-module, for for each type at least one type, determining that the type includes
Multiple values;
Sub-module stored, for determining multiple position datas of the multiple value in the daily record to be stored respectively,
Stored the multiple value is corresponding with the multiple position data.
A9, device according to claim 6, it is characterised in that described device also includes:
Structure acquisition module, it is to be checked in the data inquiry request for when receiving data inquiry request, obtaining
Data structure is ask, the data structure to be checked comprises at least the type and value of data to be checked;
Data acquisition module, for according to the data structure to be checked, obtaining the data to be checked.
A10, device according to claim 9, it is characterised in that the data acquisition module includes:
First acquisition submodule, it is at least one to be checked for being obtained in the type of the data structure carrying to be checked
Value;
Second acquisition submodule, for determining to specify value in the value to be checked, obtain the specified value pair
The specified location data answered, the specified value are consistent with the value in the data structure to be checked;
Submodule is generated, for type, the specified value and described carried based on the data structure to be checked
Specified location data, generate the data to be checked.
A11, a kind of electronic equipment, it is characterised in that including the data storage dress described in claim 6 to 10 any one
Put.
A12, a kind of electronic equipment, it is characterised in that including:Memory, for storing executable instruction;
And processor, for performing the executable instruction with the memory communication so as to completing claim 1
To the operation of the date storage method described in 5 any one.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein
Its embodiment.The application be intended to the present invention any modification, purposes or adaptations, these modifications, purposes or
Person's adaptations follow the general principle of the present invention and including the undocumented common knowledges in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim.
Claims (10)
1. a kind of date storage method, it is characterised in that methods described includes:
When receiving daily record to be stored, the data structure of the daily record to be stored is determined, the data structure includes described treat
Store at least one data field in daily record;
According to the data structure, the daily record to be stored is divided into the data of at least one type;
The data of the daily record to be stored are stored according at least one type.
2. according to the method for claim 1, it is characterised in that it is described according to the data structure, by the day to be stored
The data that will is divided at least one type include:
For each data field at least one data field, the data word is determined in the daily record to be stored
Multiple values of section;
The data for the type that data corresponding to the multiple value are indicated as the data field.
3. according to the method for claim 1, it is characterised in that the data by the daily record to be stored are according at least one
Individual type, which carries out storage, to be included:
For each type at least one type, multiple values that the type includes are determined;
Determine multiple position datas of the multiple value in the daily record to be stored respectively, by the multiple value with it is described
Multiple position datas are correspondingly stored.
4. according to the method for claim 1, it is characterised in that methods described also includes:
When receiving data inquiry request, the data structure to be checked in the data inquiry request is obtained, it is described to be checked
Data structure comprises at least the type and value of data to be checked;
According to the data structure to be checked, the data to be checked are obtained.
5. according to the method for claim 4, it is characterised in that it is described according to the data structure to be checked, described in acquisition
Data to be checked include:
At least one value to be checked is obtained in the type that the data structure to be checked carries;
Determine to specify value in the value to be checked, obtain specified location data corresponding to the specified value, the finger
It is consistent with the value in the data structure to be checked to determine value;
Type, the specified value and the specified location data carried based on the data structure to be checked, generate institute
State data to be checked.
6. a kind of data storage device, it is characterised in that described device includes:
Determining module, for when receiving daily record to be stored, determining the data structure of the daily record to be stored, the data knot
Structure includes at least one data field in the daily record to be stored;
Division module, for the daily record to be stored according to the data structure, to be divided into the data of at least one type;
Memory module, for the data of the daily record to be stored to be stored according at least one type.
7. device according to claim 6, it is characterised in that the division module includes:
Determination sub-module, for for each data field at least one data field, in the daily record to be stored
The middle multiple values for determining the data field;
Submodule is divided, for the data for the type for indicating data corresponding to the multiple value as the data field.
8. device according to claim 6, it is characterised in that described device also includes:
Structure acquisition module, for when receiving data inquiry request, obtaining the number to be checked in the data inquiry request
According to structure, the data structure to be checked comprises at least the type and value of data to be checked;
Data acquisition module, for according to the data structure to be checked, obtaining the data to be checked.
9. a kind of electronic equipment, it is characterised in that including the data storage device described in claim 6 to 8 any one.
10. a kind of electronic equipment, it is characterised in that including:Memory, for storing executable instruction;
And processor, for performing the executable instruction with the memory communication so as to completing claim 1 to 5 times
The operation of date storage method described in meaning one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710961691.5A CN107733709A (en) | 2017-10-17 | 2017-10-17 | Date storage method, device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710961691.5A CN107733709A (en) | 2017-10-17 | 2017-10-17 | Date storage method, device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107733709A true CN107733709A (en) | 2018-02-23 |
Family
ID=61211425
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710961691.5A Pending CN107733709A (en) | 2017-10-17 | 2017-10-17 | Date storage method, device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107733709A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110188160A (en) * | 2019-05-31 | 2019-08-30 | 联想(北京)有限公司 | Date storage method and method for reading data |
CN112463542A (en) * | 2020-12-15 | 2021-03-09 | 深圳供电局有限公司 | Log abnormity reason diagnosis method and device, computer equipment and storage medium |
WO2022000851A1 (en) * | 2020-06-28 | 2022-01-06 | 百度在线网络技术(北京)有限公司 | Data processing method and apparatus, and device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102902764A (en) * | 2012-09-25 | 2013-01-30 | 北京奇虎科技有限公司 | Method and device for log recording |
CN104731796A (en) * | 2013-12-19 | 2015-06-24 | 北京思博途信息技术有限公司 | Data storage computing method and system |
US20150220605A1 (en) * | 2014-01-31 | 2015-08-06 | Awez Syed | Intelligent data mining and processing of machine generated logs |
CN105224237A (en) * | 2014-05-26 | 2016-01-06 | 华为技术有限公司 | A kind of date storage method and device |
-
2017
- 2017-10-17 CN CN201710961691.5A patent/CN107733709A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102902764A (en) * | 2012-09-25 | 2013-01-30 | 北京奇虎科技有限公司 | Method and device for log recording |
CN104731796A (en) * | 2013-12-19 | 2015-06-24 | 北京思博途信息技术有限公司 | Data storage computing method and system |
US20150220605A1 (en) * | 2014-01-31 | 2015-08-06 | Awez Syed | Intelligent data mining and processing of machine generated logs |
CN105224237A (en) * | 2014-05-26 | 2016-01-06 | 华为技术有限公司 | A kind of date storage method and device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110188160A (en) * | 2019-05-31 | 2019-08-30 | 联想(北京)有限公司 | Date storage method and method for reading data |
CN110188160B (en) * | 2019-05-31 | 2021-10-22 | 联想(北京)有限公司 | Data storage method and data reading method |
WO2022000851A1 (en) * | 2020-06-28 | 2022-01-06 | 百度在线网络技术(北京)有限公司 | Data processing method and apparatus, and device and storage medium |
US11847161B2 (en) | 2020-06-28 | 2023-12-19 | Baidu Online Network Technology (Beijing) Co., Ltd. | Data processing method and apparatus, device, and storage medium |
CN112463542A (en) * | 2020-12-15 | 2021-03-09 | 深圳供电局有限公司 | Log abnormity reason diagnosis method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109522330B (en) | Cloud platform data processing method, device, equipment and medium based on block chain | |
US7730194B2 (en) | Enabling access to an application through a network portal | |
CN105119973B (en) | User information processing method and server | |
US20120166518A1 (en) | Providing state service for online application users | |
US11663172B2 (en) | Cascading payload replication | |
CN106911782A (en) | A kind of method for reading data and device | |
US10880366B1 (en) | Enabling stateless status checks using collector redirection | |
CN107733709A (en) | Date storage method, device and electronic equipment | |
CN107807935B (en) | Using recommended method and device | |
US7289989B2 (en) | Pattern based web services | |
US20190362442A1 (en) | System and method for prediction of email addresses of certain individuals and verification thereof | |
CN113391992A (en) | Test data generation method and device, storage medium and electronic equipment | |
CN103701844B (en) | The method and system of managing user information | |
CN107968798A (en) | A kind of network management resources label acquisition method, cache synchronization method, apparatus and system | |
CN112860810B (en) | Domain name multiple graph embedded representation method, device, electronic equipment and medium | |
CN109558420A (en) | Data query method, apparatus, electronic equipment and storage medium | |
CN106156048A (en) | Method and apparatus and communication system that short URL services are provided | |
CN117009430A (en) | Data management method, device, storage medium and electronic equipment | |
CN114896487A (en) | Method, system and medium for implementing a blockchain browser with front end interacting with blockchain | |
US11526926B2 (en) | Service data processing method and device | |
CN104572649B (en) | The processing method of the data of distributed memory system, apparatus and system | |
CN110515905A (en) | A kind of method, apparatus and server of the configuration of routing | |
US11736452B1 (en) | Secure update of dashboard properties | |
CN110889040B (en) | Method and device for pushing information | |
JPH11161603A (en) | Device and method of repeating data, information terminal device and method thereof, data communication system, and record 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180223 |
|
RJ01 | Rejection of invention patent application after publication |