CN103064832B - A kind of method and apparatus for operating multilayered structure data acquisition system - Google Patents

A kind of method and apparatus for operating multilayered structure data acquisition system Download PDF

Info

Publication number
CN103064832B
CN103064832B CN201110317095.6A CN201110317095A CN103064832B CN 103064832 B CN103064832 B CN 103064832B CN 201110317095 A CN201110317095 A CN 201110317095A CN 103064832 B CN103064832 B CN 103064832B
Authority
CN
China
Prior art keywords
data
multilayered structure
acquisition system
subset
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110317095.6A
Other languages
Chinese (zh)
Other versions
CN103064832A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201110317095.6A priority Critical patent/CN103064832B/en
Publication of CN103064832A publication Critical patent/CN103064832A/en
Application granted granted Critical
Publication of CN103064832B publication Critical patent/CN103064832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The object of the present invention is to provide a kind of method and apparatus for operating multilayered structure data acquisition system, wherein, the data operation request operated to the multilayered structure data acquisition system is obtained first, which includes the application identities for identifying application;Then according to the application identities, data subset corresponding with the application is obtained from the multilayered structure data acquisition system;Then according to the data operation request, corresponding operating is carried out to acquired data subset.Compared with prior art, the present invention is realized carries out fast operating to the data subset in multilayered structure data acquisition system, operating process complexity is reduced, and then reduce the time cost of operation, to promote user experience.

Description

A kind of method and apparatus for operating multilayered structure data acquisition system
Technical field
The present invention relates to Internet technical field more particularly to a kind of skills for operating multilayered structure data acquisition system Art.
Background technology
With the fast development of social networks, the data information amount that social network sites server is carried is also increasing.It is existing Have data of the technology for example in myspace be typical multilayered structure data, as can have under user several photograph albums, Can have under blog etc., photograph album can have several comments of the photo under several photos, photo, usually using data structure " tree " come It is stored.But certain applications in social network sites only relate to the operation to certain specific datas, using this data structure by shadow Ring the execution efficiency of the application.Such as certain application is commented for newest 10 photos of the photo P1 in the photograph album A1 under inquiry user U1 By then according to user U1, its whole child node of traversal then traverse whole child nodes of photograph album A1 to obtain photograph album A1 in " tree " To obtain photo P1, finally according to photo P1, traverses its whole child node and commented on obtaining whole photos, and therefrom obtain newest 10 photo comments.It can be seen that the query process very complicated, the time cost of inquiry is excessively high, to influence to coming from The response speed of the application request of the user reduces user experience.
Therefore, rapidly operation multilayered structure data acquisition system how is effectively realized, becomes urgently to be resolved hurrily at present and asks One of topic.
Invention content
The object of the present invention is to provide a kind of method and apparatus for operating multilayered structure data acquisition system.
According to an aspect of the invention, there is provided a kind of computer implemented for operating multilayered structure data acquisition system Method.Wherein, the multilayered structure data acquisition system includes data corresponding with a variety of applications, and with same data structure Mode is stored.Wherein, this approach includes the following steps:
A obtains the data operation request operated to the multilayered structure data acquisition system, the data operation request packet Include the application identities for identifying application;
B obtains number corresponding with the application according to the application identities from the multilayered structure data acquisition system According to subset;
C carries out corresponding operating according to the data operation request, to acquired data subset.
According to another aspect of the present invention, a kind of equipment for operating multilayered structure data acquisition system is additionally provided, In, the multilayered structure data acquisition system includes data corresponding with a variety of applications, and is carried out in a manner of same data structure Storage, wherein the equipment includes:
Acquisition request device, for obtaining the data operation request operated to the multilayered structure data acquisition system, The data operation request includes the application identities for identifying application;
Data subset acquisition device, for according to the application identities, being obtained from the multilayered structure data acquisition system Data subset corresponding with the application;
Data subset operating device, for according to the data operation request, being carried out to acquired data subset corresponding Operation.
Compared with prior art, the data of different application are distinguished by mark application identities and utilize phase by the present invention Same data structure is stored, and is obtained with the application relatively from multilayered structure data acquisition system according to the application identities The data subset answered, and corresponding operating is carried out to the data subset, to realize to the data in multilayered structure data acquisition system Subset carries out fast operating, operating process complexity is reduced, and then reduce the time cost of operation, to promote user experience.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other Feature, objects and advantages will become more apparent upon:
Fig. 1 shows the equipment schematic diagram for operating multilayered structure data acquisition system according to one aspect of the invention;
Fig. 2 shows the examples according to the present invention for obtaining data subset according to application identities and being operated to data subset Figure;
Fig. 3 shows that according to the present invention obtained according to application identities and operates data subset another data subset Exemplary plot;
Fig. 4 shows the example according to the present invention for obtaining data subset according to user identifier and being operated to data subset Figure;
Fig. 5 shows that according to the present invention obtained according to user identifier and operates data subset another data subset Exemplary plot;
Fig. 6 shows the equipment signal for operating multilayered structure data acquisition system in accordance with a preferred embodiment of the present invention Figure;
Fig. 7 show according to a further aspect of the present invention for operating multilayered structure data acquisition system method flow diagram;
Fig. 8 shows the method flow for operating multilayered structure data acquisition system according to another preferred embodiment of the present invention Figure.
Same or analogous reference numeral represents same or analogous component in attached drawing.
Specific implementation mode
Present invention is further described in detail below in conjunction with the accompanying drawings.
Fig. 1 shows the equipment schematic diagram for operating multilayered structure data acquisition system according to one aspect of the invention.Institute State multilayered structure data acquisition system be with a variety of set using corresponding data, and deposited in a manner of same data structure Storage.Wherein, operation equipment 1 includes acquisition request device 11, data subset acquisition device 12 and data subset op device 13. This, operation equipment 1 is the network equipment, including but not limited to computer, network host, single network server, multiple networks clothes The cloud that business device collection or multiple servers are constituted.Here, cloud by be based on cloud computing (Cloud Computing) a large amount of computers or Network server is constituted, wherein cloud computing is one kind of Distributed Calculation, one be made of the computer collection of a group loose couplings A super virtual computer.
Specifically, multilayered structure data acquisition system includes data corresponding with a variety of applications, and with same data structure Mode is stored, array, chained list etc..
Here, the array means the set of the homogeneous data element of arranged in sequence, included number data elements can Customization;
Here, the chained list means storage organization discontinuous, non-sequential on a kind of physical memory cell, data element Logical order is realized by the pointer link orders in chained list.
Here, the multilayered structure data acquisition system is the data acquisition system with natural or predefined hierarchical relationship; The application means a kind of use of technology, system or product, for example, in myspace, to the photograph album A1 of user U1 In photo P1 carry out comment be a photo comment application;The article 1 checked in the blog 1 of user U1 is checked for an article and is answered With.
In one example, in myspace, multilayered structure data acquisition system include in the myspace A variety of corresponding data of application, including but not limited to:Album data, blog data, microblog data of any user etc., photograph album Under picture data, the article data under blog, the photo under the speech data etc. of the microblogging under microblogging and photo comment on number According to microblogging speech comment data etc. that the article review data under, article, microblogging speech are lower;And it is corresponding with a variety of applications Data are stored with identical data structure mode.Here, the multilayered structure data acquisition system can be stored in it is following any Xiang Zhong:Memory storage, harddisk memory etc..
It is grasped as shown in Figure 1, acquisition request device 11 obtains the data operated to the multilayered structure data acquisition system It asks, which includes the application identities for identifying application.Specifically, acquisition request device 11 is obtained to more The data operation request that hiberarchy data set is operated, wherein it is described obtain data operation request method include but It is not limited to:
1) it is obtained from user equipment, for example, acquisition request device 11 obtains the number sent by user equipment from user According to operation requests;
2) it obtains from third party device, is asked for example, acquisition request device 11 obtains the data manipulation from third party device It asks;
The data operation request include but not limited to for identifying the application identities of the application corresponding to it, data manipulation is asked The type asked, such as increase, delete, modification, inquiring.
Wherein, the application identities are according to different applications, the preset mark for identifying the application.Such as in social network In network community, data operation request is comments on the photo P1 in the photograph album A1 of user U1, and the data operation request institute Corresponding application is commented on for photo, then the application identities for the preset mark photo comment that the data operation request includes are " comment of APP- photos ".
In one example, first, user equipment is clicked the photo of a good friend by detecting user and is commented in the user interface The inquiry operation of opinion obtains data operation request corresponding with the inquiry operation, and the data operation request is sent to behaviour Make equipment 1, for example, can be encapsulated as a request message, such as http request message, and by corresponding communication protocol, such as Http, https communication protocol are sent to operation equipment 1;The side that the acquisition request device 11 of operation equipment 1 passes through real time monitoring Formula receives and parses through the request message, obtains the data operation request from the user equipment, and wrapped in the data operation request Include the application identities " comment of APP- photos " for identifying photo comment application.
In another example, the API (Application Programming Interface) that acquisition request device 11 is provided according to third party device, by pre- Fixed cycle sends the request for obtaining the data operation request operated to multilayered structure data acquisition system to the third party device Message, and the photo to a user for receiving third party device return comments on the data operation request deleted, and should Data operation request includes the application identities " comment of APP- photos " for identifying photo comment application.
Those skilled in the art will be understood that the mode of above-mentioned acquisition data operation request is only for example, other it is existing or The mode for the acquisition data operation request being likely to occur from now on is such as applicable to the present invention, should also be included in the scope of the present invention Within, and be incorporated herein by reference herein.
Then, data subset acquisition device 12 is obtained according to the application identities from the multilayered structure data acquisition system Take data subset corresponding with the application.Specifically, data subset acquisition device 12 is obtained according to acquisition request device 11 Data operation request its corresponding application for including application identities, obtain from multilayered structure data acquisition system and answered with this With corresponding data subset.Wherein, the data subset means that is obtained from multilayered structure data acquisition system answers with described With corresponding data acquisition system.
In one example, when data operation request is newest 10 comments for inquiring user's every photo of U1, and multilayer Secondary structured data set is stored in a manner of array, and the data operation request that acquisition request device 11 obtains includes mark The application identities of photo comment application are " comment of APP- photos ", then data subset acquisition device 12 is according to the application identities, It is stored in the multilayered structure data acquisition system in memory storage and carries out matching inquiry, obtain opposite with photo comment application 50 data subsets answered, as shown in Fig. 2, i.e. { APP- photos comment on, P1 }, { APP- photos are commented on, P2 } ..., { APP- Photo is commented on, P50 }, those data subsets are directed toward the comment of user U1 photos P1 to photo P50, and are wrapped in those data subsets The data element contained is newest 10 comments and its relevant information that photo is directed toward with those data subsets, such as when delivering of comment Between, the access rights label information etc. of comment.
In another example, when data operation request is to be operated to newest 10 comments of the article 3 under user U1 When, and multilayered structure data acquisition system is stored in a manner of array, the data operation request that acquisition request device 11 obtains The application identities for including mark article review application are " APP- article reviews ", then according to the application identities, in memory storage Matching inquiry is carried out in multilayered structure data acquisition system in device, is obtained to comment on this article and is applied corresponding data subset, As shown in figure 3, i.e. { APP- article reviews, article 3 }, the data element which includes is newest 10 of article 3 Comment and its relevant information, such as comment deliver the time, comment access rights be arranged.
Those skilled in the art will be understood that the mode of above-mentioned acquisition data subset is only for example, other are existing or from now on The mode for the acquisition data subset being likely to occur such as is applicable to the present invention, should also be included within the scope of the present invention, and It is incorporated herein by reference herein.
Then, data subset operating device 13 carries out phase according to the data operation request to acquired data subset It should operate.Specifically, the data operation request that data subset operating device 13 is obtained according to acquisition request device 11, to data Collect the data subset acquired in acquisition device 12 and carries out corresponding operating.Wherein, the corresponding operating includes following at least any one:
1) it modifies to the data element in the data subset;
2) data element in the data subset is deleted;
3) increase data element in the data subset;
4) each data element in the data subset is provided, to be shown.
In one example, as shown in Fig. 2, when operation equipment 1 is network server, the data that acquisition request device 11 obtains Operation requests are to inquire newest 10 comments of user's U1 whole photos, and the application identities that the data operation request includes are " comment of APP- photos ";Data subset acquisition device 12 obtains 50 data subsets corresponding with the application identities, i.e. { APP- Photo is commented on, P1 }, { APP- photos comment on, P2 } ..., { APP- photos are commented on, P50 }, it includes respective data elements Element, by taking data subset { APP- photos comment on, P1 } as an example, it includes data element be:
{ C1, ' 2010-10-20 0:0:0 ', ' public ', ' title:1 ' },
{ C2, ' 2010-10-18 0:0:0 ', ' public ', ' title:2 ' },
{ C10, ' 2010-09-01 0:0:0 ', ' public ', ' title:10’};
Wherein, each data element includes following data information, with { C1, ' 2010-10-20 0:0:0 ', ' public ', ‘title:1 ' } for:
" C1 " can be the identification information for the content or comment commented on, can be in the database according to the identification information Inquiry obtains comment content corresponding thereto,
-“2010-10-20 0:0:0 " comment is shown deliver the time,
" public " is the access rights label information of the comment, and access rights label information mark is all with per family It can check the comment,
-“title:1 " means entitled the 1 of the comment;
If this, data subset operating device 13 will be with the data manipulation such as ASP dynamic page technologies by page technology It asks the comment content in those corresponding data elements that ASP dynamic pages are written, is parsed by the ASP on the network server Engine parses the content in the ASP dynamic pages, and by analysis result in a manner of arranging, such as HTML, XHTML are transmitted to use To be shown on the browser of family equipment.
In another example, as shown in figure 3, the data operation request that acquisition request device 11 obtains is to add comment extremely to use Family U1 articles 3, and the application identities that the data operation request includes are " APP- article reviews ";Data subset acquisition device 12 obtains 8 data elements corresponding to data subset corresponding with the application identities { APP- article reviews, article 3 } taken, i.e.,
{ C1, ' 2010-10-21 0:0:0 ', ' public ', ' title:1 ' },
{ C2, ' 2010-10-18 0:0:0 ', ' public ', ' title:2 ' },
{ C8, ' 2010-10-02 0:0:0 ', ' public ', ' title:8’};
Data subset operating device 13 passes through storage according to the data operation information in the data operation request of addition operation The Application Programming Interface (API) that the memory storage of multilayered structure data acquisition system is provided, the number in the memory storage It is inserted into a data element according to subset { APP- article reviews, article 3 }, which includes the comment content of this article, text Generated time stamp, access rights label information and the association attributes etc. of the comment of chapter comment, and deposited in the form of array Storage, such as { C9, ' 2010-10-25 0:0:0 ', ' public ', ' title:9’};Wherein, the association attributes include but not limited to The title of comment, status flags information of comment etc.;Wherein, the data operation information is the behaviour that data operation request includes Make specific execution content.
Here, example of the data information in data element in the example as illustration, only for understanding this hair Bright, truthful data information when not as practical application is not construed as any restrictions to present patent application protection domain.Such as nothing Illustrate, the function of the data information in the data element occurred elsewhere with it is where like, for simplicity, It repeats no more.
Those skilled in the art will be understood that the above-mentioned mode operated to data subset is only for example, other are existing Or the mode operated to data subset being likely to occur from now on is such as applicable to the present invention, should also be included in protection of the present invention Within range, and it is incorporated herein by reference herein.
Preferably, it is to hold between acquisition request device 11, data subset acquisition device 12 and data subset op device 13 It is continuous constantly to work.Specifically, acquisition request device 11, which constantly obtains, operates the multilayered structure data acquisition system Data operation request, the data operation request include for identify application application identities;Then, data subset acquisition device 12, also constantly according to the application identities, obtain number corresponding with the application from the multilayered structure data acquisition system According to subset;Then, data subset operating device 13 also continues according to the data operation request, to acquired data subset into Row corresponding operating.Here, it will be understood by those skilled in the art that " lasting ", which refers to each device, constantly carries out above-mentioned data operation request Acquisition, the acquisition of data subset and the operation of data subset, until meet predetermined stoppage condition, such as acquisition request device 11 Stop the acquisition to data operation request in a long time.
According to a preferred embodiment of the present invention (referring to Fig.1), the data operation request further includes for marking Know the user identifier of user, wherein data subset acquisition device 12 is according to the application identities and the user identifier, from described Data subset corresponding with the application of the user is obtained in multilayered structure data acquisition system.Referring to Fig. 1 to this Preferred embodiment is described in detail, wherein the multilayered structure data acquisition system is grasped in the acquisition of acquisition request device 11 The data operation request of work, the data operation request include the application identities for identifying application;Data subset operating device 13 According to the data operation request, corresponding operating is carried out to acquired data subset;Its detailed process and aforementioned institute referring to Fig.1 Acquisition request device 11 is identical with the process performed by data subset op device 13 in the embodiment of description, for simplicity, It is incorporated herein by reference, without repeating.
Specifically, the data operation request that acquisition request device 11 obtains further includes for identifying one or more users User identifier, such as in myspace, data operation request is to inquire comment and the user U2 of user's U1 whole photos The comment of whole photos, then user identifier is " U1 " and " U2 ";Wherein, data subset acquisition device 12 is according to acquisition request device The one or more that the application identities and the data operation request of 11 applications corresponding with data operation request obtained are directed toward The user identifier of user obtains data subset corresponding with the application of those users from multilayered structure data acquisition system.
In one example, as shown in figure 4, when data operation request be inquiry user U1 and user U2 every photo most When new 10 comments, the application for identifying photo comment application that the data operation request of the acquisition of acquisition request device 11 includes is marked It is " comment of APP- photos " to know, and the user identifier of user pointed by data operation request is " U1 " and " U2 ", then data subset Acquisition device 12 is according to the application identities and such user identifier, the multilayered structure data set in being stored in memory storage Matching inquiry is carried out in conjunction, is obtained corresponding data acquisition system and is applied corresponding data subset as with this.
Those skilled in the art will be understood that the identification means of above-mentioned user identifier are only for example, other are existing or from now on The identification means for the user identifier being likely to occur such as are applicable to the present invention, should also be included within the scope of the present invention, and It is incorporated herein by reference herein.Those skilled in the art should also be understood that the mode of above-mentioned acquisition data subset is only to lift Example, other modes of acquisitions data subset that are existing or being likely to occur from now on are such as applicable to the present invention, should also be included in Within invention protection domain, and it is incorporated herein by reference herein.
According to another preferred embodiment of the invention (referring to Fig.1), the data operation request further includes object mark Know, is used to identify the object under the application, wherein data subset acquisition device 12 is according to the application identities, the use Family identifies and the object identity, is obtained described in the application with the user from the multilayered structure data acquisition system The corresponding data subset of object.Another preferred embodiment is described in detail referring to Fig. 1, wherein acquisition request Device 11 obtains the data operation request operated to the multilayered structure data acquisition system, which includes using In the application identities of mark application;Data subset operating device 13 is according to the data operation request, to acquired data Collection carries out corresponding operating;Its detailed process and acquisition request device 11 in aforementioned described embodiment referring to Fig.1 and data The process collected performed by operating device 13 is identical, for simplicity, is incorporated herein by reference, without repeating.
Specifically, the data operation request that acquisition request device 11 obtains further includes pair for mark data operation object As mark, wherein the object includes single layer object, for example, when data operation request is to inquire commenting for user's U1 whole photos By when, then photo is single layer object, be used in combination " P1 " as object identity;Multilayer object is may also comprise, for example, when data manipulation is asked When asking the comment of photo P1 in the photograph album A1 to inquire user U1, then the first layer object pointed by the data operation request is phase Volume is used in combination " A1 " to be used as first layer object identity, and the second layer object pointed by the data operation request is photo, is used in combination " P1 " As second layer object identity;Data subset acquisition device 12 according in data operation request application identities, user identifier and It is somebody's turn to do (s) object identity, data subset corresponding with data operation request is obtained from multilayered structure data acquisition system.
In one example, as shown in figure 5, when data operation request is commenting for the photo P1 inquired in the photograph album A1 of user U1 The comment of the photo P2 in the photograph album A2 of user U2 is referred to, the data operation request that acquisition request device 11 obtains includes application It is identified as " comment of APP- photos ", user identifier " U1 " and first layer object identity " A1 ", second layer object identity " P1 ", and is used Family identifies U2 " and first layer object identity " A2 ", second layer object identity " P2 ", then data subset acquisition device 12 is answered according to this With mark, such user identifier and such multi-level object identity, the multilayered structure data in being stored in memory storage Matching inquiry is carried out in set, is obtained corresponding data acquisition system and is applied corresponding data subset as with this, such as { APP- shines Piece is commented on, U1, A1, P1 }, { APP- photos comment on, U2, A2, P2 }.
Those skilled in the art will be understood that the identification means of above-mentioned object identity are only for example, other are existing or from now on The identification means for the object identity being likely to occur such as are applicable to the present invention, should also be included within the scope of the present invention, and It is incorporated herein by reference herein.Those skilled in the art should also be understood that the mode of above-mentioned acquisition data subset is only to lift Example, other modes of acquisitions data subset that are existing or being likely to occur from now on are such as applicable to the present invention, should also be included in Within invention protection domain, and it is incorporated herein by reference herein.
Fig. 6 shows the equipment for operating multilayered structure data acquisition system according to a further advantageous embodiment of the invention Schematic diagram, operation equipment 1 further include updating device 14 ', the updating device access reservations database, according to the application identities come Establish or update the multilayered structure data acquisition system.
Here, the content of the function of device 11 ' to 13 ' shown in Fig. 6 and front described device 11 to 13 referring to Fig.1 It is identical, for simplicity, it is incorporated herein by reference, without repeating.
Specifically, updating device 14 ' by predetermined period or answers event triggering to access reservations database in real time, according to application Identify obtained from the reservations database corresponding with application identities data subset and its including data element, and should (s) data subset and its including data element be written to as storage multilayered structure data acquisition system memory storage in, with Update the multilayered structure data acquisition system;If updating device 14 ' detects that the multilayered structure data acquisition system is not set up, in advance The multilayered structure data acquisition system is initialized, data corresponding with the application identities are then written to the multilayered structure number According in set, wherein the reservations database includes but not limited to the relational database for storing full dose multilayered structure data, text Part system etc..
In one example, when reservations database is the relational database for storing full dose multilayered structure data, updating device Application identities in the 14 ' data operation requests obtained according to acquisition request device 11 ' by predetermined period, in the relational database Middle carry out matching inquiry, with obtain data subset corresponding with application identities are somebody's turn to do (s) and its including data element, and will This (s) data subset and its including data element be inserted into storage multilayered structure data acquisition system memory storage in.
Those skilled in the art will be understood that the above-mentioned mode for establising or updating association multilayered structure data acquisition system is only Citing, other modes for establising or updating multilayered structure data acquisition system that are existing or being likely to occur from now on are such as applicable to this Invention, should also be included within the scope of the present invention, and be incorporated herein by reference herein.
Preferably, the updating device 14 ' according to the application identities, and is combined for accessing the reservations database Pre-defined rule corresponding with the application identities establishs or updates the multilayered structure data acquisition system.
Specifically, updating device 14 ' by predetermined period or answers event triggering to access reservations database in real time, according to various Application identities, and combine with this (s) the corresponding pre-defined rule of application identities, obtain from the reservations database and marked with application Sensible corresponding data subset;Then, updating device 14 ' obtains the data element for meeting pre-defined rule from the data subset, And establish or update the multilayered structure data acquisition system according to the data subset and those data elements.Wherein, the pre- set pattern It include but not limited to then following at least any one:
1) acquisition generated time is later than the data element of scheduled time threshold value,
2) data element of generated time newest first predetermined quantity is obtained,
3) data element for adding up that access times are more than scheduled visit frequency threshold value is obtained,
4) data element for adding up the second most predetermined quantity of access times is obtained,
5) data element that the average access frequency is more than scheduled visit frequency threshold value is obtained,
6) data element of the most third predetermined quantity of the average access frequency is obtained.
In one example, when reservations database is to store the relational database of full dose multilayered structure data, more new clothes 14 ' are set by predetermined period, according to the application identities in the data operation request of the acquisition of acquisition request device 11 ', in the relationship number According to matching inquiry is carried out in library, to obtain data subset corresponding with the application identities, then, updating device 14 ' is based on pre- Set pattern then shown in obtain generated time newest preceding 10 data elements, obtaining should data corresponding with the application identities Generated time newest preceding 10 data elements in subset, and it is inserted into the memory storage of storage multilayered structure data acquisition system In device.
Those skilled in the art will be understood that can be not only individually used for based on above-mentioned several pre-defined rules establish or more New multilayered structure data acquisition system, can be combined with for establising or updating multilayered structure data acquisition system.People in the art Member it should also be understood that above-mentioned pre-defined rule and/or establish or update the mode of the multilayered structure data acquisition system and be only for example, Other existing or pre-defined rules being likely to occur from now on and/or the mode for establising or updating the multilayered structure data acquisition system It is such as applicable to the present invention, should also be included within the scope of the present invention, and is incorporated herein by reference herein.
In another preferred embodiment (referring to Fig.1), data subset operating device 13 is according to the data operation request, In conjunction with predetermined filter condition, the operation is carried out to the data subset.Referring to Fig. 1 to another preferred embodiment into Row detailed description, wherein acquisition request device 11 obtains the data manipulation operated to the multilayered structure data acquisition system Request, the data operation request include the application identities for identifying application;Data subset acquisition device 12 is according to the application Mark obtains data subset corresponding with the application from the multilayered structure data acquisition system;Its detailed process is with before It is identical with the process performed by data subset acquisition device 12 to state acquisition request device 11 in described embodiment referring to Fig.1, For simplicity, it is incorporated herein by reference, without repeating.
Specifically, the data operation request that data subset operating device 13 is obtained according to acquisition request device 11, in conjunction with pre- Determine filter condition, the data subset obtained to data subset acquisition device 12 is operated accordingly.Wherein, the predetermined filtering Any one of condition is based on, but is not limited to, below at least:
1) the access rights setting of the data element.Wherein, the access rights setting is for identifying transmission data behaviour Make whether the user asked has the power operated to the data element in the data subset corresponding to the data operation request Limit;Access rights setting can be shown by the access rights label information in data element.
2) status flags information of the data element.Wherein, the status flags information exists for identification data elements State in data subset, if for example, the status flags information of a data element is " delete ", the data element is from this Data subset is eliminated, therefore inaccessible;The status flags information can be shown by the state flag bit in data element.
In one example, when data operation request is that other users check the comment of photo P1 in user's U1 photograph albums A1, Access rights label information is " private " in the data element that the corresponding data subset of the data operation request includes, Only have user U1 oneself to be able to access that the data element, then data subset operating device 13 marks according to the access rights and believes Breath, screens the data element in the data subset, is " private " by access rights label information in data element Data element filtered out from the data subset, then, filtered data subset is operated accordingly.
In another example, it when state flag bit is " delete " in the data element corresponding to data subset, then counts According to subset op device 13 according to the state flag bit, the data element in the data subset is screened, by data element In element state flag bit be " delete " data element filtered out from the data subset, then, to filtered data subset into The corresponding operation of row.
Those skilled in the art will be understood that the predetermined filter condition based on above-mentioned two can not only be individually used for logarithm It is filtered, is can be combined with for being filtered to data subset according to subset.Those skilled in the art will be understood that above-mentioned pre- The mode determined filter condition and/or operated to data subset is only for example, other are existing or are likely to occur from now on pre- The mode determined filter condition and/or operated to data subset is such as applicable to the present invention, should also be included in protection of the present invention Within range, and it is incorporated herein by reference herein.
Fig. 7 shows the method flow diagram for operating multilayered structure data acquisition system according to one aspect of the invention.Institute State multilayered structure data acquisition system be with a variety of set using corresponding data, and deposited in a manner of same data structure Storage.Operation equipment 1 is the network equipment, including but not limited to computer, network host, single network server, multiple networks clothes The cloud that business device collection or multiple servers are constituted.Here, cloud by be based on cloud computing (Cloud Computing) a large amount of computers or Network server is constituted, wherein cloud computing is one kind of Distributed Calculation, one be made of the computer collection of a group loose couplings A super virtual computer.
Specifically, multilayered structure data acquisition system includes data corresponding with a variety of applications, and with same data structure Mode is stored, array, chained list etc..
Here, the array means the set of the homogeneous data element of arranged in sequence, included number data elements can Customization;
Here, the chained list means storage organization discontinuous, non-sequential on a kind of physical memory cell, data element Logical order is realized by the pointer link orders in chained list.
Here, the multilayered structure data acquisition system is the data acquisition system with natural or predefined hierarchical relationship; The application means a kind of use of technology, system or product, for example, in myspace, to the photograph album A1 of user U1 In photo P1 carry out comment be a photo comment application;The article 1 checked in the blog 1 of user U1 is checked for an article and is answered With.
In one example, in myspace, multilayered structure data acquisition system include in the myspace A variety of corresponding data of application, including but not limited to:Album data, blog data, microblog data of any user etc., photograph album Under picture data, the article data under blog, the photo under the speech data etc. of the microblogging under microblogging and photo comment on number According to microblogging speech comment data etc. that the article review data under, article, microblogging speech are lower;And it is corresponding with a variety of applications Data are stored with identical data structure mode.Here, the multilayered structure data acquisition system can be stored in it is following any Xiang Zhong:Memory storage, harddisk memory etc..
As shown in fig. 7, in step sl, the operation acquisition of equipment 1 operates the multilayered structure data acquisition system Data operation request, the data operation request include the application identities for identifying application.Specifically, in step sl, it operates Equipment 1 obtains the data operation request operated to multilayered structure data acquisition system, wherein the acquisition data operation request Method include but not limited to:
1) it is obtained from user equipment, for example, in step sl, the operation acquisition of equipment 1 is sent out from user by user equipment The data operation request sent;
2) it is obtained from third party device, for example, in step sl, operation equipment 1 obtains the data from third party device Operation requests;
The data operation request include but not limited to for identifying the application identities of the application corresponding to it, data manipulation is asked The type asked, such as increase, delete, modification, inquiring.
Wherein, the application identities are according to different applications, the preset mark for identifying the application.Such as in social network In network community, data operation request is comments on the photo P1 in the photograph album A1 of user U1, and the data operation request institute Corresponding application is commented on for photo, then the application identities for the preset mark photo comment that the data operation request includes are " comment of APP- photos ".
In one example, first, user equipment is clicked the photo of a good friend by detecting user and is commented in the user interface The inquiry operation of opinion obtains data operation request corresponding with the inquiry operation, and the data operation request is sent to behaviour Make equipment 1, for example, can be encapsulated as a request message, such as http request message, and by corresponding communication protocol, such as Http, https communication protocol are sent to operation equipment 1;In step sl, operation equipment 1 is received by way of real time monitoring And the request message is parsed, the data operation request from the user equipment is obtained, and the data operation request includes being used for Identify the application identities " comment of APP- photos " of photo comment application.
In another example, in step sl, (application programming connects the API that operation equipment 1 is provided according to third party device Mouthful), the data manipulation for obtaining and being operated to multilayered structure data acquisition system is sent to the third party device ask by predetermined period The request message asked, and the data manipulation deleted the photo comment of a user for receiving third party device return is asked It asks, and the data operation request includes the application identities " comment of APP- photos " for identifying photo comment application.
Those skilled in the art will be understood that the mode of above-mentioned acquisition data operation request is only for example, other it is existing or The mode for the acquisition data operation request being likely to occur from now on is such as applicable to the present invention, should also be included in the scope of the present invention Within, and be incorporated herein by reference herein.
Then, in step s 2, operation equipment 1 is according to the application identities, from the multilayered structure data acquisition system Obtain data subset corresponding with the application.Specifically, in step s 2, operation equipment 1 obtains in step sl according to it The application identities for its corresponding application that the data operation request taken includes are obtained and are somebody's turn to do from multilayered structure data acquisition system Using corresponding data subset.Wherein, the data subset mean obtained from multilayered structure data acquisition system with it is described Using corresponding data acquisition system.
In one example, when data operation request is newest 10 comments for inquiring user's every photo of U1, and multilayer Secondary structured data set is stored in a manner of array, in step S 1, in the data operation request that operation equipment 1 obtains Application identities including mark photo comment application are " comment of APP- photos ", then in step s 2, operation equipment 1 is answered according to this With mark, matching inquiry is carried out in the multilayered structure data acquisition system in being stored in memory storage, acquisition is commented with the photo By applying corresponding 50 data subsets, as shown in Fig. 2, i.e. { APP- photos comment on, P1 }, APP- photos are commented on, P2 } ..., { APP- photos comment on, P50 }, those data subsets are directed toward the comment of user U1 photos P1 to photo P50, and The data element for including in those data subsets is to be directed toward newest 10 comments of photo and its related letter to those data subsets Breath, such as comment on deliver the time, comment access rights label information.
In another example, when data operation request is to be operated to newest 10 comments of the article 3 under user U1 When, and multilayered structure data acquisition system is stored in a manner of array, and in step sl, the data behaviour that operation equipment 1 obtains It asks to include identifying the application identities that article review is applied for " APP- article reviews ", then according to the application identities, inside It deposits and carries out matching inquiry in the multilayered structure data acquisition system in memory, obtain to comment on this article and apply corresponding data Subset, as shown in figure 3, i.e. { APP- article reviews, article 3 }, the data element which includes is the newest of article 3 10 comment and its relevant information, such as comment deliver the time, comment access rights be arranged.
Those skilled in the art will be understood that the mode of above-mentioned acquisition data subset is only for example, other are existing or from now on The mode for the acquisition data subset being likely to occur such as is applicable to the present invention, should also be included within the scope of the present invention, and It is incorporated herein by reference herein.
Then, in step s3, operation equipment 1 carries out acquired data subset according to the data operation request Corresponding operating.Specifically, in step s3, the data operation request that is obtained in step sl according to it of operation equipment 1, to its Acquired data subset carries out corresponding operating in step S2.Wherein, the corresponding operating includes following at least any one:
1) it modifies to the data element in the data subset;
2) data element in the data subset is deleted;
3) increase data element in the data subset;
4) each data element in the data subset is provided, to be shown.
In one example, as shown in Fig. 2, when operation equipment 1 is network server, in step sl, the network server The data operation request of acquisition is to inquire newest 10 comments of user's U1 whole photos, and the data operation request answering of including With being identified as " comment of APP- photos ";In step s 2, which obtains 50 numbers corresponding with the application identities According to subset, i.e., { APP- photos comment on, P1 }, { APP- photos are commented on, P2 } ..., { APP- photos are commented on, P50 }, it includes Respective data element, by taking data subset { APP- photos comment on, P1 } as an example, it includes data element be:
{ C1, ' 2010-10-20 0:0:0 ', ' public ', ' title:1 ' },
{ C2, ' 2010-10-18 0:0:0 ', ' public ', ' title:2 ' },
{ C10, ' 2010-09-01 0:0:0 ', ' public ', ' title:10’};
Wherein, each data element includes following data information, with { C1, ' 2010-10-200:0:0 ', ' public ', ‘title:1 ' } for:
" C1 " can be the identification information for the content or comment commented on, can be in the database according to the identification information Inquiry obtains comment content corresponding thereto,
-“2010-10-20 0:0:0 " comment is shown deliver the time,
" public " is the access rights label information of the comment, and access rights label information mark is all with per family It can check the comment,
-“title:1 " means entitled the 1 of the comment;
If this, in step s3, which will be with the data such as ASP dynamic page technologies by page technology ASP dynamic pages are written in comment content in those corresponding data elements of operation requests, by the ASP on the network server Analytics engine parses the content in the ASP dynamic pages, and by analysis result in a manner of arranging, such as HTML, XHTML transmission To be shown on to the browser of user equipment.
In another example, as shown in figure 3, in step sl, the data operation request that operation equipment 1 obtains is that addition is commented By to user U1 articles 3, and the application identities that the data operation request includes are " APP- article reviews ";In step s 2, it grasps Make 8 data corresponding to the data subset corresponding with the application identities { APP- article reviews, article 3 } of the acquisition of equipment 1 Element, i.e.,
{ C1, ' 2010-10-210:0:0 ', ' public ', ' title:1 ' },
{ C2, ' 2010-10-180:0:0 ', ' public ', ' title:2 ' },
{ C8, ' 2010-10-020:0:0 ', ' public ', ' title:8’};
In step s3, operation equipment 1 is according to the data operation information in the data operation request of addition operation, by depositing The Application Programming Interface (API) that the memory storage of storage multilayered structure data acquisition system is provided, in the memory storage Data subset { APP- article reviews, article 3 } be inserted into a data element, the data element include this article comment content, Generated time stamp, access rights label information and the association attributes etc. of the comment of article review, and carried out in the form of array Storage, such as { C9, ' 2010-10-25 0:0:0 ', ' public ', ' title:9’};Wherein, the association attributes include but unlimited In the title of comment, the status flags information etc. of comment;Wherein, the data operation information is that data operation request includes Operation is specific to execute content.
Here, example of the data information in data element in the example as illustration, only for understanding this hair Bright, truthful data information when not as practical application is not construed as any restrictions to present patent application protection domain.Such as nothing Illustrate, the function of the data information in the data element occurred elsewhere with it is where like, for simplicity, It repeats no more.
Those skilled in the art will be understood that the above-mentioned mode operated to data subset is only for example, other are existing Or the mode operated to data subset being likely to occur from now on is such as applicable to the present invention, should also be included in protection of the present invention Within range, and it is incorporated herein by reference herein.
Preferably, operation equipment 1 is continuously to work in step S1, step S2 and step S3.Specifically, in step In rapid S1, operation equipment 1 constantly obtains the data operation request operated to the multilayered structure data acquisition system, the number Include the application identities for identifying application according to operation requests;Then, in step s 2, operation equipment 1 is also constantly according to institute Application identities are stated, data subset corresponding with the application is obtained from the multilayered structure data acquisition system;Then, in step In rapid S3, operation equipment 1 also continues, according to the data operation request, corresponding operating to be carried out to acquired data subset. This, the acquisition of above-mentioned data operation request, data are constantly carried out it will be understood by those skilled in the art that " lasting " refers to each step The acquisition of collection and the operation of data subset, until meet predetermined stoppage condition, such as operation equipment 1 stops pair in a long time The acquisition of data operation request.
(with reference to Fig. 7) according to a preferred embodiment of the present invention, the data operation request further includes for marking Know the user identifier of user, wherein in step s 2, operation equipment 1 is according to the application identities and the user identifier, from institute It states and obtains data subset corresponding with the application of the user in multilayered structure data acquisition system.Referring to Fig. 7 pairs The preferred embodiment is described in detail, wherein in step sl, operation equipment 1 is obtained to the multilayered structure data set The data operation request operated is closed, which includes the application identities for identifying application;In step s3, Equipment 1 is operated according to the data operation request, corresponding operating is carried out to acquired data subset;Its detailed process with it is aforementioned It is identical with reference to the process performed in step S1 and step S3 of operation equipment 1 in Fig. 7 described embodiments, it is risen to be concise See, be incorporated herein by reference, without repeating.
Specifically, in step sl, the data operation request that operation equipment 1 obtains further includes for identifying one or more The user identifier of user, such as in myspace, data operation request be inquire user's U1 whole photos comment and The comment of user's U2 whole photos, then user identifier is " U1 " and " U2 ";Wherein, in step s 2, operation equipment 1 according to its One of the application identities of the application corresponding with data operation request obtained in step S1 and data operation request direction Or the user identifier of multiple users, data corresponding with the application of those users is obtained from multilayered structure data acquisition system Collection.
In one example, as shown in figure 4, when data operation request be inquiry user U1 and user U2 every photo most When new 10 comments, in step sl, the mark photo comment application that the data operation request that operation equipment 1 obtains includes Application identities are " comment of APP- photos ", and the user identifier of user pointed by data operation request is " U1 " and " U2 ", then exists In step S2, operation equipment 1 is according to the application identities and such user identifier, the multi-level knot in being stored in memory storage Matching inquiry is carried out in structure data acquisition system, is obtained corresponding data acquisition system and is applied corresponding data subset as with this.
Those skilled in the art will be understood that the identification means of above-mentioned user identifier are only for example, other are existing or from now on The identification means for the user identifier being likely to occur such as are applicable to the present invention, should also be included within the scope of the present invention, and It is incorporated herein by reference herein.Those skilled in the art should also be understood that the mode of above-mentioned acquisition data subset is only to lift Example, other modes of acquisitions data subset that are existing or being likely to occur from now on are such as applicable to the present invention, should also be included in Within invention protection domain, and it is incorporated herein by reference herein.
(with reference to Fig. 7) according to another preferred embodiment of the invention, the data operation request further includes object mark Know, be used to identify the object under the application, wherein in step s 2, operation equipment 1 is according to application identities, described User identifier and the object identity obtain the institute with the application of the user from the multilayered structure data acquisition system State the corresponding data subset of object.Another preferred embodiment is described in detail referring to Fig. 7, wherein in step In S1, operation equipment 1 obtains the data operation request operated to the multilayered structure data acquisition system, which asks It asks including the application identities for identifying application;In step s3, operation equipment 1 is according to the data operation request, to being obtained The data subset taken carries out corresponding operating;Its detailed process is with operation equipment 1 in aforementioned reference Fig. 7 described embodiments in step Performed process is identical in rapid S1 and step S3, for simplicity, is incorporated herein by reference, without repeating.
Specifically, in step sl, the data operation request that operation equipment 1 obtains further includes for mark data operation pair The object identity of elephant, wherein the object includes single layer object, for example, when data operation request is that inquiry user U1 all shines When the comment of piece, then photo is single layer object, and " P1 " is used in combination to be used as object identity;Multilayer object is may also comprise, for example, working as data When operation requests are the comment of photo P1 in the photograph album A1 for inquire user U1, then the first layer pair pointed by the data operation request As for photograph album, being used in combination " A1 " to be used as first layer object identity, the second layer object pointed by the data operation request is photo, and Use " P1 " as second layer object identity;In step s 2, operation equipment 1 is according to application identities, the use in data operation request Family identifies and is somebody's turn to do (s) object identity, and it is sub that data corresponding with data operation request are obtained from multilayered structure data acquisition system Collection.
In one example, as shown in figure 5, when data operation request is commenting for the photo P1 inquired in the photograph album A1 of user U1 The comment of the photo P2 in the photograph album A2 of user U2 is referred to, in step sl, is wrapped in the data operation request that operation equipment 1 obtains It is " comment of APP- photos ", user identifier " U1 " and first layer object identity " A1 ", second layer object identity to include application identities " P1 " and user identifier U2 " and first layer object identity " A2 ", second layer object identity " P2 ", then in step s 2, operation is set Standby 1 according to the application identities, such user identifier and such multi-level object identity, the multilayer in being stored in memory storage Matching inquiry is carried out in secondary structured data set, obtains corresponding data acquisition system as sub using corresponding data with this Collection, such as { APP- photos are commented on, U1, A1, P1 }, { APP- photos are commented on, U2, A2, P2 }.
Those skilled in the art will be understood that the identification means of above-mentioned object identity are only for example, other are existing or from now on The identification means for the object identity being likely to occur such as are applicable to the present invention, should also be included within the scope of the present invention, and It is incorporated herein by reference herein.Those skilled in the art should also be understood that the mode of above-mentioned acquisition data subset is only to lift Example, other modes of acquisitions data subset that are existing or being likely to occur from now on are such as applicable to the present invention, should also be included in Within invention protection domain, and it is incorporated herein by reference herein.
Fig. 8 shows the method for operating multilayered structure data acquisition system according to a further advantageous embodiment of the invention Flow chart, in step S4 ', operation equipment 1 accesses reservations database, is establishd or updated according to the application identities described more Hiberarchy data set.
Here, operating implementation procedure of the equipment 1 in step S1 ' to step S3 ' shown in Fig. 8 with front with reference to Fig. 7 institutes Content of the operation equipment 1 of description in step S1 to step S3 is identical, and for simplicity, it is contained in by reference This, without repeating.
Specifically, in step S4 ', operation equipment 1 is by predetermined period or event triggering is answered to access tentation data in real time Library, obtained from the reservations database according to application identities data subset corresponding with the application identities and its including data Element, and by this (s) data subset and its including data element be written to as store multilayered structure data acquisition system memory In memory, to update the multilayered structure data acquisition system;If in step S4 ', operation equipment 1 detects the multilayered structure Data acquisition system is not set up, then initializes the multilayered structure data acquisition system in advance, then will number corresponding with the application identities According to being written in the multilayered structure data acquisition system, wherein the reservations database includes but not limited to that store full dose multi-level Relational database, file system of structured data etc..
In one example, when the relational database that reservations database is storage full dose multilayered structure data, in step S4 ' In, application identities of the operation equipment 1 by predetermined period according to operation equipment 1 in step S1 ' in the data operation request of acquisition, Matching inquiry is carried out in the relational database, with obtain data subset corresponding with application identities are somebody's turn to do (s) and its including Data element, and by this (s) data subset and its including data element be inserted into storage multilayered structure data acquisition system memory In memory.
Those skilled in the art will be understood that the above-mentioned mode for establising or updating association multilayered structure data acquisition system is only Citing, other modes for establising or updating multilayered structure data acquisition system that are existing or being likely to occur from now on are such as applicable to this Invention, should also be included within the scope of the present invention, and be incorporated herein by reference herein.
Preferably, in step S4 ', operation equipment 1 is for accessing the reservations database, according to the application identities, And in conjunction with pre-defined rule corresponding with the application identities, establish or update the multilayered structure data acquisition system.
Specifically, in step S4 ', operation equipment 1 is by predetermined period or event triggering is answered to access tentation data in real time Library, according to various application identities, and combine with this (s) the corresponding pre-defined rule of application identities, obtained from the reservations database Take data subset corresponding with application identities;Then, operation equipment 1 obtains the number for meeting pre-defined rule from the data subset The multilayered structure data acquisition system is establishd or updated according to element, and according to the data subset and those data elements.Wherein, described Pre-defined rule includes but not limited to following at least any one:
1) acquisition generated time is later than the data element of scheduled time threshold value,
2) data element of generated time newest first predetermined quantity is obtained,
3) data element for adding up that access times are more than scheduled visit frequency threshold value is obtained,
4) data element for adding up the second most predetermined quantity of access times is obtained,
5) data element that the average access frequency is more than scheduled visit frequency threshold value is obtained,
6) data element of the most third predetermined quantity of the average access frequency is obtained.
In one example, when reservations database is to store the relational database of full dose multilayered structure data, in step In S4 ', operation equipment 1 presses predetermined period, the application identities in the data operation request obtained in step S1 ' according to it, Matching inquiry is carried out in the relational database, to obtain data subset corresponding with the application identities, then, operates equipment 1 Based on generated time newest preceding 10 data elements are obtained shown in pre-defined rule, obtaining should be corresponding with the application identities Data subset in generated time newest preceding 10 data elements, and be inserted into storage multilayered structure data acquisition system it is interior It deposits in memory.
Those skilled in the art will be understood that can be not only individually used for based on above-mentioned several pre-defined rules establish or more New multilayered structure data acquisition system, can be combined with for establising or updating multilayered structure data acquisition system.People in the art Member it should also be understood that above-mentioned pre-defined rule and/or establish or update the mode of the multilayered structure data acquisition system and be only for example, Other existing or pre-defined rules being likely to occur from now on and/or the mode for establising or updating the multilayered structure data acquisition system It is such as applicable to the present invention, should also be included within the scope of the present invention, and is incorporated herein by reference herein.
(with reference to Fig. 7) in another preferred embodiment, in step s3, operation equipment 1 is asked according to the data manipulation It asks, in conjunction with predetermined filter condition, the operation is carried out to the data subset.Referring to Fig. 7 to another preferred implementation Example is described in detail, wherein in step sl, the operation acquisition of equipment 1 operates the multilayered structure data acquisition system Data operation request, the data operation request include for identify application application identities;In step s 2, equipment 1 is operated According to the application identities, data subset corresponding with the application is obtained from the multilayered structure data acquisition system;Its Detailed process and the aforementioned process performed in step S1 and step S2 with reference to operation equipment 1 in Fig. 7 described embodiments It is identical, it for simplicity, is incorporated herein by reference, without repeating.
Specifically, in step s3, the data operation request that operation equipment 1 obtains in step sl according to it, in conjunction with pre- Determine filter condition, the data subset obtained in step s 2 to it is operated accordingly.Wherein, the predetermined filter condition base Any one of in, but be not limited to, below at least:
1) the access rights setting of the data element.Wherein, the access rights setting is for identifying transmission data behaviour Make whether the user asked has the power operated to the data element in the data subset corresponding to the data operation request Limit;Access rights setting can be shown by the access rights label information in data element.
2) status flags information of the data element.Wherein, the status flags information exists for identification data elements State in data subset, if for example, the status flags information of a data element is " delete ", the data element is from this Data subset is eliminated, therefore inaccessible;The status flags information can be shown by the state flag bit in data element.
In one example, when data operation request is that other users check the comment of photo P1 in user's U1 photograph albums A1, Access rights label information is " private " in the data element that the corresponding data subset of the data operation request includes, Only have user U1 oneself to be able to access that the data element, then in step s3, operation equipment 1 is marked according to the access rights to be believed Breath, screens the data element in the data subset, is " private " by access rights label information in data element Data element filtered out from the data subset, then, filtered data subset is operated accordingly.
In another example, when state flag bit is " delete " in the data element corresponding to data subset, then exist In step S3, operation equipment 1 screens the data element in the data subset, according to the state flag bit by data State flag bit is that the data element of " delete " is filtered out from the data subset in element, then, to filtered data subset It is operated accordingly.
Those skilled in the art will be understood that the predetermined filter condition based on above-mentioned two can not only be individually used for logarithm It is filtered, is can be combined with for being filtered to data subset according to subset.Those skilled in the art will be understood that above-mentioned pre- The mode determined filter condition and/or operated to data subset is only for example, other are existing or are likely to occur from now on pre- The mode determined filter condition and/or operated to data subset is such as applicable to the present invention, should also be included in protection of the present invention Within range, and it is incorporated herein by reference herein.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Profit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent requirements of the claims Variation includes within the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " is not excluded for other units or step, and odd number is not excluded for plural number.That is stated in device claim is multiple Unit or device can also be realized by a unit or device by software or hardware.The first, the second equal words are used for table Show title, and does not represent any particular order.

Claims (20)

1. a kind of computer implemented method for operating multilayered structure data acquisition system, wherein the multilayered structure number Include data corresponding with a variety of applications according to set, and stored in a manner of same data structure, wherein this method includes Following steps:
A obtains the data operation request operated to the multilayered structure data acquisition system, which includes using In the application identities of mark application;
B obtains data corresponding with the application according to the application identities from the multilayered structure data acquisition system Collection;
C carries out corresponding operating according to the data operation request, to acquired data subset.
2. according to the method described in claim 1, wherein, the data operation request further includes user's mark for identity user Know, wherein step b includes:
According to the application identities and the user identifier, obtained and the user from the multilayered structure data acquisition system The corresponding data subset of the application.
3. according to the method described in claim 2, wherein, the data operation request further includes object identity, it is used to identify Object under the application, wherein the step b includes:
According to the application identities, the user identifier and the object identity, obtained from the multilayered structure data acquisition system Take data subset corresponding with the object of the application of the user.
4. according to the method in any one of claims 1 to 3, wherein the operation in step c includes following at least appointing One:
It modifies to the data element in the data subset;
Data element in the data subset is deleted;
Increase data element in the data subset;
Each data element in the data subset is provided, to be shown.
5. according to the method in any one of claims 1 to 3, wherein the storage side of the multilayered structure data acquisition system Formula includes following at least any one mode:
Array;
Chained list.
6. according to the method in any one of claims 1 to 3, wherein this method further includes step:
X accesses reservations database, and the multilayered structure data acquisition system is establishd or updated according to the application identities.
7. according to the method described in claim 6, wherein, step X includes:
The reservations database is accessed, according to the application identities, and in conjunction with pre- set pattern corresponding with the application identities Then, the multilayered structure data acquisition system is establishd or updated.
8. according to the method described in claim 7, wherein, the pre-defined rule is based on following at least any one and establishs or updates institute State multilayered structure data acquisition system:
The generated time of data element;
The accumulative access times of data element;
The average access frequency of data element.
9. according to the method in any one of claims 1 to 3, wherein the step c includes:
According to the data operation request, in conjunction with predetermined filter condition, the operation is carried out to the data subset.
10. according to the method described in claim 9, wherein, the predetermined filter condition is based on following at least any one:
The access rights of data element are arranged;
The status flags information of data element.
11. a kind of equipment for operating multilayered structure data acquisition system, wherein the multilayered structure data acquisition system include with Corresponding data of a variety of applications, and being stored in a manner of same data structure, wherein the equipment includes:
Acquisition request device, for obtaining the data operation request operated to the multilayered structure data acquisition system, the number Include the application identities for identifying application according to operation requests;
Data subset acquisition device is used for according to the application identities, acquisition and institute from the multilayered structure data acquisition system It states using corresponding data subset;
Data subset operating device, for according to the data operation request, corresponding operating to be carried out to acquired data subset.
12. equipment according to claim 11, wherein the data operation request further includes the user for identity user Mark, wherein the data subset acquisition device is used for according to the application identities and the user identifier, from it is described at many levels Data subset corresponding with the application of the user is obtained in structured data set.
13. equipment according to claim 12, wherein the data operation request further includes object identity, is used to mark Know the object under the application, wherein the data subset acquisition device is used for according to the application identities, the user identifier And the object identity, the object phase with the application of the user is obtained from the multilayered structure data acquisition system Corresponding data subset.
14. the equipment according to any one of claim 11 to 13, wherein the institute that the data subset operating device executes It includes following at least any one to state operation:
It modifies to the data element in the data subset;
Data element in the data subset is deleted;
Increase data element in the data subset;
Each data element in the data subset is provided, to be shown.
15. the equipment according to any one of claim 11 to 13, wherein the storage of the multilayered structure data acquisition system Mode includes following at least any one mode:
Array;
Chained list.
16. the equipment according to any one of claim 11 to 13, wherein the equipment further includes:
Updating device establishs or updates the multi-level knot according to the various application identities for accessing reservations database Structure data acquisition system.
17. equipment according to claim 16, wherein the updating device is used to access the reservations database, according to The application identities, and in conjunction with pre-defined rule corresponding with the application identities, establish or update the multilayered structure number According to set.
18. equipment according to claim 17, wherein the pre-defined rule is based on following at least any one and establishs or updates The multilayered structure data acquisition system:
The generated time of data element;
The accumulative access times of data element;
The average access frequency of data element.
19. the equipment according to any one of claim 11 to 13, wherein the data subset operating device is used for basis The data operation request carries out the operation in conjunction with predetermined filter condition to the data subset.
20. equipment according to claim 19, wherein the predetermined filter condition is based on following at least any one:
The access rights of data element are arranged;
The status flags information of data element.
CN201110317095.6A 2011-10-18 2011-10-18 A kind of method and apparatus for operating multilayered structure data acquisition system Active CN103064832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110317095.6A CN103064832B (en) 2011-10-18 2011-10-18 A kind of method and apparatus for operating multilayered structure data acquisition system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110317095.6A CN103064832B (en) 2011-10-18 2011-10-18 A kind of method and apparatus for operating multilayered structure data acquisition system

Publications (2)

Publication Number Publication Date
CN103064832A CN103064832A (en) 2013-04-24
CN103064832B true CN103064832B (en) 2018-09-07

Family

ID=48107462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110317095.6A Active CN103064832B (en) 2011-10-18 2011-10-18 A kind of method and apparatus for operating multilayered structure data acquisition system

Country Status (1)

Country Link
CN (1) CN103064832B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685475A (en) * 2013-11-22 2014-03-26 广东泛在无线射频识别公共技术支持有限公司 Data positioning method and data positioning system for sharing master data of products across mechanisms
CN105022844B (en) * 2015-08-25 2019-03-01 魅族科技(中国)有限公司 A kind of method and terminal of files in batch processing
CN106649722B (en) * 2016-12-23 2020-09-08 郑州天迈科技股份有限公司 Monitoring system high-frequency data storage and query method
CN110569318A (en) * 2018-05-16 2019-12-13 杭州海康威视数字技术股份有限公司 space-time data storage method, query method, storage device and query device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202716A (en) * 2007-12-04 2008-06-18 腾讯科技(深圳)有限公司 Method for storing information and communication system and related devices
CN101281766A (en) * 2007-04-03 2008-10-08 索尼株式会社 Information processing apparatus, information processing method and computer program
CN101878482A (en) * 2007-11-29 2010-11-03 思科技术公司 Socially collaborative filtering

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010042081A1 (en) * 1997-12-19 2001-11-15 Ian Alexander Macfarlane Markup language paring for documents

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281766A (en) * 2007-04-03 2008-10-08 索尼株式会社 Information processing apparatus, information processing method and computer program
CN101878482A (en) * 2007-11-29 2010-11-03 思科技术公司 Socially collaborative filtering
CN101202716A (en) * 2007-12-04 2008-06-18 腾讯科技(深圳)有限公司 Method for storing information and communication system and related devices

Also Published As

Publication number Publication date
CN103064832A (en) 2013-04-24

Similar Documents

Publication Publication Date Title
Holzschuher et al. Performance of graph query languages: comparison of cypher, gremlin and native access in neo4j
TWI416344B (en) Computer-implemented method and computer-readable medium for providing access to content
US10831844B2 (en) Accessing databases
US20210117379A1 (en) Systems and methods concerning tracking models for digital interactions
Mika Flink: Semantic web technology for the extraction and analysis of social networks
US8359313B2 (en) Extensible custom variables for tracking user traffic
CN103902653B (en) A kind of method and apparatus for building data warehouse table genetic connection figure
CN109145205A (en) A kind of across chain data manipulation method and device based on block chain
CN109845221A (en) Access control policy for service layer is synchronous
CN102262650B (en) The data base of link
Rehman et al. Building a data warehouse for twitter stream exploration
Agarwal et al. A data‐centered collaboration portal to support global carbon‐flux analysis
US10599654B2 (en) Method and system for determining unique events from a stream of events
Pfeffer et al. Just another day on Twitter: a complete 24 hours of Twitter data
CN110023925A (en) It generates, access and display follow metadata
US20160196360A1 (en) System and method for searching structured and unstructured data
JP5373818B2 (en) Centralized social network response tracking
CN110414259B (en) Method and equipment for constructing data category and realizing data sharing
CN103064832B (en) A kind of method and apparatus for operating multilayered structure data acquisition system
CN105869057A (en) Comment storage device, comment reading method and apparatus, and comment writing method and apparatus
CN106997557A (en) Sequence information acquisition method and device
US20140101249A1 (en) Systems and Methods for Managing and Presenting Information
Abel et al. Linkage, aggregation, alignment and enrichment of public user profiles with Mypes
CN108897859A (en) A kind of metadata retrieval method, apparatus, equipment and computer readable storage medium
CN107665237A (en) Data structure sorter, the distribution subscription system of unstructured data and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant