Embodiment
Method, device, system to the storage of embodiment of the invention searching route is described in detail below in conjunction with accompanying drawing.
The embodiment of the invention provides a kind of method of searching route storage, as shown in Figure 1, comprising:
101, data to be retrieved are resolved, obtain at least one critical data.
Wherein, described critical data is for the data that make up searching route.
Need to prove, when searching route refers to retrieve according to the retrieval critical data that receives, employed path.
Concrete, the device of searching route storage is resolved the content of data to be retrieved, parses critical data from the content of data to be retrieved.Preferably, data to be retrieved are resolved, obtaining version is the critical data of tree type.Be, Data Analysis to be retrieved gone out the critical data of tree.
Optionally, data to be retrieved are XML (Extensible Markup Language, extend markup language) data.
Need to prove that data to be retrieved during other forms of retrieval, are the data of retrieve data content also, the present invention does not limit this.
Need to prove that the device of described searching route can be a kind of computing equipment, referred to as main frame, as shown in Figure 2.Wherein, main frame can comprise any computing equipment that current techniques is known, such as server, desk-top computer etc.Inner at main frame, operating system and other application programs are installed, the present invention does not limit this.
102, according to described at least one critical data, generate at least one Hash keys pair.
Wherein, searching route by at least one described Hash keys to forming.Described Hash keys is to comprising: the first element and the second element.The upper level element that described the second element is described the first element.The first element is a critical data, and the second element is the upper level data of this critical data.
Concrete, the device of searching route storage is after having obtained at least one critical data, and with each element of at least one critical data of obtaining, the upper level element of element therewith generates Hash keys pair.
Further, if the version of at least one critical data is the tree type, be the critical data of tree type according to described version then, generate at least one Hash keys pair.Be, each node in the tree and father node thereof are generated a Hash keys pair.
Need to prove that each node in the tree is a critical data, this moment, the first right element of described Hash keys was a node in the critical data of tree; The second element that described Hash keys is right is the father node of described the first element.
Exemplary, the critical data of hypotheses creation is tree, as shown in Figure 3.The critical data that generates comprises: root node is life range, and root node has three child nodes, is respectively country, island and lake.Wherein, there are three child nodes in country, is respectively population, name, city.There are three byte points in the city, is respectively population, sign, name.There are two child nodes on island, are respectively name, the area.There are two child nodes in the lake, is respectively name, the area.Each node of the critical data of tree and father node thereof are generated Hash keys pair.Wherein, with each node as the first right element of Hash keys, with its father node as the second right element of Hash keys.The Hash keys that generates is to as shown in table 1 below.
Table 1
<area, island 〉 |
<area, the lake 〉 |
<city, country 〉 |
<country, life circle 〉 |
<sign, the city 〉 |
<island, life circle 〉 |
<lake, life circle 〉 |
<name, country 〉 |
<name, the city 〉 |
<name, island 〉 |
<name, the lake 〉 |
<population, country 〉 |
<population, the city 〉 |
103, storage described at least one Hash keys pair.
Concrete, at least one Hash keys that the device storage of searching route storage generates pair.Optionally, the device of searching route storage can according to default hash algorithm, obtain described at least one Hash keys to the cryptographic hash of correspondence; According to the cryptographic hash of described at least one Hash keys to correspondence, with described at least one Hash keys pair, be stored to described at least one Hash keys position corresponding to the cryptographic hash of correspondence.
Need to prove that default hash algorithm is that the device of searching route storage sets in advance.
Wherein, the device of searching route storage can obtain the cryptographic hash of the first right element of Hash keys according to default hash algorithm, according to this cryptographic hash Hash keys that this cryptographic hash is corresponding to storing so far position corresponding to cryptographic hash.
As above routine described, suppose that default hash algorithm is the ASCI code of asking for the first letter of the first right element of Hash keys, and ask for remainder take 4 as divisor.Suppose according to above-mentioned default hash algorithm, ask for<area, island〉cryptographic hash be 3, general<area then, island〉be stored to the position that cryptographic hash is 3 correspondences.
Further, according to the cryptographic hash of described at least one Hash keys to correspondence, with described at least one Hash keys pair, be stored to described at least one Hash keys in memory node corresponding to the cryptographic hash of correspondence.
Concrete, the device of searching route storage with Hash keys to being stored to Hash keys in memory node corresponding to the cryptographic hash of correspondence.
Need to prove that the device management memory node of searching route storage is with reference to shown in Figure 2.Memory node can comprise the memory device that current techniques is known, such as Redundant Array of Independent Disks (RAID) (Redundant Arrays of Independent Disks, RAID), disk cluster (Justa Bunch Of Disks, JBOD), direct access storage device (Direct Access StorageDevice, the disc driver of one or more interconnection DASD), such as the fc tape storage device FC of tape library, one or more storage unit, the present invention does not limit this.
The embodiment of the invention provides the method for a kind of searching route storage, and by data to be tested are resolved, the critical data that parses according to the critical data that parses, is obtained Hash keys pair, and stores described Hash keys pair.Like this, each Hash keys of storage has reduced redundant information to only having two elements, thereby has realized reducing the waste of storage space, has improved the utilization factor of storage space.
After step 103, said method as shown in Figure 4, also comprises:
The data described to be retrieved of 104, will not resolve are stored in the described memory node.
Concrete, the device of searching route storage can be equally divided into the number of the described data based memory node to be retrieved of not resolving the first integral multiple of memory node.The first integer data to be retrieved can sequentially can be stored in each memory node.Also the first integer data based default hash algorithm to be retrieved can be generated corresponding cryptographic hash, the cryptographic hash of the first integer data based correspondence to be retrieved is stored in the corresponding memory node.
Need to prove that the first integer is to be not less than 1 integer.
Original data can be stored to memory node by step 104, so that when receiving search key, can inquire about according to the data of storage, thereby obtain the data relevant with search key.
After step 104, said method as shown in Figure 5, also comprises:
105, receive search key and search key type.
Concrete, if the user needs data query, then the user need input search key, and input search key type.For example, the user will inquire about the correlation circumstance in Xi'an, city, and then inputting the search key type is name, and search key is Xi'an, and then the device of searching route receives this search key, and the search key type.
106, according to described search key type, obtain the cryptographic hash of described search key type.
Concrete, after the device of searching route storage receives the search key type, with the default hash algorithm of search key type utilization, calculate the cryptographic hash of search key type.
Exemplary, the type that the device of searching route storage receives search key is name, then according to default hash algorithm, obtains cryptographic hash corresponding to name.
107, according to the cryptographic hash of the described search key type obtained, obtain the first Hash keys pair.
Wherein, described the first Hash keys Hash keys that the cryptographic hash that refers to according to the search key type is found pair.
Concrete, the device of searching route storage is according to the cryptographic hash of the described search key type of obtaining, and obtains cryptographic hash corresponding to memory location first Hash keys identical with the cryptographic hash of described search key type pair; The first element that described the first Hash keys of cycle index is right, and obtain the cryptographic hash of the second right element of described the first Hash keys; According to the cryptographic hash of the second right element of described described the first Hash keys of obtaining, obtain the second identical Hash keys of the cryptographic hash of the second right element of cryptographic hash corresponding to memory location and described the first Hash keys pair; According to the identical Hash keys of the cryptographic hash of the second right element of cryptographic hash corresponding to described memory location and described the first Hash keys pair, upgrade described the first Hash keys pair, until the second Hash keys of obtaining is to for empty; Record the second right element of the first Hash keys.
Wherein, the first element that described the second Hash keys is right is the second right element of described the first Hash keys.
Specifically, after the device of searching route storage has obtained the cryptographic hash of search key type, search according to this cryptographic hash that to have stored Hash keys right, and position corresponding to this cryptographic hash.Hash keys is right having stored, and obtains the Hash keys pair that the search key type is the first element in position corresponding to this cryptographic hash, is to obtain the first Hash keys pair.Obtain the first Hash keys to rear, recording the first right element of the first Hash keys, be the record retrieval key word type, and obtaining the second right element of the first Hash keys.According to default hash algorithm, calculate the cryptographic hash of the second right element of the first Hash keys, search according to this cryptographic hash that to have stored Hash keys right, and the position corresponding to cryptographic hash of the second element that the first Hash keys is right, and obtain the second identical Hash keys of the cryptographic hash of the second right element of cryptographic hash corresponding to memory location and described the first Hash keys pair.That is to say that Hash keys is right having stored, and what obtain the second right element of the first Hash keys in position corresponding to the cryptographic hash of right the second element of the first Hash keys is second Hash keys pair of the first element.Obtaining the second Hash keys to rear, according to this second Hash keys to upgrading the first Hash keys pair, be existing the second Hash keys replacing the first Hash keys pair, thereby generate the first new Hash keys pair, repeat the first right element of record the first Hash keys, and according to default hash algorithm, calculate the cryptographic hash of the second right element of the first Hash keys, and the identical memory location of cryptographic hash of right the second element of the cryptographic hash of searching the memory location and the first Hash keys, obtain the second Hash keys pair, and then according to the second Hash keys to upgrading the first Hash keys pair, until the second Hash keys of obtaining is to for empty; Record the second right element of the first Hash keys.
Exemplary, as above routine described, be name if the user inputs the search key type, and, the device of searching route storage with Hash keys to being stored in the memory node.The device of searching route storage calculates the cryptographic hash of name according to default hash algorithm, the cryptographic hash of supposing the name that calculates is 2, search according to cryptographic hash 2 then that to have stored Hash keys right, the memory node of cryptographic hash 2 correspondences, be according to cryptographic hash 2, the cryptographic hash that finds the memory location is 2 memory location.In the memory node of cryptographic hash 2 correspondences, obtain name and be the Hash keys pair of the first element, be and obtain the first Hash keys pair.If the Hash keys that to have stored 4 the first elements in memory node be name pair, then with this 4 Hash keys to all being considered as the first Hash keys pair.These four first Hash keys are to being respectively<name country 〉,<name, the city 〉,<name, island 〉,<name, the lake 〉.The below is with<name, country〉describe for example.
The first Hash keys is to being<name country 〉, then record the first right element name of this first Hash keys, and obtain right the second element country of this first Hash keys.According to default hash algorithm, calculate the cryptographic hash of the second right element country of the first Hash keys, if the cryptographic hash of calculating is 1, then search the memory node of cryptographic hash 1 correspondence of the second right element country of the first Hash keys.In this memory node, obtain the first element and be the Hash keys pair of country, be and obtain the second Hash keys pair.Be the Hash keys of country pair if in memory node, only stored first element, then obtained second Hash keys pair.At this moment, the second Hash keys is to being<country life circle 〉., be the first Hash keys by<name, country upgrading the first Hash keys pair according to the second Hash keys be updated to<country life circle.Be updated to the first Hash keys to rear, record right the first element country of the first Hash keys.Obtain the second right element life circle of the first Hash keys.According to default hash algorithm, calculate the cryptographic hash of the second right element life circle of the first Hash keys, if the cryptographic hash of calculating is 2, then search the memory node of cryptographic hash 2 correspondences of the second right element life circle of the first Hash keys.In this memory node, obtain the first element and be the Hash keys pair of life range, be and obtain the second Hash keys pair, this moment cryptographic hash 3 correspondences memory node in do not store the Hash keys pair that the first element is life range, that is to say, the second Hash keys of obtaining records the second right element of the first Hash keys to for empty, is record life circle.At this moment, the data of record are name, country, life circle.Other three first Hash keys are right<name, the city 〉,<name, island 〉,<name, the lake〉disposal route, with the first Hash keys right<name, country〉disposal route identical, do not repeat them here, as shown in Figure 6.At this moment, the first Hash keys of obtaining is right<name, country〉the record content be name, country, life circle.The first Hash keys is right<name, the city〉the record content be name, city, country, life circle.The first Hash keys is right<name, island〉the record content be name, island, life circle.The first Hash keys is right<name, the lake〉the record content be name, lake, life circle.
108, according to described the first Hash keys of obtaining pair, set up searching route.
Concrete, the device of searching route storage is obtaining the first Hash keys to rear, according to this first Hash keys to setting up searching route.Further, device first element and described first Hash keys right second element right according at least one first Hash keys of described record of searching route storage, according to writing time, backward is set up searching route.
Wherein, backward is set up and to be referred to according to writing time, with arranged sequentially according to writing time from writing time the latest to writing time the earliest of record content.
Need to prove, owing to obtain the first Hash keys pair according to the search key type, the second element that Hash keys is right is the upper level element of the first element, so, when recording right the first element of the first Hash keys, the first element that the first Hash keys of current record is right is the upper level of the first right element of the first Hash keys of last record.The search key type of user's input is the first right element of the first Hash keys of first record.The second right element of the first Hash keys of record is last element at last, is the root node of tree.
Wherein, the device of searching route storage is according to the writing time of the second right element of right the first element of at least one first Hash keys and described the first Hash keys, with the content of record, according to from writing time the latest to the order of writing time the earliest, set up searching route.
Exemplary, upper example is described, at least one first element and the second element that 4 the first Hash keys obtaining are right, be respectively the first Hash keys right<name, country〉the record content be name, country, life circle.The first Hash keys is right<name, the city〉the record content be name, city, country, life circle.The first Hash keys is right<name, island〉the record content be name, island, life circle.The first Hash keys is right<name, the lake〉the record content be name, lake, life circle.With the first Hash keys right<name, country〉the record content be name, country, life circle is that example describes.
If the first Hash keys is right<name, country〉the record content be name, country, life circle.Wherein, the writing time of name, country took second place the earliest, and the writing time of life circle the latest.At this moment, according to arriving the earliest order of writing time writing time the latest, set up searching route, the searching route of setting up this moment is life range, country, name.Other three first Hash keys are to setting up the method for searching route, with the first Hash keys to being right<name, country the method for setting up searching route is identical, do not repeat them here.4 searching routes obtaining are: life circle, country, name; Life circle, country, city, name; Life circle, island, name; Life circle, lake, name.
109, treat retrieve data according to described searching route and described search key and retrieve, obtain retrieve data.
Concrete, the device of searching route storage has obtained searching route, finding data to be retrieved according to searching route retrieves, find with searching route under data to be retrieved, at this moment, search data to be retrieved under the searching route according to the search key of user input, thereby find the retrieve data relevant with search key.
Further, described at least one Hash keys to the situation that is stored to memory node under, the device of searching route storage is sent to described searching route and described search key in the right memory node of storage Hash keys, so that described memory node is according to described searching route and described search key, described described data to be tested of not resolving to storage are retrieved, and return retrieve data.The device of searching route storage receives the retrieve data that described memory node returns.
Optionally, the device of searching route storage is added into described searching route and described search key in the inquiry request message, and inquiry request message is sent in the right memory node of storage Hash keys.
Exemplary, as above routine described, 4 query and search paths that the device of searching route storage obtains are: life circle, country, name; Life circle, country, city, name; Life circle, island, name; Life circle, lake, name.4 searching routes that the device of searching route storage will obtain, and search key Xi'an of the user who receives input all is sent to and has stored in all right memory nodes of Hash keys.Memory node receives 4 searching routes that the device of searching route storage sends, and behind the search key Xi'an of user's input, according to 4 searching routes, and the data to be retrieved of not resolving of retrieve stored respectively.Exemplary, according to life circle, country, the data to be retrieved of not resolving of name search storage, after retrieving the data that conform to, search key Xi'an according to user's input, continue the data that retrieval conforms to, if in the data of storage, retrieve the national name retrieve data identical with Xi'an, then retrieve data is back to the device of searching route storage, do not retrieve the national name retrieve data identical with Xi'an, then the device to the searching route storage returns the relevant information that does not retrieve the national name that conforms to Xi'an.According to the data to be checked of not resolving of other three searching routes retrieve stored and according to life circle, country, the data to be retrieved of not resolving of name search storage are identical, do not repeat them here.
Memory node is life range in searching route only, country, the city, find out the retrieve data relevant with Xi'an under the searching route of name, do not retrieve relevant information under other searching routes, then the device of searching route storage can receive the retrieve data relevant with Xi'an of memory node feedback.
110, return described retrieve data.
Concrete, after the device of searching route storage receives the retrieve data relevant with Xi'an of memory node feedback, this retrieve data is fed back to subscriber equipment.
The embodiment of the invention provides the method for a kind of searching route storage, and by data to be tested are resolved, the critical data that parses according to the critical data that parses, is obtained Hash keys pair, and stores described Hash keys pair.Like this, each Hash keys of storage has reduced redundant information to only having two elements, thereby has realized reducing the waste of storage space, has improved the utilization factor of storage space.After receiving the search key and search key type of user input, according to the search key type, set up searching route, and according to the search key of this searching route and user's input, obtain the required retrieve data of user, and then feed back to the user.Improve inquiry velocity, thereby improved user's experience.
The embodiment of the invention provides a kind of device of searching route storage, as shown in Figure 7, comprising:
Acquiring unit 601 is used for data to be retrieved are resolved, and obtains at least one critical data.
Wherein, described critical data is for the data that make up searching route.
Need to prove, when searching route refers to retrieve according to the retrieval critical data that receives, employed path.
Concrete, described acquiring unit 601 specifically is used for, and data to be retrieved are resolved, and obtaining version is the critical data of tree type.
Generation unit 602 is used for described at least one critical data of obtaining according to described acquiring unit 601, generates at least one Hash keys pair.
Wherein, searching route by at least one described Hash keys to forming.Described Hash keys is to comprising: the first element and the second element; The upper level element that described the second element is described the first element.The first element is a critical data, and the second element is the upper level data of this critical data.
Concrete, described generation unit 602 specifically is used for, and the described version of obtaining according to described acquiring unit 601 is the critical data of tree type, generates at least one Hash keys pair.
At this moment, the first element that described Hash keys is right is a node in the critical data of tree; The second element that described Hash keys is right is the father node of described the first element.
Storage unit 603 is used for storing described at least one Hash keys that described generation unit 602 obtains pair.
Concrete, described storage unit 603 specifically is used for, and according to default hash algorithm, obtains described at least one Hash keys to the cryptographic hash of correspondence.According to the cryptographic hash of described at least one Hash keys to correspondence, with described at least one Hash keys pair, be stored to described at least one Hash keys in memory node corresponding to the cryptographic hash of correspondence.
Described storage unit 603, the described data to be tested that also are used for not resolving are stored to described memory node.
Further, the device of above-mentioned searching route storage as shown in Figure 8, also comprises:
Receiving element 604 is used for receiving search key and search key type.
Described acquiring unit 601 also is used for the described search key type according to described receiving element 604 receptions, obtains the cryptographic hash of described search key type.
Described acquiring unit 601 also is used for the cryptographic hash according to the described search key type of obtaining, and obtains the first Hash keys pair.
Wherein, described the first Hash keys Hash keys that the Hash lookup that refers to according to the search key type is arrived pair.
Concrete, described acquiring unit 601 specifically is used for, and according to the cryptographic hash of the described search key type of obtaining, obtains cryptographic hash corresponding to memory location first Hash keys identical with the cryptographic hash of described search key type pair.The first element that described the first Hash keys of cycle index is right, and obtain the cryptographic hash of the second right element of described the first Hash keys.According to the cryptographic hash of the second right element of described described the first Hash keys of obtaining, obtain the second identical Hash keys of the cryptographic hash of the second right element of cryptographic hash corresponding to memory location and described the first Hash keys pair; The first element that described the second Hash keys is right refers to the second element that described the first Hash keys is right.According to the identical Hash keys of the cryptographic hash of the second right element of cryptographic hash corresponding to described memory location and described the first Hash keys pair, upgrade described the first Hash keys pair, until the second Hash keys of obtaining is to for empty; Record the second right element of the first Hash keys.
Set up unit 605, be used for described the first Hash keys of obtaining according to described acquiring unit 601 pair, set up searching route.
Concrete, the described unit 605 of setting up specifically is used for, first element right according at least one first Hash keys of described record, and according to writing time, backward is set up searching route.
Wherein, backward is set up and to be referred to according to writing time, with arranged sequentially according to writing time from writing time the latest to writing time the earliest of record content.
Described acquiring unit 601 also is used for setting up the described search key that the described searching route set up unit 605 and described receiving element 604 receive and carrying out the band retrieve data is retrieved according to described, obtains retrieve data.
Concrete, acquiring unit 601 specifically is used for, described at least one Hash keys to the situation that is stored to memory node under, described searching route and described search key are sent in the right memory node of storage Hash keys, so that described memory node is according to described searching route and described search key, described described data to be tested of not resolving to storage are retrieved, and return retrieve data.Receive the retrieve data that described memory node returns.
The embodiment of the invention provides the device of a kind of searching route storage, and by data to be tested are resolved, the critical data that parses according to the critical data that parses, is obtained Hash keys pair, and stores described Hash keys pair.Like this, each Hash keys of storage has reduced redundant information to only having two elements, thereby has realized reducing the waste of storage space, has improved the utilization factor of storage space.After receiving the search key and search key type of user input, according to the search key type, set up searching route, and according to the search key of this searching route and user's input, obtain the required retrieve data of user, and then feed back to the user.Improve inquiry velocity, thereby improved user's experience.
The embodiment of the invention provides a kind of device of searching route storage, as shown in Figure 9, comprising: storer 801 and the processor 802 that is connected with storer 801.Certainly, the device of searching route storage can also comprise the universal components such as antenna, Base-Band Processing parts, middle radio frequency processing parts, input-output unit, and the embodiment of the invention is in this no longer any restriction.
Wherein, storage batch processing code in the storer 801, processor 802 is used for calling the program code of storer 801, is used for carrying out following operation:
Processor 802 is used for data to be retrieved are resolved, and obtains at least one critical data.
Wherein, described critical data is for the data that make up searching route.
Need to prove, when searching route refers to retrieve according to the retrieval critical data that receives, employed path.
Concrete, described processor 802 specifically is used for, and data to be retrieved are resolved, and obtaining version is the critical data of tree type.
Processor 802 also is used for according to described at least one critical data, generates at least one Hash keys pair.
Wherein, searching route by at least one described Hash keys to forming.Described Hash keys is to comprising: the first element and the second element; The upper level element that described the second element is described the first element.The first element is a critical data, and the second element is the upper level data of this critical data.
Concrete, described processor 802 specifically is used for, and is the critical data of tree type according to described version, generates at least one Hash keys pair.
This moment, the first right element of described Hash keys was a node in the critical data of tree; The second element that described Hash keys is right is the father node of described the first element.
Storer 801 is used for storing described at least one Hash keys that described processor 802 obtains pair.
Concrete, described storer 801 specifically is used for, and according to default hash algorithm, obtains described at least one Hash keys to the cryptographic hash of correspondence.According to the cryptographic hash of described at least one Hash keys to correspondence, with described at least one Hash keys pair, be stored to described at least one Hash keys in memory node corresponding to the cryptographic hash of correspondence.
Described storer 801, the described data to be tested that also are used for not resolving are stored to described memory node.
Further, the device of above-mentioned searching route storage with reference to shown in Figure 9, also comprises: receiver 803.Wherein, described receiver 803 links to each other with processor 802 respectively.
Receiver 803 is used for receiving search key and search key type.
Described processor 802 also is used for the described search key type according to described receiver 804 receptions, obtains the cryptographic hash of described search key type.
Described processor 802 also is used for the cryptographic hash according to the described search key type of obtaining, and obtains the first Hash keys pair.
Wherein, described the first Hash keys Hash keys that the Hash lookup that refers to according to the search key type is arrived pair.
Concrete, described processor 802 specifically is used for, and according to the cryptographic hash of the described search key type of obtaining, obtains cryptographic hash corresponding to memory location first Hash keys identical with the cryptographic hash of described search key type pair.The first element that described the first Hash keys of cycle index is right, and obtain the cryptographic hash of the second right element of described the first Hash keys.According to the cryptographic hash of the second right element of described described the first Hash keys of obtaining, obtain the second identical Hash keys of the cryptographic hash of the second right element of cryptographic hash corresponding to memory location and described the first Hash keys pair; The first element that described the second Hash keys is right refers to the second element that described the first Hash keys is right.According to the identical Hash keys of the cryptographic hash of the second right element of cryptographic hash corresponding to described memory location and described the first Hash keys pair, upgrade described the first Hash keys pair, until the second Hash keys of obtaining is to for empty; Record the second right element of the first Hash keys.
Processor 802 also is used for setting up searching route according to described the first Hash keys pair.
Concrete, described processor 802 specifically is used for, first element right according at least one first Hash keys of described record, and according to writing time, backward is set up searching route.
Wherein, backward is set up and to be referred to according to writing time, with arranged sequentially according to writing time from writing time the latest to writing time the earliest of record content.
Described processor 802 also is used for carrying out the band retrieve data is retrieved according to the described search key of described searching route and 604 receptions of described receiving element, obtains retrieve data.
Concrete, processor 802 specifically is used for, described at least one Hash keys to the situation that is stored to memory node under, described searching route and described search key are sent in the right memory node of storage Hash keys, so that described memory node is according to described searching route and described search key, described described data to be tested of not resolving to storage are retrieved, and return retrieve data.Receive the retrieve data that described memory node returns.
The embodiment of the invention provides the device of a kind of searching route storage, and by data to be tested are resolved, the critical data that parses according to the critical data that parses, is obtained Hash keys pair, and stores described Hash keys pair.Like this, each Hash keys of storage has reduced redundant information to only having two elements, thereby has realized reducing the waste of storage space, has improved the utilization factor of storage space.After receiving the search key and search key type of user input, according to the search key type, set up searching route, and according to the search key of this searching route and user's input, obtain the required retrieve data of user, and then feed back to the user.Improve inquiry velocity, thereby improved user's experience.
The embodiment of the invention provides a kind of system of searching route storage, as shown in figure 10, comprising: host node 901, switch 902, service server 903, terminal 904.Wherein, described road host node 901 is the device of the searching route storage described in above-described embodiment.
Further, the system of above-mentioned searching route storage with reference to shown in Figure 10, also comprises: memory node 905.Wherein, the described memory node 905 of described host node 901 management.
The embodiment of the invention provides method, the Apparatus and system of a kind of searching route storage, and by data to be tested are resolved, the critical data that parses according to the critical data that parses, is obtained Hash keys pair, and stores described Hash keys pair.Like this, each Hash keys of storage has reduced redundant information to only having two elements, thereby has realized reducing the waste of storage space, has improved the utilization factor of storage space.After receiving the search key and search key type of user input, according to the search key type, set up searching route, and according to the search key of this searching route and user's input, obtain the required retrieve data of user, and then feed back to the user.Improve inquiry velocity, thereby improved user's experience.
The above; be the specific embodiment of the present invention only, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by described protection domain with claim.