CN110399512A - A kind of map memory management method and device - Google Patents

A kind of map memory management method and device Download PDF

Info

Publication number
CN110399512A
CN110399512A CN201910679047.8A CN201910679047A CN110399512A CN 110399512 A CN110399512 A CN 110399512A CN 201910679047 A CN201910679047 A CN 201910679047A CN 110399512 A CN110399512 A CN 110399512A
Authority
CN
China
Prior art keywords
storage assembly
destination node
creation
map logo
object map
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.)
Granted
Application number
CN201910679047.8A
Other languages
Chinese (zh)
Other versions
CN110399512B (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 Mininglamp Software System Co ltd
Original Assignee
Beijing Mininglamp Software System 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 Mininglamp Software System Co ltd filed Critical Beijing Mininglamp Software System Co ltd
Priority to CN201910679047.8A priority Critical patent/CN110399512B/en
Publication of CN110399512A publication Critical patent/CN110399512A/en
Application granted granted Critical
Publication of CN110399512B publication Critical patent/CN110399512B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures

Abstract

The present invention provides a kind of map memory management method and devices, wherein this method comprises: receiving the acquisition request of the acquisition figure example of client initiation on the destination node of device clusters, wherein carry first object map logo in the acquisition request;Judged in the storage assembly disposed in advance as the device clusters on the destination node with the presence or absence of figure example corresponding with the first object map logo, wherein, the storage assembly includes adjacency list storage assembly, and the adjacency list storage assembly is for storing profile information and attribute in a manner of carrying the figure example that the map title claims;If the determination result is NO, figure example corresponding with the first object map logo is created;The figure example for carrying the first object map logo is stored into the adjacency list storage assembly, the low problem of the creation figure example real-time of cluster interior joint in the related technology is can solve, can satisfy certain requirement for multichannel chromatogram storage management real-time.

Description

A kind of map memory management method and device
Technical field
The present invention relates to information technology fields, in particular to a kind of map memory management method and device.
Background technique
In pure chart database, supports the only TigerGraph and JanusGraph of more figures, feelings are supported to the two below Condition is described in detail.
The sentence of TigerGraph creation figure is: CREATE GRAPH<gname>(<list ofvertex types and Edge types >), and more figures be it is associated with the user, each user's synchronization only operates the figure being currently running Example.
JanusGraph can be made of cluster multiple nodes, therefore in the more figures of creation, need to guarantee each in cluster What node can synchronize creates figure example.Its way is: matching in ConfigurationManagementGraph in advance Template has been set, the associated configuration of figure example, each node meeting are then created by ConfigurationManagementGraph It is spaced the associated configuration of figure example read in ConfigurationManagementGraph in 20 seconds, then intra-node Corresponding figure example is created in ConfiguredGraphFactory.Such mode provide solved in a kind of distributed situation it is each A node creates the example stationary problem to be faced, and side effect is to need at most to wait 20 seconds to ensure all nodes in cluster All come into force.The higher a kind of application of requirement of real-time is not suitable for using the chart database for realizing this way to manage.
In real usage scenario, multichannel chromatogram generally transfers to cluster management, has one for multichannel chromatogram storage management real-time Provisioning request, while for the ease of providing service simultaneously to multiple figures under same user, how to be carried out for the multichannel chromatogram in cluster Storage management not yet proposes solution in the related technology.
For the low problem of the creation figure example real-time of cluster interior joint in the related technology, not yet proposition solution.
Summary of the invention
The embodiment of the invention provides a kind of map memory management method and devices, at least to solve cluster in the related technology The low problem of the creation figure example real-time of interior joint.
According to one embodiment of present invention, a kind of map memory management method is provided, comprising:
The acquisition request of the acquisition figure example of client initiation is received on the destination node of device clusters, wherein institute It states and carries first object map logo in acquisition request;
Judge on the destination node in advance as the device clusters deployment storage assembly in the presence or absence of with it is described The corresponding figure example of first object map logo, wherein the storage assembly includes adjacency list storage assembly, the adjacency list storage Component is for storing profile information and attribute in a manner of carrying the figure example that the map title claims;
If the determination result is NO, it is real to create figure corresponding with the first object map logo for the destination node Example;
The destination node stores the figure example for carrying the first object map logo to the adjacency list storage assembly In.
Optionally, the method also includes:
In the case where the result judged is is, obtained from the storage assembly on the destination node and to described Client returns to the corresponding figure example of the first object map logo.
Optionally, the figure example for carrying the first object map logo is stored to the adjacency list in the destination node After in storage assembly, the method also includes:
The corresponding figure example reference of the first object map logo is created on the destination node.
Optionally, after the corresponding figure example reference of the first object map logo is created on the destination node, institute State method further include:
Other nodes creation and described first in the destination node notice device clusters in addition to the destination node Target icon knows corresponding figure example reference;
The destination node receives other described nodes and completes the corresponding figure example reference wound of the first object map logo Message is completed in the creation built;
The destination node is completed message according to the creation and is sent completely and the first object figure to the client Identify the first response message of corresponding figure example.
Optionally, figure example corresponding with the first object map logo is created on the destination node includes:
The destination node obtains preset configuration item, and generates according to the configuration item that creation figure example is associated to match It sets;
The destination node is according to the associated configuration of the creation figure example by way of interacting with the storage assembly Create figure example corresponding with the first object map logo.
Optionally, after creating figure example corresponding with the first object map logo, the method also includes:
It receives and deletes the deletion request message that the second target icon knows corresponding figure example;
Second target icon is deleted from the adjacency list according to the deletion request message and knows corresponding figure example;
It is sent to other described nodes and deletes the deletion instruction that second target icon knows corresponding figure example reference;
It receives the second target icon described in other described knot removals and knows the deletion returned after corresponding figure example reference Complete message;
Message, which is completed, according to the deletion returns to the corresponding figure reality of deletion the second target icon knowledge to the client Second response message of example.
Optionally, received on the destination node of device clusters client initiation acquisition figure example acquisition request it Before, the method also includes:
When destination node starting, the destination node is linked into the device clusters, loads the configuration text of default The figure example configured in part.
Optionally, the storage assembly further includes index storage assembly and/or version store component, wherein the index Storage assembly is used to store the index established according to the part attribute of the profile information, and the version store component is for storing The corresponding version information of the profile information.
According to another embodiment of the invention, a kind of map memory management unit is additionally provided, device clusters are applied to Destination node, comprising:
First receiving module, the acquisition request of the acquisition figure example for receiving client initiation, wherein the acquisition First object map logo is carried in request;
Judgment module, for judge in advance as the device clusters deployment storage assembly in whether there is and described first Target icon knows corresponding figure example, wherein the storage assembly includes adjacency list storage assembly, the adjacency list storage assembly For storing profile information and attribute in a manner of carrying the figure example that the map title claims;
First creation module, for if the determination result is NO, creating corresponding with the first object map logo Figure example;
Memory module, the figure example for that will carry the first object map logo are stored to the adjacency list storage assembly In.
Optionally, described device further include:
Module is obtained, in the case where the result judged is as being, the acquisition and to the visitor from the storage assembly Family end returns to the corresponding figure example of the first object map logo.
Optionally, described device further include:
Second creation module is drawn for creating the corresponding figure example of the first object map logo on the destination node With.
Optionally, described device further include:
Notification module, for notifying other nodes in device clusters in addition to the destination node to create and described first Target icon knows corresponding figure example reference;
Second receiving module draws for receiving the corresponding figure example of other nodes completion first object map logo Message is completed with the creation of creation;
Module is completed, is sent completely and the first object figure for completing message according to the creation to the client Identify the first response message of corresponding figure example.
Optionally, first creation module includes:
Generation unit for obtaining preset configuration item, and generates according to the configuration item that creation figure example is associated to match It sets;
Creating unit, for being configured by way of being interacted with the storage assembly according to the creation figure example is associated Create figure example corresponding with the first object map logo.
Optionally, described device further include:
Third receiving module, for receiving the deletion request message deleted the second target icon and know corresponding figure example;
Removing module is known for deleting second target icon from the adjacency list according to the deletion request message Corresponding figure example;
Sending module deletes the corresponding figure example reference of the second target icon knowledge for sending to other described nodes Deletion instruction;
4th receiving module draws for receiving the corresponding figure example of the second target icon knowledge described in other described knot removals Message is completed with the deletion returned later;
Return module returns to deletion second target icon to the client for completing message according to the deletion Know the second response message of corresponding figure example.
Optionally, the storage assembly further includes index storage assembly and/or version store component, wherein the index Storage assembly is used to store the index established according to the part attribute of the profile information, and the version store component is for storing The corresponding temporal information of the profile information.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, meter is stored in the storage medium Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to still another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided, it is described Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described Step in embodiment of the method.
Through the invention, the acquisition that the acquisition figure example of client initiation is received on the destination node of device clusters is asked It asks, wherein first object map logo is carried in the acquisition request;Judge on the destination node in advance as the equipment It whether there is figure example corresponding with the first object map logo in the storage assembly of clustered deploy(ment), wherein the storage group Part includes adjacency list storage assembly, and the adjacency list storage assembly is for storing map in a manner of carrying the figure example that the map title claims Information and attribute;If the determination result is NO, the destination node creation is corresponding with the first object map logo Figure example;The destination node stores the figure example for carrying the first object map logo to the adjacency list storage assembly In, it can solve the low problem of the creation figure example real-time of cluster interior joint in the related technology, can satisfy for multichannel chromatogram Certain requirement of storage management real-time.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of hardware block diagram of the mobile terminal of map memory management method of the embodiment of the present invention;
Fig. 2 is the flow chart of map memory management method according to an embodiment of the present invention;
Fig. 3 is the block diagram of device clusters according to an embodiment of the present invention;
Fig. 4 is the schematic diagram of the relationship between cluster interior joint according to an embodiment of the present invention, map and storage;
Fig. 5 is the schematic diagram of creation map according to an embodiment of the present invention;
Fig. 6 is the schematic diagram according to an embodiment of the present invention for deleting map;
Fig. 7 is the block diagram of map memory management unit according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can be in mobile terminal, terminal or similar fortune It calculates and is executed in device.For running on mobile terminals, Fig. 1 is a kind of map memory management method of the embodiment of the present invention The hardware block diagram of mobile terminal, as shown in Figure 1, mobile terminal 10 may include that one or more (only shows one in Fig. 1 It is a) (processor 102 can include but is not limited to the processing of Micro-processor MCV or programmable logic device FPGA etc. to processor 102 Device) and memory 104 for storing data, optionally, above-mentioned mobile terminal can also include the biography for communication function Transfer device 106 and input-output equipment 108.It will appreciated by the skilled person that structure shown in FIG. 1 is only to show Meaning, does not cause to limit to the structure of above-mentioned mobile terminal.For example, mobile terminal 10 may also include it is more than shown in Fig. 1 Perhaps less component or with the configuration different from shown in Fig. 1.
Memory 104 can be used for storing computer program, for example, the software program and module of application software, such as this hair The corresponding computer program of message method of reseptance in bright embodiment, processor 102 are stored in memory 104 by operation Computer program realizes above-mentioned method thereby executing various function application and data processing.Memory 104 may include High speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or its His non-volatile solid state memory.In some instances, memory 104 can further comprise remotely setting relative to processor 102 The memory set, these remote memories can pass through network connection to mobile terminal 10.The example of above-mentioned network includes but not It is limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation Device (Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments to It can be communicated with internet.In an example, transmitting device 106 can for radio frequency (Radio Frequency, referred to as RF) module is used to wirelessly be communicated with internet.
Based on above-mentioned mobile terminal, a kind of map memory management method is present embodiments provided, Fig. 2 is according to the present invention The flow chart of the map memory management method of embodiment, as shown in Fig. 2, the process includes the following steps:
Step S202, the acquisition that the acquisition figure example of client initiation is received on the destination node of device clusters are asked It asks, wherein first object map logo is carried in the acquisition request;
Step S204 judges whether deposit in the storage assembly as device clusters deployment in advance on the destination node In figure example corresponding with the first object map logo, wherein the storage assembly includes adjacency list storage assembly, the neighbour Table storage assembly is connect for storing profile information and attribute in a manner of carrying the figure example that the map title claims;
Step S206, if the determination result is NO, the destination node creation and the first object map logo Corresponding figure example;
Step S208, the destination node store the figure example for carrying the first object map logo to the adjacency list In storage assembly.
S202 to S208 through the above steps receives the acquisition figure of client initiation on the destination node of device clusters The acquisition request of example, wherein first object map logo is carried in the acquisition request;Judge on the destination node pre- First to whether there is figure example corresponding with the first object map logo in the storage assembly of device clusters deployment, In, the storage assembly includes adjacency list storage assembly, and the adjacency list storage assembly is used for carry the figure example that the map title claims Mode store profile information and attribute;If the determination result is NO, the destination node creation and first mesh It marks on a map and identifies corresponding figure example;The destination node stores the figure example for carrying the first object map logo to the neighbour It connects in table storage assembly, can solve the low problem of the creation figure example real-time of cluster interior joint in the related technology, Neng Gouman Certain requirement of the foot for multichannel chromatogram storage management real-time.
In the embodiment of the present invention, in advance for the device clusters deployment storage assembly in exist and the first object In the case where the corresponding figure example of map logo, obtained from the storage assembly on the destination node and to the client Return to the corresponding figure example of the first object map logo.
In an optional embodiment, the figure example for carrying the first object map logo is stored in the destination node After into the adjacency list storage assembly, the corresponding figure example of the first object map logo is created on the destination node Reference, convenient for being operated after destination node to the reference of first object map logo corresponding figure example.
Further, after the corresponding figure example reference of the first object map logo is created on the destination node, The creation of other nodes and the first object icon in the destination node notice device clusters in addition to the destination node Know corresponding figure example reference;The destination node receives other described nodes and completes the corresponding figure of the first object map logo Message is completed in the creation of example reference creation;The destination node is completed message according to the creation and has been sent to the client At the first response message of figure example corresponding with the first object map logo.
In the embodiment of the present invention, above-mentioned steps S206 be can specifically include: the destination node obtains preset configuration item, And the creation associated configuration of figure example is generated according to the configuration item;The destination node is associated according to the creation figure example Configuration and the storage assembly interaction by way of create figure example corresponding with the first object map logo.
The embodiment of the present invention can also delete figure example, specifically, corresponding with the first object map logo creating After figure example, receives and delete the deletion request message that the second target icon knows corresponding figure example;According to the removal request Message deletes second target icon from the adjacency list and knows corresponding figure example;It is sent to other described nodes and deletes institute State the deletion instruction that the second target icon knows corresponding figure example reference;Receive the second target figure described in other described knot removals It identifies the deletion returned after corresponding figure example reference and completes message;Message is completed according to the deletion to return to the client It returns and deletes the second response message that second target icon knows corresponding figure example, above-mentioned second target icon is known can be with the One map logo is identical to be can also be different.
The destination node is linked into the device clusters by the embodiment of the present invention when destination node starting, is loaded The figure example configured in the configuration file of default, all node startings are required to the figure of the configuration in the configuration file of load default Example allows node to be based on storage assembly and map is manipulated and managed.
In the embodiment of the present invention, the storage assembly further includes index storage assembly and/or version store component, wherein The index storage assembly is used to store the index established according to the part attribute of the profile information, the version store component For storing the corresponding version information of the profile information.
In the embodiment of the present invention, deleted and second target from the index storage assembly according to deletion instruction The corresponding index of map logo;And/or it is judged whether there is from the version store component in described according to deletion instruction Second target icon knows corresponding version information, and in the last year that judging result is yes, just the new term begins, from the version store component Delete version information corresponding with the second target icon knowledge.
In real usage scenario, multichannel chromatogram generally transfers to cluster management, and for multichannel chromatogram storage management real-time It there are certain requirements, while for the ease of providing service simultaneously to multiple figures under same user, introducing multichannel chromatogram storage management, more figures Compose aggregated structure, multinode decentralization, each node status equality.Fig. 3 is device clusters according to an embodiment of the present invention Block diagram, as shown in figure 3, decentralization is convenient to horizontal expansion cluster scale to promote cluster processing data capability, without single Point risk improves cluster stability.Isolation is stored between multichannel chromatogram, the metadata and data between different maps are mutually independent, scheme more Spectrum can coexist.
Fig. 4 is the schematic diagram of the relationship between cluster interior joint according to an embodiment of the present invention, map and storage, such as Fig. 4 It is shown, since the main information (point and side) of each figure is stored by the way of adjacency list, maintenance multichannel chromatogram storage Essence is the multiple adjacency lists of maintenance and relevant information (including index and version information).Storage assembly includes: that adjacency list is deposited Storage, index storage and version storage.It is distributed that adjacency list storage and version storage are all made of mainstream NoSSQL Key-Value Database, index storage are used the search engine of mainstream, can guarantee the High Availabitity of storage level using components above.For cluster In each node safeguard that a group picture example is quoted, the reference of each example can provide the chart database operation of complete set. Allow the multiple figure example references of same user's operation.
Node can scan already existing node when starting, and node itself is added to cluster.It can only load and match at this time Set the figure example configured in file.And the figure example of each node quotes perfect process, using lazy mode.I.e. only as visitor When family end is shown according to the reference of figure name acquiring figure example, node can just be checked whether using scanning adjacency list storage mode There are figure examples, create figure example if figure example is not present, then improve node diagram example and quote and return.
In the embodiment of the present invention, map process is created, comprising: cluster selects the same client of node according to routing rule End interaction, each node seize figure creation permission.
It obtains permission node and creates figure example, interacted with each storage assembly, complete the creation of figure.
Other do not obtain the permission node creation to be obtained such as node of permission and complete.
After the completion of obtaining the creation of permission node, the creation reference of other nodes is notified.
After the completion of all nodes all create, client is returned result to.
Client is interacted according to the node that routing rule selects using the method for synchronization with cluster, and node and other nodes are simultaneously Line mode communication;Using such mode do not need to need as JanusGraph it is enforceable to wait 20 seconds, can be most The actual effect of the promotion processing creation mapping example of limits.
Map can also be deleted in the embodiment of the present invention, delete map process and specifically include: cluster is selected according to routing rule A node is selected out with client interaction, each node seizes figure and deletes permission.
Permission knot removal figure example is obtained, is interacted with each storage assembly, figure delete operation is completed.
Other there is no the permission knot removal to be obtained such as permission node and complete.
After the completion of obtaining permission knot removal, other knot removals is notified to quote.
After the completion of all nodes are all deleted, client is returned result to.
Client is interacted according to the node that routing rule selects using the method for synchronization with cluster, and node and other nodes are simultaneously Line mode communication;Using such mode do not need to need as JanusGraph it is enforceable to wait 20 seconds, can be most The actual effect of mapping example is deleted in the promotion processing of limits.
Fig. 5 is the schematic diagram of creation map according to an embodiment of the present invention, as shown in figure 5,1 indicates that client sends request To cluster, selecting Node3 by routing rule is responsive node.Node3 obtains the permission of creation figure, with each storage assembly Creation figure process is completed in (adjacency list storage, index storage, version storage) interaction.2,3 Node1 and Node2 defendant is indicated Know that figure has created completion.4 and 5 indicate that after the reference for completing to add creation figure, result is fed back to by Node1 and node2 Node3, at this moment Node3 can just return result to Client.If any process is abnormal situation in above procedure, can Client will be passed to extremely, informs creation failure.
Fig. 6 is the schematic diagram according to an embodiment of the present invention for deleting map, as shown in fig. 6, indicating that client sends request To cluster, selecting Node1 by routing rule is responsive node.Node1 obtains the permission for deleting figure, with each storage assembly (adjacency list storage, index storage, version storage) interaction is completed to delete figure process.2,3 Node2 and Node3 defendant is indicated Know that figure is deleted.4 and 5 indicate that result after the reference for completing to delete figure, is fed back to Node1 by Node2 and node3, this When Node1 can just return result to Client.It, can be by abnormal biography if any process is abnormal situation in above procedure Client is passed, informs creation failure.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
The embodiment of the present invention, additionally provides a kind of map memory management unit, the device for realizing above-described embodiment and Preferred embodiment, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module " The combination of the software and/or hardware of energy.It is hard although device described in following embodiment is preferably realized with software The realization of the combination of part or software and hardware is also that may and be contemplated.
Fig. 7 is the block diagram of map memory management unit according to an embodiment of the present invention, as shown in fig. 7, comprises:
First receiving module 72, the acquisition request of the acquisition figure example for receiving client initiation, wherein described to obtain It takes in request and carries first object map logo;
Judgment module 74, for judge in advance as in the storage assembly of device clusters deployment with the presence or absence of with described the One target icon knows corresponding figure example, wherein the storage assembly includes adjacency list storage assembly, the adjacency list storage group Part is for storing profile information and attribute in a manner of carrying the figure example that the map title claims;
First creation module 76, for if the determination result is NO, creating and the first object map logo pair The figure example answered;
Memory module 78, the figure example for that will carry the first object map logo are stored to the adjacency list storage group In part.
Optionally, described device further include:
Module is obtained, in the case where the result judged is as being, the acquisition and to the visitor from the storage assembly Family end returns to the corresponding figure example of the first object map logo.
Optionally, described device further include:
Second creation module is drawn for creating the corresponding figure example of the first object map logo on the destination node With.
Optionally, described device further include:
Notification module, for notifying other nodes in device clusters in addition to the destination node to create and described first Target icon knows corresponding figure example reference;
Second receiving module draws for receiving the corresponding figure example of other nodes completion first object map logo Message is completed with the creation of creation;
Module is completed, is sent completely and the first object figure for completing message according to the creation to the client Identify the first response message of corresponding figure example.
Optionally, first creation module includes:
Generation unit for obtaining preset configuration item, and generates according to the configuration item that creation figure example is associated to match It sets;
Creating unit, for being configured by way of being interacted with the storage assembly according to the creation figure example is associated Create figure example corresponding with the first object map logo.
Optionally, described device further include:
Third receiving module, for receiving the deletion request message deleted the second target icon and know corresponding figure example;
Removing module is known for deleting second target icon from the adjacency list according to the deletion request message Corresponding figure example;
Sending module deletes the corresponding figure example reference of the second target icon knowledge for sending to other described nodes Deletion instruction;
4th receiving module draws for receiving the corresponding figure example of the second target icon knowledge described in other described knot removals Message is completed with the deletion returned later;
Return module returns to deletion second target icon to the client for completing message according to the deletion Know the second response message of corresponding figure example.
Optionally, the storage assembly further includes index storage assembly and/or version store component, wherein the index Storage assembly is used to store the index established according to the part attribute of the profile information, and the version store component is for storing The corresponding temporal information of the profile information.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any Combined form is located in different processors.
Embodiment 3
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps Calculation machine program:
S11 receives the acquisition request of the acquisition figure example of client initiation on the destination node of device clusters, In, first object map logo is carried in the acquisition request;
S12, judge on the destination node in advance as the device clusters deployment storage assembly in the presence or absence of with The corresponding figure example of the first object map logo, wherein the storage assembly includes adjacency list storage assembly, the adjacency list Storage assembly is for storing profile information and attribute in a manner of carrying the figure example that the map title claims;
S13, if the determination result is NO, the destination node creation are corresponding with the first object map logo Figure example;
S14, the destination node store the figure example storage for carrying the first object map logo to the adjacency list In component.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read- Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard The various media that can store computer program such as disk, magnetic or disk.
Embodiment 4
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S11 receives the acquisition request of the acquisition figure example of client initiation on the destination node of device clusters, In, first object map logo is carried in the acquisition request;
S12, judge on the destination node in advance as the device clusters deployment storage assembly in the presence or absence of with The corresponding figure example of the first object map logo, wherein the storage assembly includes adjacency list storage assembly, the adjacency list Storage assembly is for storing profile information and attribute in a manner of carrying the figure example that the map title claims;
S13, if the determination result is NO, the destination node creation are corresponding with the first object map logo Figure example;
S14, the destination node store the figure example storage for carrying the first object map logo to the adjacency list In component.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc. With replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of map memory management method characterized by comprising
The acquisition request of the acquisition figure example of client initiation is received on the destination node of device clusters, wherein described to obtain It takes in request and carries first object map logo;
Judge on the destination node in advance as the device clusters deployment storage assembly in whether there is and described first Target icon knows corresponding figure example, wherein the storage assembly includes adjacency list storage assembly, the adjacency list storage assembly For storing profile information and attribute in a manner of carrying the figure example that the map title claims;
If the determination result is NO, the destination node creates figure example corresponding with the first object map logo;
The destination node stores the figure example for carrying the first object map logo into the adjacency list storage assembly.
2. the method according to claim 1, wherein the method also includes:
In the case where the result judged is is, obtained from the storage assembly on the destination node and to the client End returns to the corresponding figure example of the first object map logo.
3. the method according to claim 1, wherein the first object icon will be carried in the destination node After the figure example of knowledge is stored into the adjacency list storage assembly, the method also includes:
The corresponding figure example reference of the first object map logo is created on the destination node.
4. according to the method described in claim 3, it is characterized in that, creating the first object icon on the destination node After knowing corresponding figure example reference, the method also includes:
The creation of other nodes and the first object in the destination node notice device clusters in addition to the destination node The corresponding figure example reference of map logo;
The destination node receives other described nodes and completes the corresponding figure example reference creation of the first object map logo Message is completed in creation;
The destination node is completed message according to the creation and is sent completely and the first object map logo to the client First response message of corresponding figure example.
5. the method according to claim 1, wherein creation and the first object figure on the destination node Identifying corresponding figure example includes:
The destination node obtains preset configuration item, and generates the creation associated configuration of figure example according to the configuration item;
The destination node is created by way of interacting with the storage assembly according to the associated configuration of the creation figure example Figure example corresponding with the first object map logo.
6. the method according to any one of claims 1 to 5, which is characterized in that in creation and the first object icon After knowing corresponding figure example, the method also includes:
It receives and deletes the deletion request message that the second target icon knows corresponding figure example;
Second target icon is deleted from the adjacency list according to the deletion request message and knows corresponding figure example;
It is sent to other described nodes and deletes the deletion instruction that second target icon knows corresponding figure example reference;
Second target icon described in other knot removals described in receiving is known the deletion returned after corresponding figure example reference and is completed Message;
Message, which is completed, according to the deletion knows corresponding figure example to client return deletion second target icon Second response message.
7. the method according to any one of claims 1 to 5, which is characterized in that the storage assembly further includes that index is deposited Store up component and/or version store component, wherein the index storage assembly belongs to for storing according to the part of the profile information Property the index established, the version store component is for storing the corresponding version information of the profile information.
8. a kind of map memory management unit, which is characterized in that the destination node applied to device clusters, comprising:
First receiving module, the acquisition request of the acquisition figure example for receiving client initiation, wherein the acquisition request In carry first object map logo;
Judgment module, for judge in advance as the device clusters deployment storage assembly in whether there is and the first object The corresponding figure example of map logo, wherein the storage assembly includes adjacency list storage assembly, and the adjacency list storage assembly is used for Profile information and attribute are stored in a manner of carrying the figure example that the map title claims;
First creation module, for if the determination result is NO, creating figure corresponding with the first object map logo Example;
Memory module, the figure example for that will carry the first object map logo are stored into the adjacency list storage assembly.
9. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer Program is arranged to execute method described in described any one of claims 1 to 7 when operation.
10. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory Sequence, the processor are arranged to run the computer program to execute side described in described any one of claims 1 to 7 Method.
CN201910679047.8A 2019-07-25 2019-07-25 Map storage management method and device Active CN110399512B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910679047.8A CN110399512B (en) 2019-07-25 2019-07-25 Map storage management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910679047.8A CN110399512B (en) 2019-07-25 2019-07-25 Map storage management method and device

Publications (2)

Publication Number Publication Date
CN110399512A true CN110399512A (en) 2019-11-01
CN110399512B CN110399512B (en) 2022-04-26

Family

ID=68326060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910679047.8A Active CN110399512B (en) 2019-07-25 2019-07-25 Map storage management method and device

Country Status (1)

Country Link
CN (1) CN110399512B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202714A (en) * 2006-12-12 2008-06-18 国际商业机器公司 Method and system dispatching a message request to a service provider in a messaging environment
CN101540730A (en) * 2009-04-28 2009-09-23 华为技术有限公司 Address searching method, switch and network system
US20150088872A1 (en) * 2012-07-27 2015-03-26 Facebook, Inc. Social Static Ranking for Search
CN107633044A (en) * 2017-09-14 2018-01-26 国家计算机网络与信息安全管理中心 A kind of public sentiment knowledge mapping construction method based on focus incident
CN108075978A (en) * 2016-11-17 2018-05-25 华为技术有限公司 A kind of file transmitting method, node configuration method and relevant device
CN108304531A (en) * 2018-01-26 2018-07-20 北京泰尔英福网络科技有限责任公司 A kind of method for visualizing and device of Digital Object Identifier adduction relationship
CN108446367A (en) * 2018-03-15 2018-08-24 湖南工业大学 A kind of the packaging industry data search method and equipment of knowledge based collection of illustrative plates
CN108595449A (en) * 2017-11-23 2018-09-28 北京科东电力控制系统有限责任公司 The structure and application process of dispatch automated system knowledge mapping
CN109657074A (en) * 2018-09-28 2019-04-19 北京信息科技大学 News knowledge mapping construction method based on number of addresses

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202714A (en) * 2006-12-12 2008-06-18 国际商业机器公司 Method and system dispatching a message request to a service provider in a messaging environment
CN101540730A (en) * 2009-04-28 2009-09-23 华为技术有限公司 Address searching method, switch and network system
US20150088872A1 (en) * 2012-07-27 2015-03-26 Facebook, Inc. Social Static Ranking for Search
CN108075978A (en) * 2016-11-17 2018-05-25 华为技术有限公司 A kind of file transmitting method, node configuration method and relevant device
CN107633044A (en) * 2017-09-14 2018-01-26 国家计算机网络与信息安全管理中心 A kind of public sentiment knowledge mapping construction method based on focus incident
CN108595449A (en) * 2017-11-23 2018-09-28 北京科东电力控制系统有限责任公司 The structure and application process of dispatch automated system knowledge mapping
CN108304531A (en) * 2018-01-26 2018-07-20 北京泰尔英福网络科技有限责任公司 A kind of method for visualizing and device of Digital Object Identifier adduction relationship
CN108446367A (en) * 2018-03-15 2018-08-24 湖南工业大学 A kind of the packaging industry data search method and equipment of knowledge based collection of illustrative plates
CN109657074A (en) * 2018-09-28 2019-04-19 北京信息科技大学 News knowledge mapping construction method based on number of addresses

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HONGTAO SHEN: "Massive power device condition monitoring data feature extraction and clustering analysis using MapReduce and graph model", 《CES TRANSACTIONS ON ELECTRICAL MACHINES AND SYSTEMS 》 *
李秀玲: "基于工艺知识图谱的异构CAM模型结构化建模方法", 《计算机辅助设计与图形学学报》 *
苏道明等: "基于知识图谱的国际技术创新研究现状、热点和趋势", 《科技进步与对策》 *

Also Published As

Publication number Publication date
CN110399512B (en) 2022-04-26

Similar Documents

Publication Publication Date Title
CN111371627B (en) Method for setting multiple IPs (Internet protocol) in Kubernetes through Pod
US9407703B2 (en) Connection management system, and a method for linking connection management server in thin client system
EP3200393A1 (en) Method and device for virtual network function management
US20180034709A1 (en) Method and Device for Asset Information Management
CN106201661A (en) Method and apparatus for elastic telescopic cluster virtual machine
CN105867837A (en) Method, equipment and system for updating configurations of clients in distributed high-speed cache systems
CN107404509B (en) Distributed service configuration system and information management method
CN106487863B (en) A kind of gray scale dissemination method, client and platform based on distributed system
WO2018023338A1 (en) Network-function management method and network-function management device
EP4050850A1 (en) Service upgrading method, device and system
CN113835369A (en) Edge terminal scene management method, device and system
CN103049294A (en) Device and method for network element software upgrading
CN108370329B (en) Management method and device for management function object
CN111355602B (en) Resource object management method and device
CN112752352B (en) Method and equipment for determining I-SMF (intermediate session management function)
CN106161517B (en) The method and apparatus for realizing cloud storage access by cloud file system
CN110399512A (en) A kind of map memory management method and device
CN110196721B (en) Internet data center management method, system and medium
CN111026424A (en) Service updating method and device
CN110633322A (en) Resource information synchronization method and device, electronic equipment and storage medium
CN108960378A (en) A kind of data download method, system, device and storage medium
CN110868340B (en) Testing method and device, reconfigurable tester and controller
CN113656683A (en) Subscription data pushing method, device and system, electronic equipment and storage medium
US20230099545A1 (en) Iot system and data collection control method
CN110362706A (en) Lookup method, device, storage medium and the electronic device of data

Legal Events

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