CN113179313A - Method and system for constructing distributed space-time index structure - Google Patents

Method and system for constructing distributed space-time index structure Download PDF

Info

Publication number
CN113179313A
CN113179313A CN202110449330.9A CN202110449330A CN113179313A CN 113179313 A CN113179313 A CN 113179313A CN 202110449330 A CN202110449330 A CN 202110449330A CN 113179313 A CN113179313 A CN 113179313A
Authority
CN
China
Prior art keywords
space
tree
time
node
server
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
CN202110449330.9A
Other languages
Chinese (zh)
Other versions
CN113179313B (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.)
Hunan Vision Miracle Intelligent Technology Co ltd
Original Assignee
Hunan Vision Miracle Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Vision Miracle Intelligent Technology Co ltd filed Critical Hunan Vision Miracle Intelligent Technology Co ltd
Priority to CN202110449330.9A priority Critical patent/CN113179313B/en
Publication of CN113179313A publication Critical patent/CN113179313A/en
Application granted granted Critical
Publication of CN113179313B publication Critical patent/CN113179313B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2246Trees, e.g. B+trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/10Detection; Monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

The invention relates to the technical field of data processing of the Internet of things, and discloses a method and a system for constructing a distributed space-time index structure, which are used for improving the efficiency of data storage and query. The method comprises the following steps: a Hilbert curve is adopted to maintain the two-dimensional space where each station server and each sensor terminal are located in a one-dimensional mode; organizing a peer-to-peer structure of the site servers by Chord, allocating an index space, and corresponding a space divided by a Hilbert curve to the corresponding site server; each site server establishes an FSTI multi-branch tree in a memory, generates an R tree in the FSTI multi-branch tree at intervals of tau time, and packages and encapsulates at least two R trees adjacent in time sequence by carrying time information of each storage segment and pointer information of an R tree storage address indicating a corresponding space range; links are then established to the corresponding predecessor and/or successor nodes for querying overlapping and neighboring region data.

Description

Method and system for constructing distributed space-time index structure
Technical Field
The invention relates to the technical field of data processing of the Internet of things, in particular to a method and a system for constructing a distributed space-time index structure.
Background
As wireless communication technologies, positioning technologies, embedded devices, and geographic information systems are rapidly developed and popularized, more and more sensing devices are used in fire sensing and prediction. In the actual deployment of the sensor, the transmission energy consumption and the transmission distance are considered due to the influence of the region range, and the principle of near is mostly adopted when the sensor information is collected, as shown in fig. 1, the sensing information of the region 1 is transmitted to the server of the near station a for storage, and the sensing information of the region 2 is transmitted to the server of the station B for storage. The physical deployment architecture enables the collection nodes to report the sensing information to the relevant monitoring sites in real time by using local nearby advantages, reduces the time delay of wireless transmission of the collection nodes, and can monitor fire in a relatively wide region range.
However, as global applications are continuously developed, more and more applications need to directly perform global fire real-time query, which needs to deliver query requests to all the site databases, and as there is no goal, the distributed query method not only causes resource waste, but also has very low query efficiency, and cannot assist a director in fire research and judgment in an emergency.
Disclosure of Invention
The invention aims to disclose a method and a system for constructing a distributed space-time index structure, which are applied to scenes such as fire research and judgment and the like and improve the efficiency of data storage and query.
In order to achieve the above object, the present invention discloses a method for constructing a distributed space-time index structure, comprising:
a Hilbert curve is adopted to maintain the two-dimensional space where each station server and each sensor terminal are located in a one-dimensional mode;
organizing a peer-to-peer structure of the site servers by Chord, allocating an index space, and corresponding a space divided by a Hilbert curve to the corresponding site server;
each site server establishes an FSTI multi-branch tree in a memory, one R tree is generated in the FSTI multi-branch tree every tau time, and at least two R trees adjacent in time sequence are packaged by carrying storage segment time information and pointer information of an R tree storage address indicating a corresponding space range; and then, judging whether an overlapped and adjacent region of the R tree space range exists or not through interaction with a predecessor node and a successor node of Chord, and if the overlapped and adjacent region exists on the space, establishing a link for inquiring data of the overlapped and adjacent region to the corresponding predecessor node and/or successor node.
Preferably, assuming the Hilbert curve as order D, the entire space with side lengths E is divided into 22DAnd if the set of all points in the whole space is P and the set of Hilbert values is V, the mapping H is established as P → V, wherein P { (x, y) |0 ≦ x, y ≦ E }, and V { (V |0 ≦ V ≦ 22D-1,
Figure BDA0003038149970000021
}。
Preferably, let the Chord key-value space be [0, 2 ]m-1]M 2D, the key-value space is consistent with the set of Hilbert values V.
Preferably, the method of the present invention further comprises: and each site server utilizes the precursor node, the successor node and the routing table of Chord to define the topological relation among the site servers so as to carry out routing of the query request based on the topological relation and by combining with the distributed space-time index structure information.
In order to achieve the above object, the present invention also discloses a system for constructing a distributed space-time index structure, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
The invention has the following beneficial effects:
a brand-new space-time index structure is defined, and efficient, fast and accurate data storage and query results are guaranteed through the mapping relation between Hilbert curves and subspaces, the Chord network peer-to-peer organization structure and the corresponding distributed space-time index structure. Meanwhile, based on the space-time index structure, each server node can store and index a part of global data without storing and indexing global fire data, so that the pressure of each server is reduced, and the cost is saved. And the failure of a single server can not cause global paralysis, and the rest other server nodes can be conveniently organized to provide space-time index service.
The present invention will be described in further detail below with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a schematic diagram of a prior art distributed fire monitoring environment.
Fig. 2 is a schematic diagram of Hilbert curve-to-space partitioning according to an embodiment of the present invention, where (a) is a schematic diagram of 1-order Hilbert curve-to-space partitioning, (b) is a schematic diagram of 2-order Hilbert curve-to-space partitioning, (c) is a schematic diagram of 3-order Hilbert curve-to-space partitioning, (d) is a schematic diagram of 4-order Hilbert curve-to-space partitioning, and (e) is a schematic diagram of 5-order Hilbert curve-to-space partitioning.
Fig. 3 is a schematic structural diagram of a site server key value space and a responsible subspace according to an embodiment of the present invention.
FIG. 4 is a route representation of a Chord peer-to-peer organizational structure and a site server according to an embodiment of the present invention.
FIG. 5 is a schematic diagram of an FSTI multi-way tree structure according to an embodiment of the invention.
FIG. 6 is a schematic diagram of the spatial neighborhood of the site server N8 and the predecessor node N1 and successor node N14 according to this embodiment of the present invention.
Fig. 7 is a network schematic diagram of the site server N8 establishing links to neighbor area data with the predecessor node N1 and successor node N14.
FIG. 8 is a flow chart of a distributed spatiotemporal query method for fire research and judgment according to an embodiment of the present invention.
FIG. 9 is a flow chart illustrating a method for constructing a distributed spatio-temporal index structure according to an embodiment of the present invention.
Detailed Description
The embodiments of the invention will be described in detail below with reference to the drawings, but the invention can be implemented in many different ways as defined and covered by the claims.
Example 1
The embodiment discloses a method for constructing a distributed space-time index structure. As shown in fig. 9, the method specifically includes:
and step A, adopting a Hilbert curve to maintain the two-dimensional space where each station server and each sensor terminal are located in a one-dimensional mode.
And B, organizing a peer-to-peer structure of the site servers by Chord, distributing an index space, and corresponding the space divided by the Hilbert curve to the corresponding site servers.
Step C, each site server establishes an FSTI multi-branch tree in a memory, one R tree is generated in the FSTI multi-branch tree every tau time, and at least two R trees adjacent in time sequence are packaged and encapsulated by pointer information carrying each storage segment time information and an R tree storage address indicating a corresponding space range; and then, judging whether an overlapped and adjacent region of the R tree space range exists or not through interaction with a predecessor node and a successor node of Chord, and if the overlapped and adjacent region exists on the space, establishing a link for inquiring data of the overlapped and adjacent region to the corresponding predecessor node and/or successor node.
To facilitate the detailed understanding of the present invention, the detailed description is as follows:
fig. 2 shows Hilbert curves of order 1 to 5. Specifically, in this embodiment, a Hilbert (Hilbert) curve in the space filling curves is used to maintain the two-dimensional space in a one-dimensional manner, so that the purpose of organizing the site servers in a one-dimensional peer-to-peer structure is achieved. The Hilbert curve has good local retentivity, and is coded by entering the subspace once and exiting the subspace once, so that one-dimension is finished.
After the space is one-dimensional, the embodiment organizes the overlay network topology between site servers by using the classic P2P network model Chord. The method specifically comprises the following steps:
1) and adopting a Hilbert curve to maintain the whole space. Let the Hilbert curve be of order D, and the whole space (with side length E) be divided into 22DA subspace (lattice) of the same size. If the set of all points in the whole space is P and the set of Hilbert values is V, the mapping H is established as P → V, wherein P { (x, y) |0 ≦ x, y ≦ E},V={v|0≤v≤22D-1,
Figure BDA0003038149970000031
}。
2) Organizing a site server peer-to-peer structure and allocating index space using Chord. Let Chord key value space be [0, 2 ]m-1]m-2D, i.e. the key-value space is consistent with the set of Hilbert values V. Therefore, the space taking the subspace divided by the Hilbert curve as a unit can correspond to a certain site server. For example, as shown in FIG. 3, site server N8 is responsible for indexing (1, 8) on Chord]The data in the interval, whose corresponding subspace is the subspace with Hilbert numbers 2-8 (i.e. the hatched area in the figure), i.e. all fire spatio-temporal data intersecting the subspace 2-8, are indexed by the site server N8.
3) And the topology relationship between the site servers can be defined by using the predecessor node and successor node of Chord and a routing table FingerTable (fast route). A FingerTable route with N1 predecessor nodes and N14 successor nodes, as site server N8, 1 to 32 hops is shown in fig. 4. Therefore, after the topological relation between the site servers is established, the query request can be routed based on the topology.
Preferably, the construction of the distributed spatio-temporal index of the embodiment includes:
for fire real-time query and future-oriented fire research and judgment query, the constructed spatio-temporal index of the embodiment must support rapid retrieval in a distributed environment, so that the constructed index can support the requirement of geographical dispersion and can also support index update during data insertion and real-time-oriented spatio-temporal query in time. By comprehensively considering the current research situation of the Spatio-Temporal Index, a Spatio-Temporal Index FSTI (Fast Spatio-Temporal Index) which supports quick update and faces to real-time query based on a memory is designed. The specific structure is described as follows:
1) and each server establishes an independent FSTI in the memory. FSTI is a multi-way tree structure whose root node is an array of storage times, and an R-tree is generated every τ times, as shown in FIG. 5, and the spatio-temporal object index in the [ t, t + τ) time period is the R-tree under the array of root nodes t. Each grid at the top layer in fig. 5 is regarded as a root node of an R tree, and includes storage segment time information and pointer information indicating an R tree storage address of a corresponding spatial range; the specific storage structure of the R tree corresponding to the root node for the spatial data is similar to the existing one, and is not described in detail.
2) As can be seen from the description of 1), the FSTI structure will generate redundancy of spatio-temporal objects, and therefore, the server will move the root node and the corresponding R tree group in the delta time period to the external memory for storage from the left side of the FSTI by using a timely persistence mechanism, that is, at intervals of delta, n, tau. The method not only ensures the effective storage rate of the memory, but also can meet the requirement of efficient and quick query, and also meets the requirement of the user on current or recent query on the fire. Corresponding to fig. 5, that is, at intervals of time δ, n R trees adjacent to each other in time sequence are packed and then are moved to an external memory for storage, and specific package information carries storage segment time information and pointer information indicating an R tree storage address of a corresponding space range.
3) The above description is of FSTI structure within a single server node, and since the environment is distributed, a distributed FSTI structure needs to be designed. Comprehensively considering, in order to aim at the query facing the real-time fire trend, after the FSTI is established by each server node, the corresponding R tree root node is connected with the adjacent R tree root nodes or the R tree root nodes which are overlapped in the space range and belong to other server nodes aiming at each time period, so that the time-space query efficiency aiming at a certain time period can be accelerated according to the principle of proximity. In other words, namely: and judging whether the overlapped and adjacent region of the R tree space range exists or not through interaction with the predecessor node and the successor node of Chord, and if the overlapped and adjacent region exists on the space, establishing a link for inquiring the data of the overlapped and adjacent region to the corresponding predecessor node and/or successor node.
As shown in fig. 6, the adjacent region corresponding to the region responsible for the N8 site server in fig. 3 further includes a left-end N1 dashed-line frame region and an upper N14 dashed-line frame region, so that the internal region responsible for the N8 site server itself is correspondingly linked with the two adjacent regions, and the related connection diagram corresponds to the diagram of the Chord peer-to-peer network structure, specifically referring to fig. 7, which connects the server nodes N1, N8 and N14 at the root node of the R tree in the t1 period. Generally, the steps of link establishment are:
a: a server A is set, and the server A actively contacts a precursor server node B and a subsequent server node C of the server A.
b: b and C send the R tree root node range to A according to the time array sequence.
c: and after receiving each R root node, the A establishes connection for adjacent or overlapped areas compared with each R tree root node of the A.
d: b and C each perform the operation of node a.
Based on the above index structure, the corresponding spatio-temporal query method, as shown in fig. 8, includes:
step S100, a space-time query request is obtained, wherein the space-time query request comprises space coordinate information and time information of a queried data object.
And S200, calculating a central point of the inquired data object according to the space coordinate information, and mapping the central point to a corresponding one-dimensional space according to a Hilbert curve.
And step S300, routing the query condition and the address of the client c to a server node in charge of the one-dimensional space according to a Chord routing protocol.
And S400, the server node in charge of the one-dimensional space performs data query and integration processing according to the space coordinate information and the time information in combination with a distributed space-time index structure.
Further, a specific query process of the preferred query method includes:
step S0, the server node a receives the query request of the client c; the query request carries spatiotemporal information (qx)l,qxu,qyl,qyu,ts,te) (ii) a Wherein, (qx)l,qyl) The lower left corner coordinate representing the spatial range, (qx)u,qyu) Representing the coordinates of the upper right hand corner of the spatial range.
Step S1, A calculates spatial Range (qx)l,qxu,qyl,qyu) Central point (qx) of (c)c,qyc) Then, the center point (qx) is divided according to Hilbert curvec,qyc) Mapping to a one-dimensional space hq
Step S2, A routes the inquiry condition and the address of the client c to the responsible index value h according to Chord routing protocolqOf the server node R.
Step S3, R mapping the spatial range (qx) according to Hilbert curvel,qxu,qyl,qyu) Conversion into a one-dimensional interval list LHqWherein LH isq={[hsi,hei]|0<i<N }; wherein hs represents the starting point of the one-dimensional interval, he represents the ending point of the one-dimensional interval, and n represents the number of intervals.
Step S4, R vs. time range (t)s,te) The judgment is carried out as follows:
(4.1) if teIs that at present:
(4.1.1) judging if tsStarting point t of root node time array of FSTI earlier than R0Adjust the query time range to (t)0,te) Otherwise, the time range is still (t)s,te)。
(4.1.2) R according to (t)0,te) Or (t)s,te) Filtering the FSTI root node time array, and inquiring a time period list LT { seg meeting a time conditionj|0<j<M }. Wherein segjIndicating the jth time period.
(4.1.3) R for each seg in LTjAccording to spatial extent (qx)l,qxu,qyl,qyu) Finding corresponding seg in FSTIjR tree of (1), return result list retRAnd simultaneously, the R also sends the time-space query to the corresponding server node through the searched R tree and the root node link of the R tree, and the server node list is set as LFS.
(4.1.4) each server node in the LFS searches through the local FSTI when receiving the query condition, and returns the result to R.
(4.1.5) R receives the result returned from LFS and retRAnd combining and removing the duplicate to form a final result ret which is returned to the client c.
(4.2) if teNot currently.
(4.2.1) R queries the condition (qx) according to Chord routing protocoll,qxu,qyl,qyu,ts,te) Route to responsible LHqThe list of server nodes is set as LCS.
(4.2.2) each server node in R and LCS judges if tsStarting point t of root node time array earlier than own FSTI0
(4.2.2.1) Each Server node in R and LCS adjusts the query time horizon to (t)s,t0) And (t)0,te)。
(4.2.2.2) R targeting query conditions (qx) with local FSTIl,qxu,qyl,qyu,t0,te) Searching is carried out, and the fire object in the external memory is aimed at the query condition (qx)l,qxu,qyl,qyu,ts,t0) Searching is carried out, and the two results are combined into a result retR
(4.2.2.3) Each Server node in LCS aims at query condition (qx) with local FSTIl,qxu,qyl,qyu,t0,te) Searching is carried out, and the fire object in the external memory is aimed at the query condition (qx)l,qxu,qyl,qyu,ts,t0) And searching is carried out, and each server node in the LCS combines the results of the two and returns the result to the R.
(4.2.2.4) R receives the result returned from LCS and retRAnd combining and removing the duplicate to form a final result ret which is returned to the client c.
(4.2.3) if tsStarting point t of root node time array not earlier than own FSTI0
(4.2.3.1) R targeting query conditions (qx) with local FSTIl,qxu,qyl,qyu,ts,te) Search is performed with the result retR
(4.2.3.2) Each Server node in LCS uses local FSTI for query condition ((qx)l,qxu,qyl,qyu,ts,te) And (4) searching is carried out, and each server node in the LCS returns the result to the R.
(4.2.3.3) R receives the result returned from LCS and retRAnd combining and removing the duplicate to form a final result ret which is returned to the client c.
Thus, the above query process takes into account the following two cases:
in case 1, namely, (4.1) above, when the user is performing query facing the current time, the system defaults to that the user has a higher requirement for the query efficiency, so that the query condition is directly delivered to the relevant server node for query by using the root node link of the R tree of the FSTI, namely, (4.1.2) and (4.1.3), thus the method improves the concurrency of simultaneous query of a plurality of server nodes and improves the query efficiency; however, since the delivery query conditions linked by the root node of the R tree may not completely cover the hit node, the recall ratio may not reach 100% by using this method, but the requirement for the efficiency is slightly higher in consideration of the emergency of fire.
Case 2, namely (4.2) above, when the user does not perform an inquiry for the current time, the server initiated by the inquiry will forward all the involved spaces to the respective server nodes responsible for the corresponding use by using the Chord routing mechanism, namely (4.2.1), so that the recall rate of the inquiry result is guaranteed to be 100%; however, since the Chord protocol is used for forwarding one by one, the efficiency of query is not fast as the direct delivery by using the root node of the R tree. Therefore, the query mode is suitable for the condition that the query efficiency is not high.
As a variation, a person skilled in the art may also make other variations of the query method based on the index structure of this embodiment, which is not described in detail in this embodiment.
In summary, the technique disclosed in this embodiment has the following advantages:
(1) and each server node does not need to store and index the global fire data, but stores and indexes a part of global data, so that the pressure of each server is reduced, and the cost is saved.
(2) The failure of a single server can not cause global paralysis, and the rest server nodes can be organized to provide space-time index service.
(3) And the inquiry is not delivered to all servers, but is accurately delivered to the server nodes related to the inquiry, so that the inquiry efficiency is greatly improved, and the requirement of real-time fire research and judgment is met.
Example 2
Corresponding to the above embodiments, this embodiment further discloses a system for constructing a distributed space-time index structure, which is applied to scenes such as a fire research and judgment internet of things, and includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the steps corresponding to the above method embodiments are implemented.
To sum up, the method and the system for constructing the distributed spatio-temporal index structure disclosed by the embodiment of the invention have the following advantages:
a brand-new space-time index structure is defined, and efficient, fast and accurate data storage and query results are guaranteed through the mapping relation between Hilbert curves and subspaces, the Chord network peer-to-peer organization structure and the corresponding distributed space-time index structure. Meanwhile, based on the space-time index structure, each server node can store and index a part of global data without storing and indexing global fire data, so that the pressure of each server is reduced, and the cost is saved. And the failure of a single server can not cause global paralysis, and the rest other server nodes can be conveniently organized to provide space-time index service.
The above embodiments and the background art of the present invention are only examples of fire research data, and based on the common general knowledge of those skilled in the art, the spatio-temporal index structure disclosed in the present invention can be easily transplanted into other application scenarios, so the above scenarios based on fire research and the specific query method are not intended to limit the maximum protection scope of the present invention, and those skilled in the art may make various modifications and changes. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (5)

1. A method for constructing a distributed space-time index structure is characterized by comprising the following steps:
a Hilbert curve is adopted to maintain the two-dimensional space where each station server and each sensor terminal are located in a one-dimensional mode;
organizing a peer-to-peer structure of the site servers by Chord, allocating an index space, and corresponding a space divided by a Hilbert curve to the corresponding site server;
each site server establishes an FSTI multi-branch tree in a memory, one R tree is generated in the FSTI multi-branch tree every tau time, and at least two R trees adjacent in time sequence are packaged by carrying storage segment time information and pointer information of an R tree storage address indicating a corresponding space range; and then, judging whether an overlapped and adjacent region of the R tree space range exists or not through interaction with a predecessor node and a successor node of Chord, and if the overlapped and adjacent region exists on the space, establishing a link for inquiring data of the overlapped and adjacent region to the corresponding predecessor node and/or successor node.
2. The method of claim 1, wherein the Hilbert curve is set to D order, and the whole space with the side length of E is divided into 22DAnd if the set of all points in the whole space is P and the set of Hilbert values is V, the mapping H is established as P → V, wherein P { (x, y) |0 ≦ x, y ≦ E },
Figure FDA0003038149960000012
Figure FDA0003038149960000013
3. the method of claim 2, wherein the Chord key space is [0, 2 ]m-1]M 2D, the key-value space is consistent with the set of Hilbert values V.
4. The method for constructing a distributed spatio-temporal index structure according to any one of claims 1 to 3, further comprising:
and each site server utilizes the precursor node, the successor node and the routing table of Chord to define the topological relation among the site servers so as to carry out routing of the query request based on the topological relation and by combining with the distributed space-time index structure information.
5. A system for constructing a distributed spatiotemporal index structure, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 4 when executing the computer program.
CN202110449330.9A 2021-04-25 2021-04-25 Distributed space-time query method and system Active CN113179313B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110449330.9A CN113179313B (en) 2021-04-25 2021-04-25 Distributed space-time query method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110449330.9A CN113179313B (en) 2021-04-25 2021-04-25 Distributed space-time query method and system

Publications (2)

Publication Number Publication Date
CN113179313A true CN113179313A (en) 2021-07-27
CN113179313B CN113179313B (en) 2023-04-07

Family

ID=76925935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110449330.9A Active CN113179313B (en) 2021-04-25 2021-04-25 Distributed space-time query method and system

Country Status (1)

Country Link
CN (1) CN113179313B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5963956A (en) * 1997-02-27 1999-10-05 Telcontar System and method of optimizing database queries in two or more dimensions
CN101834861A (en) * 2010-04-16 2010-09-15 华中师范大学 Method for protecting track privacy by forwarding inquiries based on neighboring nodes in location service
CN103617162A (en) * 2013-10-14 2014-03-05 南京邮电大学 Method of constructing Hilbert R-tree index on equivalent cloud platform
US20170255682A1 (en) * 2016-03-07 2017-09-07 Ebay Inc. Database access using a space-filling curve
CN107423368A (en) * 2017-06-29 2017-12-01 中国测绘科学研究院 A kind of space-time data indexing means in non-relational database
CN111078634A (en) * 2019-12-30 2020-04-28 中科海拓(无锡)科技有限公司 Distributed spatio-temporal data indexing method based on R tree

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5963956A (en) * 1997-02-27 1999-10-05 Telcontar System and method of optimizing database queries in two or more dimensions
US20030187867A1 (en) * 1997-02-27 2003-10-02 Smartt Brian E. System and method of optimizing database queries in two or more dimensions
CN101834861A (en) * 2010-04-16 2010-09-15 华中师范大学 Method for protecting track privacy by forwarding inquiries based on neighboring nodes in location service
CN103617162A (en) * 2013-10-14 2014-03-05 南京邮电大学 Method of constructing Hilbert R-tree index on equivalent cloud platform
US20170255682A1 (en) * 2016-03-07 2017-09-07 Ebay Inc. Database access using a space-filling curve
CN107423368A (en) * 2017-06-29 2017-12-01 中国测绘科学研究院 A kind of space-time data indexing means in non-relational database
CN111078634A (en) * 2019-12-30 2020-04-28 中科海拓(无锡)科技有限公司 Distributed spatio-temporal data indexing method based on R tree

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
D. CASTELLA. ET AL.: "《A Resilient Architecture Oriented to P2P Computing》", 《2011 IEEE 10TH INTERNATIONAL SYMPOSIUM ON NETWORK COMPUTING AND APPLICATIONS》 *
张翀: "《基于对等计算的分布式时空索引技术研究》", 《中国博士学位论文全文数据库信息科技辑》 *
张翀等: "《战场环境中面向范围查询的分布式时空索引》", 《计算机工程与应用》 *
葛斌等: "《战场环境中基于对等计算的分布式时空索引技术》", 《系统工程与电子技术》 *

Also Published As

Publication number Publication date
CN113179313B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
KR101687124B1 (en) Method for generating a dataset structure for location-based services and method and system for providing location-based services to a mobile device
US7010308B2 (en) Managing and querying moving point data
CN106528773B (en) Map computing system and method based on Spark platform supporting spatial data management
Shen et al. A distributed spatial-temporal similarity data storage scheme in wireless sensor networks
CN101370025A (en) Storing method, scheduling method and management system for geographic information data
US20110055219A1 (en) Database management device and method
Su et al. Efficient skyline query processing in wireless sensor networks
KR101852597B1 (en) Moving object big-data information storage systems and processing method using the same
Coman et al. An analysis of spatio-temporal query processing in sensor networks
EP1859602B1 (en) Distributed storing of network position information for nodes
CN113810287B (en) Data retrieval and pushing method based on NDN and SDN
CN103377236B (en) A kind of Connection inquiring method and system for distributed data base
CN113179313B (en) Distributed space-time query method and system
CN112989228B (en) Distributed space-time query method and system
CN101616177A (en) Data transmission sharing method based on the network topography system of P2P
CN110347676A (en) Uncertain temporal data management and querying method based on relationship R tree
CN108984308A (en) A kind of cloud data processing method and system based on workload
Mowshowitz et al. Query optimization in a distributed hypercube database
Saleem et al. Scalable processing of location-based social networking queries
Lee et al. An efficient spatio-temporal index for spatio-temporal query in wireless sensor networks
Busnel et al. Solist or how to look for a needle in a haystack? A lightweight multi-overlay structure for wireless sensor networks
CN110716933B (en) Novel urban rail train big data-oriented high-flexibility distributed index method
CN112395354B (en) Distributed relational database based on HDFS metadata server and construction method
Ma et al. Achieve adaptive data storage and retrieval using mobile sinks in wireless sensor networks
Gao et al. Queries based on data attribute spatial index in wireless sensor networks

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