CN106021395A - Drug information storage method in internet-of-things environment - Google Patents
Drug information storage method in internet-of-things environment Download PDFInfo
- Publication number
- CN106021395A CN106021395A CN201610313489.7A CN201610313489A CN106021395A CN 106021395 A CN106021395 A CN 106021395A CN 201610313489 A CN201610313489 A CN 201610313489A CN 106021395 A CN106021395 A CN 106021395A
- Authority
- CN
- China
- Prior art keywords
- data
- sliding window
- master server
- medical product
- information storage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2228—Indexing structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
Abstract
The invention provides a drug information storage method in an internet-of-things environment. The method comprises the steps of registering all acquisition nodes in a drug product information storage system, and performing compressive storage on drug product data in the information storage system by the acquisition nodes. According to the drug information storage method in the internet-of-things environment, provided by the invention, the storage, access and management of the drug product data are modularized, standardized and unified, and the storage space is saved.
Description
Technical field
The present invention relates to big data calculate, store method particularly to the medicine information under a kind of environment of internet of things.
Background technology
Along with development and the maturation of technology of Internet of things, Internet of Things application is increasingly extensive, produce at medical product,
Distribution and realm of sale extensive application.Increasing data constantly produce.How to store and to manage thing
Networking data, becomes a big core of Internet of Things development.The medical product data that medicine Internet of Things produces have
The features such as magnanimity, multi-source, isomery, highly dynamic property and uncertainty so that information storage and management are more
Complicate.In Internet of Things, embedded collection or control equipment the most all use different hardware platform, behaviour
Make system, data base and middleware, and be all deployed in cannot the multiple heterogeneous network ring of free exchange information
In border, provide data and service for upper layer application, at operation layer by special operation system and management platform
Face is difficult to compatible intercommunication.For from technological layer, the current platform of internet of things degree of coupling is the highest, causes it
Autgmentability and versatility are poor, and the variation of terminal applies makes the communication of heterogeneous network become complicated, it is impossible to
Unified standard and interface is used to operate on it.
Summary of the invention
For solving the problem existing for above-mentioned prior art, the present invention proposes the medicine under a kind of environment of internet of things
Product information storage means, including:
Being registered in medical product information storage system by all of acquisition node, medicine is produced by acquisition node
Product data are compressed storage in described information storage system.
Preferably, described medicine information storage system includes master server, information storage server, management visitor
Family end and mobile client;Master server includes data compressing module, data update module, data retrieval mould
Block, data analysis module, data monitoring module, wherein data monitoring module contains alert data issue,
Issuing alert data by LAN, managing customer end and mobile client provide the user sensing equipment
The retrieval of data, data update the storage including the interpolation of acquisition node, deletion and drug data;Gather joint
The drug data that point gathers is sent to data receiver by serial ports, and data receiver pushes data into main clothes
Business device, during then master server stores data into information storage system;Data retrieval module includes medicine number
It is investigated see, real time data monitoring and historical data retrieval, by user by managing customer end and mobile client
Operate;Data analysis module is to divide the data in information storage system according to the time period, the most right
The data of each time period carry out alert data statistics and analysis, it is also possible to according to the actual requirements to drug data
It is analyzed;I.e. end of polling(EOP) last time of latest data in information storage system is arrived this by data monitoring module
Poll starts the drug data that the period gathered and retrieves and detect, if data exist abnormal, then triggers
Alert data issuing function, is distributed to specific user by LAN by alert data;
Before data compressing module stores data into information storage system, it is compressed data processing;Main clothes
Business device receives the medical product data that acquisition node gathers, and places the data in relief area, starts pressure simultaneously
Data in sliding window buffer area are compressed, then by data by contracting timer every predefined interval
It is stored in information storage system;If master server receives the retrieval request of client, then data are retrieved
And analysis, return result to client;Master server also can start watchdog timer, between predefined
Every retrieving latest data, if it find that alert data is just issued, and poll also can be by predetermined
Frequency is carried out once, if it find that user submits retrieval request to by LAN, this request will be made sound
Should;
Data receiver reads the medical product data of wireless acquisition node from serial ports, then pushes data into
In master server;After master server have received medical product data, with < sa, tb, dc, Tm> represent, wherein
A, b, c, m represent the respective serial number of element, and s represents that acquisition node id, t represent the type of data, and d represents
Data, T represents the acquisition time of data;Master server once receives one group of data, is indicated by sequence,
Wherein data sort according to acquisition time, and each sequence represents a certain class data that an acquisition node gathers
Set;Each sequence is cached by a sliding window based on tuple number;One sliding window preserves
Time of medical product data sequence be Tm+1-Tm+k;
Sliding window Wk={ < sa, tb, dc+1, Tm+1>,<sa, tb, dc+i, Tm+i>...,<sa, tb, dc+k,
Tm+k>, wherein k is the fixed width of data sliding window;
Acquisition node ID and the medical product data type of the medical product data of each sliding window are identical
, by < sa, tb> attributes extraction out, as the head of sliding window, i takes [1, k];Sliding window itself is only
The numerical value of storage medical product data and acquisition time, i.e. < dc+i, rm+i> part;Medical product data buffer storage is empty
Between use orderly doubly linked list and array to realize;Doubly linked list is used for preserving the head < s of sliding windowa, tb> and
Point to the pointer of sliding window, sliding window array representation, and to array, length is set more than k;Two-way
Chained list is according to sa, tbLexicographic order be ranked up;Master server, main clothes are entered whenever there being medical product data
Business device is first according to < sa, tb> judge which sliding window is these data belong to, doubly linked list finds correspondence
The head of sliding window;Then by < dc+i, rm+i> it is saved in the rear end of sliding window;If at doubly linked list
In do not find correspondence acquisition node and data type, then in doubly linked list create a chain table block, insert
Enter to relevant position, save the data in the array that the pointer of this chain table block points to the most again;
The data compressed, after data compressing module completes, are saved in data base by master server;For
The inquiry of data, after master server receives the retrieval request of client, askes data from data base, will knot
Fruit returns to client;First creating a data base and insert object, then specifying for this object needs storage
The line unit of tables of data, and row race, row and this row at data place need the data of storage;Finally will
Data base inserts one data table object of object and carries out storage operation;Database access operation only sets line unit
Value, return up-to-date data;Realize adopting by setting the bar number of time range or setting return data
The historical data of collection node is ask.
The present invention compared to existing technology, has the advantage that
The present invention proposes a kind of medicine information storage method under environment of internet of things, to medical product data
Storage, access and manage and carry out modularity, standardization and unitized, and saved memory space.
Accompanying drawing explanation
Fig. 1 is the flow chart of the medicine information storage method under environment of internet of things according to embodiments of the present invention.
Detailed description of the invention
Hereafter provide one or more embodiment of the present invention together with the accompanying drawing of the diagram principle of the invention is detailed
Thin description.Describe the present invention in conjunction with such embodiment, but the invention is not restricted to any embodiment.This
Bright scope is limited only by the appended claims, and the present invention contains many replacements, amendment and equivalent.?
Middle elaboration many detail is described below to provide thorough understanding of the present invention.For exemplary purposes
And these details are provided, and can also be according to right without some in these details or all details
Claim realizes the present invention.
An aspect of of the present present invention provides a kind of medicine information storage method under environment of internet of things.Fig. 1 is root
Method flow diagram is stored according to the medicine information under the environment of internet of things of the embodiment of the present invention.The present invention is by data
Storage, the access of data and management carry out modularity, standardization and unitize, by acquisition node at medicine
The data receiver port of product information storage system is integrated, then by all of acquisition node at this medicine
Product information storage system is registered, carries out the retrieval of medical product data, analyze and manage, eliminate medicine
The temporal correlation of product data, has saved memory space.
Medical product information storage system is made up of multiple assemblies, including master server, information storage server,
Managing customer end and mobile client.Master server includes data compressing module, data update module, data
Retrieval module, data analysis module, data monitoring module and poller module, wherein data monitoring module comprises
Alert data issue, issues alert data by LAN.Information storage system is according to acquisition node data
The size choice set Chinese style database purchase of scale and distributed information storage.Managing customer end and mobile client
End is supplied to the user of different demand and retrieves the data of sensing equipment, including acquisition node management module,
Medical product data disaply moudle, realtime curve module and historical data retrieval module.
Data update module can be divided into the interpolation of acquisition node, deletion and the storage of medical product data.Adopt
Interpolation and the deletion function of collection node are added one's own acquisition node by user, and manage them
Reason.The medical product data of acquisition node collection are sent to data receiver by serial ports, and data receiver will
Data-pushing is to master server, during then master server stores data into information storage system.
Before data compressing module stores data into information storage system, it is compressed data processing.Data
Retrieval module includes that medical product data are checked, real time data is monitored and historical data retrieval, user pass through
Managing customer end and mobile client operate.Data analysis module is to the data in information storage system
Divide according to the time period, then the data of each time period carried out alert data statistics and analysis, it is also possible to
According to the actual requirements medical product data are analyzed, then according to analysis result, environment can be made
Corresponding adjustment.
(i.e. end of polling(EOP) last time is to this poll to the latest data in information storage system for data monitoring module
The medical product data that the beginning period is gathered) retrieve and detect, if data exist abnormal, then touch
Transmit messages alert data publication function, by LAN, alert data is distributed to specific user.
Poller module is that the message that the LAN account to user is issued does poll, resolves message and obtains medicine product
Product data retrieval request, then retrieves related data from information storage system, returns to use by LAN
Family.
Acquisition node is divided into communication module and sensing module.Based on cost consideration, the present invention is by all of control
Module all realizes at software section, and the frequency acquisition such as acquisition node is arranged, and the hardware components of module
It is served only for meeting the demands such as most basic communication.The data of acquisition node are led to by acquisition node by aggregation node
Crossing the Serial Port Transmission computer to data receiver, the data acquisition thread being arranged on this computer reads serial ports number
According to stream, resolve medical product data, then call the data-pushing interface of master server, push data into
Master server, master server connects data base and data is stored.Managing customer end and mobile client inspection
Data are asked clearly by the interface that rope medical product data are provided by master server.
If using distributed cloud storage, data acquisition thread reads serial data stream and resolves medical product number
According to, push data in master server, server receiving real-time data is saved in extra buffer, as
Really relief area is full, just calls distributed cloud storage interface, upload the data in the cluster of data center preserve.
Data are entered by the interface that managing customer end and mobile client retrieval medical product data are provided by master server
Row request.
After system electrification, each terminal node needs the net of equipment of itself type, the network address and father node
Network address is sent to coordinator.Coordinator receives the data message of each node, building topology structure.Networking
After completing, user can send topology command search network topological information by serial ports to coordinator.
Coordinator uses the mode of broadcast to tell that all terminal nodes start to gather data, and terminal node receives
After the broadcast data that coordinator sends, start timing acquiring data, then by the data that gather with the side of clean culture
Formula is sent to coordinator.Coordinator returns to collection terminal by serial ports again.After coordinator completes networking, real
Existing data communication, it is achieved the data receiver function of coordinator and the data acquisition of terminal node and data send merit
Energy.
Centralized data base uses MySQL relevant database, and the design of data base is embodied in setting of list structure
On meter;Distributed cloud storage data base uses Hadoop cluster building HBase distributed data base, data base
Design except the design of list structure, also include building and configure and the building and configuring of data base of cluster.
The data of medical product information storage system are made up of two parts, user data and medical product data.
When user registers in medical product information storage system, it is desirable to provide the information of oneself, including personal information
With LAN account information.Medical product data are the cores of information storage, (adopt including acquisition node information
Collection node ID, the data such as type, position).Each acquisition node every certain frequency collection data,
Then needing to save these data, thus, medical product data are dynamic, can be according to the time
Change and change, and data volume is the biggest.Medical product information storage system needs to preserve each collection and saves
Point is from accessing medical product information storage system to all history doctor disconnected from medicine product information storage system
Medicine product data.
The database manipulation of medical product data concentrates on insertion and retrieval.Data acquisition thread will collect
Information stores in data base, and master server arranges timer, clocked flip data according to frequency acquisition
Squeeze operation and database insert operation.Based on the data base of the present invention is by Hadoop cluster, described cluster
Being made up of 4 machines, wherein a machine is as main frame, and remaining 3 conduct is from machine.Main frame is as file
The namenode of system and the explorer of MapReduce Computational frame;From machine as the number of file system
According to node and the node manager of MapReduce.Hadoop clustered deploy(ment) configuration SSH enables the host to
Exempt from code entry from machine, the associated profile of Hadoop is finally set.
To obtaining all medical product data and obtaining in certain data manipulation specifying acquisition node, Ke Yigen
According to acquisition node ID and medical product data type, navigate to required data with line unit retrieval;Go through in acquisition
During history medical product data, required data can be navigated to line unit, and sieve according to the orderly time
Choosing.But, in the medical product data manipulation obtaining appointed place, owing to line unit not having the letter in region
Breath, but exist in column form, if not setting up concordance list, it is necessary to carry out full table scan, scanning
Condition is region ID.If the data gathering information table are set up a pickup area concordance list, line unit is for using
Family ID and the combination of region ID, be classified as acquisition node ID and medical product data type, then have only to adopting
Collection region index table and gather tables of data and do twice line unit and ask the data being obtained with needing: 1) line unit retrieval
Pickup area concordance list, obtains this user acquisition node having in this region, be worth for acquisition node ID and
Medical product data type.2) retrieval result above is combined ID composition line unit, is gathering tables of data
In retrieve.
Master server uses Web service to realize data resource retrieval and the interface of storage, it is provided that to upper-layer client
End application program uses.By each things in medical product information storage system or concept (such as acquisition node)
All it is abstracted into a resource, represents with a unique resource identifier, and to resource in terms of three
It is defined: the corresponding address of each resource, the request for resource accesses this URI exactly;Main clothes
It is JSON that business device accepts with the data type returned;Resource is supported HTTP request by master server, including
POST, database access, data base inserts and DELETE tetra-type;The resource of request master server is
Stateless, it is not required that server retrieves context or the shape of any kind of application program when processing request
State.
The operation of acquisition node is all encapsulated in this apoplexy due to endogenous wind.As the data of certain acquisition node need to be obtained, will be all
Acquisition node path couples together, and just constitutes the URI of resource, and external request has only to access URI, just
Corresponding data can be obtained.In addition to path, the present invention also arranges the ground of master server in configuration file
Location and module.
Master server receives the medical product data that acquisition node gathers, and places the data in relief area.With
Shi Qidong compresses timer, is compressed the data in sliding window buffer area every predefined interval, so
After data are stored in information storage system.If master server receives the retrieval request of client, will logarithm
According to retrieving and analyzing, return result to client.It addition, master server also can start supervision timing
Device, retrieves latest data every predefined interval, if it find that alert data is just issued, and
And poll also can be carried out once by preset frequency, if it find that user submits retrieval request to by LAN, just
This request can be responded.
Data receiver reads the medical product data of wireless acquisition node from serial ports, then pushes data into
In master server.After master server have received medical product data, to the following pressure of the data in sliding window
Compression method is compressed:
Medical product data < the s that master server receivesa, tb, dc, Tm> represent, wherein a, b, c, m represent unit
The respective serial number of element, s represents that acquisition node id, t represent the type of data, and d represents that data, T represent number
According to acquisition time.Master server once receives one group of data, and the sequence of these group data is as follows:
R={ < sa, tb, dc, Tm>,<sa, tb+1, dc+1, Tm+1>...,<sa+p, tb+q, dc+t, Tm+n>}
Wherein data sort according to acquisition time.If by data according to acquisition node ID and data type, i.e.
<s, t>classifies, and the data in the most each classification are relevant.Each sequence represents that gathers a joint
The set of a certain class data that point gathers.The data of sequence are all according to time-sequencing, namely according to this
The acquisition time of data is ranked up.Each sequence is cached number by a sliding window based on tuple number
According to, the medical product data that each sliding window can preserve are limited and number is fixing.Assuming that sliding window
The fixed width of mouth is k, sliding window WkRepresent, then the medical product data that a sliding window preserves
The time of sequence is Tm+1-Tm+k。
Wk={ < sa, tb, dc+1, Tm+1>,<sa, tb, dc+i, Tm+i>...,<sa, tb, dc+k, Tm+k>}
Acquisition node ID and the medical product data type of the medical product data of each sliding window are identical
, because each sliding window only preserves a type of data of an acquisition node, so the present invention can
With by < sa, tb> attributes extraction out, as the head of sliding window, i takes [1, k];Sliding window itself is only deposited
The numerical value of storage medical product data and acquisition time, i.e. < dc+i, rm+i> part.
Medical product data buffer storage space can use orderly doubly linked list and array to realize.Doubly linked list is used for
Preserve the head < s of sliding windowa, tb> and the pointer of sensing sliding window, sliding window array representation, and
And to array, length is set more than k.Doubly linked list is ordered into, according to sa, tbLexicographic order be ranked up.
So can quickly store data into corresponding slip when master server receives medical product data
In window.
Whenever there being medical product data to enter master server, master server first can be according to < sa, tb> judge this number
According to belonging to which sliding window, doubly linked list finds the head of the sliding window of correspondence;Then by < dc+i,
rm+i> it is saved in the rear end of sliding window, namely room, first, the back of array.If at doubly linked list
In do not find correspondence acquisition node and data type, then in doubly linked list create a chain table block, insert
Enter to relevant position, save the data in the most again in the array of pointer sensing of this chain table block.
Master server, after data compressing module completes, needs to be saved in data base the data compressed.
For the inquiry of data, after master server receives the retrieval request of client, from data base, ask data,
Return result to client.Insert object firstly the need of creating a data base, then specify for this object
Need the line unit of the tables of data of storage, and row race, row and this row at data place need the data of storage.
Finally data base is inserted one data table object of object and carries out storage operation.
If realizing the monitoring to real time data, need to read certain acquisition node at regular intervals
New data.Retrieval gathers the last look specifying line unit in tables of data, then have only to use a database access
Operation just can quick-searching data.Database access operation only sets the value of line unit, then the data returned are
New data;If setting time range or set the bar number returning data, it is possible to realizing acquisition node
Historical data ask.
Master server achieves following two join algorithm.The first algorithm is that every record of two tables all needs
Do and mate two-by-two, every time coupling be required for judging two tables connection attribute whether meet condition of contact,
If meeting, retaining this connection result, not retaining.The second is to utilize hashing algorithm to a table
Every a line do Hash maps according to its connection attribute, then and be hashed another table calculates hashed value,
Table is attached.
For the first join algorithm, two tables of data being attached are called external table and internal table,
First process every data line of external table, it is attached matching operation with internal table, constitutes two-layer
Loop structure, finally returns to connection result data set.
In master server, it is intended that the retrieval of time period data and the retrieval of the medical product data of appointed place
The two function kind algorithm carries out the attended operation of tables of data.The retrieval of appointment time period data is
Refer to the data that exception occurs in retrieval certain time period, it is intended that the medical product data retrieval in place refers to inspection
The medical product data that the rope all acquisition nodes in appointed place gather.If retrieving this part medicine to produce
Product data, then the present invention needs pickup area concordance list and gathers tables of data and do twice line unit and look into obtain and need
The data wanted.
For the second join algorithm, using hashing algorithm to be attached two tables, one of them table is (little
Table) as hash table, use specific algorithm to hash its connection attribute, another table (big table)
As detection table, calculate the hashed value of its connection attribute, then mate in corresponding bucket.The present invention
Each in connection attribute is used to be added the hashing algorithm of delivery after being converted into ASCII character, by hash table
Every data hash in the bucket of correspondence, wherein detection table is to gather to retrieve latest data in tables of data and obtain
Result set.
Medical product information storage system includes data monitoring.Acquisition node can collect data at regular intervals
And uploading in data base, master server is by periodically monitoring latest data, if it find that alert data,
Alert data will be issued.The detection of medical product data is not to receive data at master server
Shi Jinhang's, but after medical product information stores data base, from data base, read data examine
Survey.Medical product information storage system combines LAN on data publication and distribution.The thing of master server
Part is monitored and is realized by Servlet context events.A context monitoring is created right when master server starts
As;When master server is closed, this object can be destroyed.
In sum, the present invention proposes a kind of medicine information storage method under environment of internet of things, to medicine
The storage of product data, access and manage and carry out modularity, standardization and unitized, and saved storage
Space.
Obviously, it should be appreciated by those skilled in the art, each module or each step of the above-mentioned present invention are permissible
Realizing by general calculating system, they can concentrate in single calculating system, or is distributed in many
On the network that individual calculating system is formed, alternatively, they can use the executable program code of calculating system
Realize, it is thus possible to be stored in storage system being performed by calculating system.So, this
Bright be not restricted to any specific hardware and software combine.
It should be appreciated that the above-mentioned detailed description of the invention of the present invention is used only for exemplary illustration or explains this
The principle of invention, and be not construed as limiting the invention.Therefore, without departing from the spirit and scope of the present invention
In the case of any modification, equivalent substitution and improvement etc. done, should be included in protection scope of the present invention
Within.Additionally, claims of the present invention be intended to fall into scope and border or
Whole in the equivalents on this scope of person and border change and modifications example.
Claims (2)
1. the storage of the medicine information under environment of internet of things method, it is characterised in that including:
Being registered in medical product information storage system by all of acquisition node, medicine is produced by acquisition node
Product data are compressed storage in described information storage system.
Method the most according to claim 1, it is characterised in that described medicine information storage system includes
Master server, information storage server, managing customer end and mobile client;Master server includes data pressure
Contracting module, data update module, data retrieval module, data analysis module, data monitoring module, wherein
Data monitoring module contain alert data issue, by LAN issue alert data, managing customer end and
Mobile client provides the user the retrieval of the data to sensing equipment, and data update and include adding of acquisition node
Add, delete and the storage of drug data;The drug data of acquisition node collection is sent to data by serial ports and connects
Receiving end, data receiver pushes data into master server, and then master server stores data into information and deposits
In storage system;Data retrieval module includes that drug data is checked, real time data is monitored and historical data retrieval,
Operated by managing customer end and mobile client by user;Data analysis module is
Data in system divided according to the time period, and then the data to each time period carry out alert data statistics and divide
Analysis, it is also possible to according to the actual requirements drug data is analyzed;Data monitoring module is to information storage system
In latest data i.e. end of polling(EOP) last time start, to this poll, the drug data that the period gathered and retrieve
And detection, if data exist abnormal, then trigger alert data issuing function, by LAN by number of reporting to the police
According to being distributed to specific user;
Before data compressing module stores data into information storage system, it is compressed data processing;Main clothes
Business device receives the medical product data that acquisition node gathers, and places the data in relief area, starts pressure simultaneously
Data in sliding window buffer area are compressed, then by data by contracting timer every predefined interval
It is stored in information storage system;If master server receives the retrieval request of client, then data are retrieved
And analysis, return result to client;Master server also can start watchdog timer, between predefined
Every retrieving latest data, if it find that alert data is just issued, and poll also can be by predetermined
Frequency is carried out once, if it find that user submits retrieval request to by LAN, this request will be made sound
Should;
Data receiver reads the medical product data of wireless acquisition node from serial ports, then pushes data into
In master server;After master server have received medical product data, with < sa, tb, dc, Tm> represent, wherein
A, b, c, m represent the respective serial number of element, and s represents that acquisition node id, t represent the type of data, and d represents
Data, T represents the acquisition time of data;Master server once receives one group of data, is indicated by sequence,
Wherein data sort according to acquisition time, and each sequence represents a certain class data that an acquisition node gathers
Set;Each sequence is cached by a sliding window based on tuple number;One sliding window preserves
Time of medical product data sequence be Tm+1-Tm+k;
Sliding window Wk={ < sa, tb, dc+1, Tm+1>,<sa, tb, dc+i, Tm+i>...,<sa, tb, dc+k,
Tm+k>, wherein k is the fixed width of data sliding window;
Acquisition node ID and the medical product data type of the medical product data of each sliding window are identical
, by < sa, tb> attributes extraction out, as the head of sliding window, i takes [1, k];Sliding window itself is only
The numerical value of storage medical product data and acquisition time, i.e. < dc+i, rm+i> part;Medical product data buffer storage is empty
Between use orderly doubly linked list and array to realize;Doubly linked list is used for preserving the head < s of sliding windowa, tb> and
Point to the pointer of sliding window, sliding window array representation, and to array, length is set more than k;Two-way
Chained list is according to sa, tbLexicographic order be ranked up;Master server, main clothes are entered whenever there being medical product data
Business device is first according to < sa, tb> judge which sliding window is these data belong to, doubly linked list finds correspondence
The head of sliding window;Then by < dc+i, rm+i> it is saved in the rear end of sliding window;If at doubly linked list
In do not find correspondence acquisition node and data type, then in doubly linked list create a chain table block, insert
Enter to relevant position, save the data in the array that the pointer of this chain table block points to the most again;
The data compressed, after data compressing module completes, are saved in data base by master server;For
The inquiry of data, after master server receives the retrieval request of client, askes data from data base, will knot
Fruit returns to client;First creating a data base and insert object, then specifying for this object needs storage
The line unit of tables of data, and row race, row and this row at data place need the data of storage;Finally will
Data base inserts one data table object of object and carries out storage operation;Database access operation only sets line unit
Value, return up-to-date data;Realize adopting by setting the bar number of time range or setting return data
The historical data of collection node is ask.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610313489.7A CN106021395A (en) | 2016-05-12 | 2016-05-12 | Drug information storage method in internet-of-things environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610313489.7A CN106021395A (en) | 2016-05-12 | 2016-05-12 | Drug information storage method in internet-of-things environment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106021395A true CN106021395A (en) | 2016-10-12 |
Family
ID=57099748
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610313489.7A Pending CN106021395A (en) | 2016-05-12 | 2016-05-12 | Drug information storage method in internet-of-things environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106021395A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111061721A (en) * | 2018-10-16 | 2020-04-24 | 成都鼎桥通信技术有限公司 | Data processing method and device |
CN111078755A (en) * | 2019-12-19 | 2020-04-28 | 远景智能国际私人投资有限公司 | Time sequence data storage query method and device, server and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102938710A (en) * | 2012-11-14 | 2013-02-20 | 北京奇虎科技有限公司 | Monitoring system and method for large-scale servers |
CN104317803A (en) * | 2014-09-23 | 2015-01-28 | 厦门美柚信息科技有限公司 | Data access structure and method of database cluster |
CN104376429A (en) * | 2014-11-28 | 2015-02-25 | 北京智博高科生物技术有限公司 | Hospital radiopharmaceutical management system |
-
2016
- 2016-05-12 CN CN201610313489.7A patent/CN106021395A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102938710A (en) * | 2012-11-14 | 2013-02-20 | 北京奇虎科技有限公司 | Monitoring system and method for large-scale servers |
CN104317803A (en) * | 2014-09-23 | 2015-01-28 | 厦门美柚信息科技有限公司 | Data access structure and method of database cluster |
CN104376429A (en) * | 2014-11-28 | 2015-02-25 | 北京智博高科生物技术有限公司 | Hospital radiopharmaceutical management system |
Non-Patent Citations (1)
Title |
---|
李苇: "《物联网技术在药品管理系统中的应用》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111061721A (en) * | 2018-10-16 | 2020-04-24 | 成都鼎桥通信技术有限公司 | Data processing method and device |
CN111061721B (en) * | 2018-10-16 | 2023-07-25 | 成都鼎桥通信技术有限公司 | Data processing method and device |
CN111078755A (en) * | 2019-12-19 | 2020-04-28 | 远景智能国际私人投资有限公司 | Time sequence data storage query method and device, server and storage medium |
WO2021126079A1 (en) * | 2019-12-19 | 2021-06-24 | Envision Digital International Pte. Ltd. | Method and apparatus for storing and querying time series data, and server and storage medium thereof |
KR20220108186A (en) * | 2019-12-19 | 2022-08-02 | 엔비전 디지털 인터내셔널 피티이 리미티드 | Method and apparatus for storing and querying time series data, and server and storage medium thereof |
JP2023502543A (en) * | 2019-12-19 | 2023-01-24 | エンヴィジョン デジタル インターナショナル ピーティーイー.エルティーディー. | Methods and apparatus for storing and querying time series data, and their servers and storage media |
KR102511271B1 (en) | 2019-12-19 | 2023-03-17 | 엔비전 디지털 인터내셔널 피티이 리미티드 | Method and device for storing and querying time series data, and server and storage medium therefor |
JP7279266B2 (en) | 2019-12-19 | 2023-05-22 | エンヴィジョン デジタル インターナショナル ピーティーイー.エルティーディー. | Methods and apparatus for storing and querying time series data, and their servers and storage media |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11768811B1 (en) | Managing user data in a multitenant deployment | |
US11792291B1 (en) | Proxying hypertext transfer protocol (HTTP) requests for microservices | |
US11924021B1 (en) | Actionable event responder architecture | |
US20220398243A1 (en) | Key name synthesis | |
CN105005274B (en) | Big data in management process control system | |
US10127273B2 (en) | Distributed processing of network data using remote capture agents | |
US9923767B2 (en) | Dynamic configuration of remote capture agents for network data capture | |
US11172065B1 (en) | Monitoring framework | |
CN106709003A (en) | Hadoop-based mass log data processing method | |
US20180376000A1 (en) | Graphical user interface generation using a hierarchy | |
CN107018042A (en) | Method for tracing and tracing system for online service system | |
CN105302697B (en) | A kind of running state monitoring method and system of density data model database | |
CN110336863B (en) | Data reporting method and system | |
CN110209518A (en) | A kind of multi-data source daily record data, which is concentrated, collects storage method and device | |
US11481361B1 (en) | Cascading payload replication to target compute nodes | |
CN105956141A (en) | Medicine data storage method based on Internet of things | |
CN114328124A (en) | Method and device for business monitoring, storage medium and electronic device | |
CN106021395A (en) | Drug information storage method in internet-of-things environment | |
US11782920B1 (en) | Durable search queries for reliable distributed data retrieval | |
CN105827454A (en) | Method and system for constructing topologic CDN (content delivery network) model | |
CN202841168U (en) | Network resource monitoring system | |
US11949547B2 (en) | Enhanced simple network management protocol (SNMP) connector | |
CN114553747A (en) | Method, device, terminal and storage medium for detecting abnormality of redis cluster | |
CN111585819B (en) | Fault analysis method and system for distribution network communication equipment | |
CN106791236A (en) | The management system of call center |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161012 |
|
RJ01 | Rejection of invention patent application after publication |