CN105138330A - Processing method and device for dygraphs graphic object - Google Patents

Processing method and device for dygraphs graphic object Download PDF

Info

Publication number
CN105138330A
CN105138330A CN201510527489.2A CN201510527489A CN105138330A CN 105138330 A CN105138330 A CN 105138330A CN 201510527489 A CN201510527489 A CN 201510527489A CN 105138330 A CN105138330 A CN 105138330A
Authority
CN
China
Prior art keywords
dygraphs
snapshot
drawing object
characteristic information
curve data
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
CN201510527489.2A
Other languages
Chinese (zh)
Other versions
CN105138330B (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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510527489.2A priority Critical patent/CN105138330B/en
Publication of CN105138330A publication Critical patent/CN105138330A/en
Application granted granted Critical
Publication of CN105138330B publication Critical patent/CN105138330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention discloses a processing method and device for a dygraphs graphic object. The processing method includes the steps that whether the dygraphs graphic object exists or not is judged according to an object ID of curve data; if yes, a public layer is established in a drawing area, and the dygraphs graphic object is generated on the public layer; the dygraphs graphic object is converted into a graphic snap, snap characteristic information is generated, and the graphic snap, the snap characteristic information and the object ID are cached in a snap information base; the dygraphs graphic object is closed, and the dygraphs graphic object and the public layer where the dygraphs graphic object exists are deleted in the memory. According to the processing method and device for the dygraphs graphic object, the graphic snap and the snap characteristic information are introduced, the memory consumption on maintaining the dygraphs graphic object can be greatly reduced, and correctness and continuity of processing the dygraphs graphic object can be effectively ensured.

Description

The disposal route of dygraphs Drawing Object and treating apparatus
Technical field
The present invention relates to Computer Applied Technology field, particularly a kind of disposal route of dygraphs Drawing Object and treating apparatus.
Background technology
Dygraphs is a Javascript storehouse of increasing income, and it can produce can be mutual, a scalable curve map by read data files, is referred to as dygraphs Drawing Object.Dygraphs Drawing Object can be used for showing the data set of large density, as stock, temperature etc., and user can be allowed to browse, explains and the function such as convergent-divergent, mark, moving average calculation that operating curve figure, dygraphs support curve map.
Dygraphs supports the operation to each data point in curve map, after curve map has built, can according to this curve map of follow-up data file operation, as upgraded, and the additional information in attended operation process, therefore the processing procedure of dygraphs Drawing Object is very considerable to the consumption of internal memory.Such as, read the data file that a size is about 3MB, need the dygraphs Drawing Object safeguarding an about 100MB size in internal memory.When needing to process more dygraphs Drawing Object simultaneously, can low memory become its critical bottleneck that normally run, and the huge consumption of internal memory causes process mistake and process to be interrupted sometimes.
Summary of the invention
In order to solve the problems of the technologies described above, the invention provides a kind of disposal route and treating apparatus of dygraphs Drawing Object, effectively overcome the defect that existing disposal route memory consumption causes greatly processing mistake and process interruption.
In order to reach the object of the invention, the invention provides a kind of disposal route of dygraphs Drawing Object, comprising:
Obtain curve data, from described curve data, parse object identity ID, judge whether the dygraphs Drawing Object corresponding to described curve data exists according to described object ID;
When dygraphs Drawing Object corresponding to described curve data does not exist, create a public layer at drawing area, use described curve data to generate a dygraphs Drawing Object in described public layer;
Described dygraphs Drawing Object is converted to figure snapshot, and according to described curve data generating snapshot characteristic information, described figure snapshot, snapshot characteristic information and object ID is buffered in SNAPSHOT INFO storehouse;
Close described dygraphs Drawing Object, in internal memory, delete the public layer at described dygraphs Drawing Object and its place.
Further, described snapshot characteristic information comprises data file path, starts to record line number, terminate record line number, mobile and horizontal line, X-axis scope, Y-axis scope and mark records.
Further, also comprise,
When dygraphs Drawing Object corresponding to described curve data exists, from SNAPSHOT INFO storehouse, figure snapshot corresponding to described object ID and snapshot characteristic information is read, according to described figure snapshot and snapshot characteristic information recovery dygraphs Drawing Object according to described object ID;
According to curve data, the dygraphs Drawing Object recovered is upgraded;
Dygraphs Drawing Object after upgrading is converted to figure snapshot, and according to described curve data generating snapshot characteristic information, described figure snapshot, snapshot characteristic information and object ID is buffered in SNAPSHOT INFO storehouse;
Close described dygraphs Drawing Object, in internal memory, delete the public layer at described dygraphs Drawing Object and its place.
Further, describedly to be specially according to described figure snapshot and snapshot characteristic information recovery dygraphs Drawing Object: according to the data file path in snapshot characteristic information, start to record line number and terminate the data that record line number recovers dygraphs Drawing Object, the convergent-divergent situation of dygraphs Drawing Object is set according to X-axis scope, Y-axis scope, the level and smooth situation of dygraphs Drawing Object is set according to mobile and horizontal line, again on dygraphs Drawing Object, generates mark according to mark records.
Further, before acquisition curve data step, also comprise:
Obtain data file, data file is divided into multiple packet, and each packet comprises multiple curve data, makes described multiple packet executed in parallel operation.
In order to reach the object of the invention, present invention also offers a kind for the treatment of apparatus of dygraphs Drawing Object, comprising:
Judge module, for obtaining curve data, parses object identity ID from described curve data, judges whether the dygraphs Drawing Object corresponding to described curve data exists, and send judged result according to described object ID;
Creation module, be connected with described judge module, for receiving the judged result that described judge module sends, when the dygraphs Drawing Object corresponding to described curve data does not exist, create a public layer at drawing area, use described curve data to generate a dygraphs Drawing Object in described public layer;
Snapshot module, be connected with described creation module, for described dygraphs Drawing Object is converted to figure snapshot, and according to described curve data generating snapshot characteristic information, described figure snapshot, snapshot characteristic information and object ID are buffered in SNAPSHOT INFO storehouse;
Removing module, is connected with described snapshot module, for closing described dygraphs Drawing Object, deletes the public layer at described dygraphs Drawing Object and its place in internal memory.
Further, described snapshot characteristic information comprises data file path, starts to record line number, terminate record line number, mobile and horizontal line, X-axis scope, Y-axis scope and mark records.
Further, also comprise,
Recover module, be connected with described judge module, for receiving the judged result that described judge module sends, when the dygraphs Drawing Object corresponding to described curve data exists, from SNAPSHOT INFO storehouse, figure snapshot corresponding to described object ID and snapshot characteristic information is read, according to described figure snapshot and snapshot characteristic information recovery dygraphs Drawing Object according to described object ID;
Update module, with described recovery model calling, for upgrading the dygraphs Drawing Object recovered according to curve data;
Described snapshot module, also be connected with described update module, for the dygraphs Drawing Object after renewal is converted to figure snapshot, and according to described curve data generating snapshot characteristic information, described figure snapshot, snapshot characteristic information and object ID are buffered in SNAPSHOT INFO storehouse.
Further, describedly to be specially according to described figure snapshot and snapshot characteristic information recovery dygraphs Drawing Object: according to the data file path in snapshot characteristic information, start to record line number and terminate the data that record line number recovers dygraphs Drawing Object, the convergent-divergent situation of dygraphs Drawing Object is set according to X-axis scope, Y-axis scope, the level and smooth situation of dygraphs Drawing Object is set according to mobile and horizontal line, again on dygraphs Drawing Object, generates mark according to mark records.
Further, also comprise:
Grouping module, for obtaining data file, is divided into multiple packet by data file, the multiple curve datas included by each packet is sent to respectively the judge module of each packet, makes described multiple packet executed in parallel operation.
The invention provides a kind of disposal route and treating apparatus of dygraphs Drawing Object, introduce figure snapshot and snapshot feature information processing, utilize the process of figure snapshot that dygraphs Drawing Object is converted to figure snapshot and carry out buffer memory, the memory consumption safeguarding dygraphs Drawing Object can be greatly reduced, utilize snapshot feature information processing to record the operation trace of dygraphs Drawing Object, figure snapshot can be converted to the dygraphs Drawing Object of nearest state, effectively ensure that correctness and the continuity of process dygraphs Drawing Object.The present invention is simple to operate, is easy to safeguard, has broad application prospects.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in instructions, claims and accompanying drawing and obtain.
Accompanying drawing explanation
Accompanying drawing is used to provide the further understanding to technical solution of the present invention, and forms a part for instructions, is used from and explains technical scheme of the present invention, do not form the restriction to technical solution of the present invention with the embodiment one of the application.
Fig. 1 is the processing flow chart of the disposal route of dygraphs Drawing Object of the present invention;
Fig. 2 is the structural representation of the treating apparatus of dygraphs Drawing Object of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, hereinafter will be described in detail to embodiments of the invention by reference to the accompanying drawings.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combination in any mutually.
Can perform in the computer system of such as one group of computer executable instructions in the step shown in the process flow diagram of accompanying drawing.Further, although show logical order in flow charts, in some cases, can be different from the step shown or described by order execution herein.
Fig. 1 is the processing flow chart of the disposal route of dygraphs Drawing Object of the present invention.The huge problem of internal memory is consumed for operation and maintenance dygraphs Drawing Object, the present invention proposes and will operate dygraphs Drawing Object and safeguard that dygraphs Drawing Object separates the design concept processed, adopt existing method to operate dygraphs Drawing Object, and adopt snap shot to safeguard dygraphs Drawing Object.Specifically, the present invention carries out buffer memory by dygraphs Drawing Object is converted into figure snapshot, the consumption of internal memory can be greatly reduced, the operation trace of dygraphs Drawing Object is recorded by the characteristic information arranging dygraphs Drawing Object, make can mutually change between dygraphs Drawing Object and figure snapshot, thus realize correctness and the continuity of the process of dygraphs Drawing Object, promote runnability.As shown in Figure 1, the disposal route of dygraphs Drawing Object of the present invention comprises:
Step 1, acquisition data file, data file is divided into M packet, each packet comprises N number of curve data.
In this step, first the data file of all dygraphs Drawing Objects needing operation is obtained, data file generally includes multiple file (files), and each file comprises 1 object data, and this 1 object data is for operating a dygraphs Drawing Object.In actual use, can according to quantity set M and N of data file file folder, M and N is positive integer, data file is cut into M packet, and each packet comprises N number of dygraphs Drawing Object.Data file is split as the effect of multiple packet by the present invention, is to arrange all packets to walk abreast and carry out the process of object data, and carries out the process of object data in each packet successively.Such as, for the data file comprising 100 object datas, data file can be divided into 5 packets (M=5), each packet comprises 20 object datas (N=20), 5 data grouping parallel executable operations, 20 object datas executable operations successively of each packet.In actual use, packet of the present invention not only can adopt the dividing mode of the quantity according to object data, Else Rule can also be adopted to divide into groups, such as according to dividing mode such as the type of object data, the priority of foundation object data, the quantity of packet can preset according to actual memory amount.
Following treatment scheme is illustrating for a packet, and in practical application, the process of M packet is carried out simultaneously, and treatment scheme is identical.
Step 2, i=1 is set.
Step 3, from packet read i-th curve data.
Step 4, from described curve data, parse object identity (object ID), judge whether the dygraphs Drawing Object corresponding to this curve data exists according to object ID, non-existent words, then perform step 5, existence, then perform step 9.
In actual use, each curve data relates to two types, and a kind of is the new Drawing Object of establishment one, and another kind upgrades certain Drawing Object existing.Therefore, first curve data is resolved, parse the object ID of this curve data, then judge whether to exist the dygraphs Drawing Object with this object ID according to object ID, non-existent words then perform and create the process of dygraphs Drawing Object, and the words of existence then perform and upgrade the process of dygraphs Drawing Object.
Step 5, create a public layer at drawing area, use this curve data to generate a dygraphs Drawing Object in this public layer, namely generate the dygraphs Drawing Object that has this object ID.
Step 6, this dygraphs Drawing Object is converted to figure snapshot, and according to this curve data generating snapshot characteristic information, this figure snapshot, snapshot characteristic information and object ID is buffered in SNAPSHOT INFO storehouse.
In this step, the present invention proposes the concept of figure snapshot and snapshot characteristic information.First, utilize figure snapshot, the dygraphs Drawing Object that public layer has generated is converted to figure snapshot and carries out buffer memory, the memory consumption safeguarding dygraphs Drawing Object can be reduced.Secondly, by snapshot characteristic information, solve the problem that static figure snapshot cannot reflect dygraphs Drawing Object historical operation track, to ensure the correctness and the continuity that process dygraphs Drawing Object.The present invention uses snapshot characteristic information to record the operation trace of dygraphs Drawing Object, when figure snapshot is converted to dygraphs Drawing Object, according to snapshot characteristic information, dygraphs Drawing Object is returned to the state operated last time.In actual use, snapshot characteristic information comprises data file path, starts to record line number, terminate the parameters such as record line number, mobile and horizontal line, X-axis scope, Y-axis scope and mark records, above-mentioned parameter combines with figure snapshot, operation before dygraphs Drawing Object can be recovered, figure snapshot is converted to the dygraphs Drawing Object of nearest state.
Object ID proposed by the invention, for uniquely tagged dygraphs Drawing Object, associates the figure snapshot of this dygraphs Drawing Object and snapshot characteristic information simultaneously, and SNAPSHOT INFO storehouse is for storing the data structure of above-mentioned information architecture in buffer memory.
The dygraphs Drawing Object of step 7, closedown current operation, and in internal memory, delete the public layer at this dygraphs Drawing Object and its place.
Dygraphs Drawing Object has operated and after generating figure snapshot, i.e. the memory source that takies of this dygraphs Drawing Object recyclable.
Step 8, arrange i=i+1, judging i < N, is perform step 3, otherwise terminates.
After processing a curve data, judge whether untreated curve data in addition, some words process next curve data, the process of end notebook data grouping that it's not true.
Step 9, according to object ID, from SNAPSHOT INFO storehouse, read the figure snapshot corresponding to this object ID and snapshot characteristic information, according to figure snapshot and snapshot characteristic information recovery dygraphs Drawing Object.
In actual use, specifically comprise according to figure snapshot and snapshot characteristic information recovery dygraphs Drawing Object, a new public layer is created at drawing area, first figure snapshot is arranged in public layer, then according to snapshot characteristic information, figure snapshot is converted to dygraphs Drawing Object.Particularly, according to the data file path in snapshot characteristic information, start to record line number and terminate the data that record line number recovers dygraphs Drawing Object, the convergent-divergent situation of dygraphs Drawing Object is set according to X-axis scope, Y-axis scope, the level and smooth situation of dygraphs Drawing Object is set according to mobile and horizontal line, again on dygraphs Drawing Object, generates mark according to mark records.
Step 10, upgrade the dygraphs Drawing Object of this recovery according to curve data.
Step 11, by upgrade after dygraphs Drawing Object be converted to the figure snapshot after renewal, and generate the snapshot characteristic information after upgrading according to this curve data, the snapshot characteristic information after the figure snapshot after renewal, renewal and object ID are buffered in SNAPSHOT INFO storehouse.
Figure snapshot after this step upgrades and snapshot characteristic information, will replace figure snapshot and the snapshot characteristic information of buffer memory before in SNAPSHOT INFO storehouse.
Dygraphs Drawing Object after step 12, closedown upgrade, and in internal memory, delete the public layer at the dygraphs Drawing Object after this renewal and its place.
Step 13, arrange i=i+1, judging i < N, is perform step 3, otherwise terminates.
The invention provides a kind of disposal route of dygraphs Drawing Object, introduce the concept of figure snapshot and snapshot characteristic information, utilize figure snapshot, dygraphs Drawing Object is converted to figure snapshot and carries out buffer memory, the memory consumption safeguarding dygraphs Drawing Object can be greatly reduced, utilize snapshot characteristic information to record the operation trace of dygraphs Drawing Object, figure snapshot can be converted to the dygraphs Drawing Object of nearest state, effectively ensure that correctness and the continuity of process dygraphs Drawing Object.In fact, the disposal route of dygraphs Drawing Object of the present invention is based on operating dygraphs Drawing Object and safeguard that dygraphs Drawing Object separates the design concept processed, adopt snapshot mechanism and caching mechanism, for temporarily not needing dygraphs Drawing Object to be processed, buffer memory snap shot is adopted to safeguard, when needs process, utilize figure snapshot and the exercisable dygraphs Drawing Object of snapshot characteristic information recovery.Internal memory shared by buffer memory figure snapshot and snapshot characteristic information is little, therefore the internal memory safeguarded shared by dygraphs Drawing Object is considerably reduced, owing to figure snapshot can be converted to exercisable dygraphs Drawing Object, therefore effectively ensure that correctness and the continuity of process dygraphs Drawing Object, improve runnability.
Further, the present invention is divided into groups by setting data, the operation executed in parallel of M packet, and the operation in each packet performs successively, because synchronization in each packet only processes a dygraphs Drawing Object, therefore ensure that at synchronization, M dygraphs Drawing Object is only had at most to process in Installed System Memory, not only on the basis of multiple dygraphs Drawing Object parallel processing, improve treatment effeciency, and control the quantity simultaneously processing dygraphs Drawing Object, effectively ensure that internal memory uses.
On preceding solution basis, present invention also offers a kind for the treatment of apparatus of dygraphs Drawing Object.Fig. 2 is the structural representation of the treating apparatus of dygraphs Drawing Object of the present invention.As shown in Figure 2, treating apparatus of the present invention comprises judge module, creation module, recovery module, update module, snapshot module and removing module, wherein,
Judge module, for obtaining curve data, from described curve data, parse object identity ID, judge whether the dygraphs Drawing Object corresponding to described curve data exists according to described object ID, and judged result sent to creation module and recover module;
Creation module, be connected with described judge module, for receiving the judged result that described judge module sends, when the dygraphs Drawing Object corresponding to described curve data does not exist, create a public layer at drawing area, use described curve data to generate a dygraphs Drawing Object in described public layer; After generation dygraphs Drawing Object completes, send establishment to snapshot module and complete instruction;
Snapshot module, be connected with described creation module, after the establishment sent for receiving described creation module completes instruction, described dygraphs Drawing Object is converted to figure snapshot, and according to described curve data generating snapshot characteristic information, described figure snapshot, snapshot characteristic information and object ID are buffered in SNAPSHOT INFO storehouse; After buffer memory completes, send buffer memory to removing module and complete instruction;
Removing module, is connected with described snapshot module, after the buffer memory sent completing instruction, closing described dygraphs Drawing Object, deleting the public layer at described dygraphs Drawing Object and its place in internal memory for receiving described snapshot module;
Recover module, be connected with described judge module, for receiving the judged result that described judge module sends, when the dygraphs Drawing Object corresponding to described curve data exists, from SNAPSHOT INFO storehouse, figure snapshot corresponding to described object ID and snapshot characteristic information is read, according to described figure snapshot and snapshot characteristic information recovery dygraphs Drawing Object according to described object ID; After recovery dygraphs Drawing Object completes, send recovery to update module and complete instruction;
Update module, with described recovery model calling, after the recovery sent completes instruction, upgrades the dygraphs Drawing Object recovered according to curve data for receiving described recovery module; After renewal completes, send renewal to snapshot module and complete instruction;
Described snapshot module, also be connected with described update module, after the renewal sent for receiving described update module completes instruction, dygraphs Drawing Object after upgrading is converted to figure snapshot, and according to described curve data generating snapshot characteristic information, described figure snapshot, snapshot characteristic information and object ID are buffered in SNAPSHOT INFO storehouse; After buffer memory completes, send buffer memory to removing module and complete instruction; Described removing module receive described snapshot module send buffer memory complete instruction after, close described dygraphs Drawing Object, in internal memory, delete the public layer at described dygraphs Drawing Object and its place.
In technique scheme, described snapshot characteristic information comprises data file path, starts to record line number, terminate record line number, mobile and horizontal line, X-axis scope, Y-axis scope and mark records.Describedly to be specially according to described figure snapshot and snapshot characteristic information recovery dygraphs Drawing Object: according to the data file path in snapshot characteristic information, start to record line number and terminate the data that record line number recovers dygraphs Drawing Object, the convergent-divergent situation of dygraphs Drawing Object is set according to X-axis scope, Y-axis scope, the level and smooth situation of dygraphs Drawing Object is set according to mobile and horizontal line, again on dygraphs Drawing Object, generates mark according to mark records.
In technique scheme, also comprise poller module, be connected with removing module and judge module respectively, after the deletion sent for receiving removing module completes instruction, judge whether untreated curve data in addition, have, read next curve data, curve data is sent to judge module.
In technique scheme, also comprise grouping module, described grouping module is for obtaining data file, data file is divided into multiple packet, multiple curve datas included by each packet are sent to respectively the judge module of each packet, multiple packet executed in parallel is operated.
Although the embodiment disclosed by the present invention is as above, the embodiment that described content only adopts for ease of understanding the present invention, and be not used to limit the present invention.Those of skill in the art belonging to any the present invention; under the prerequisite not departing from the spirit and scope disclosed by the present invention; any amendment and change can be carried out in the form implemented and details; but scope of patent protection of the present invention, the scope that still must define with appending claims is as the criterion.

Claims (10)

1. a disposal route for dygraphs Drawing Object, is characterized in that, comprising:
Obtain curve data, from described curve data, parse object identity ID, judge whether the dygraphs Drawing Object corresponding to described curve data exists according to described object ID;
When dygraphs Drawing Object corresponding to described curve data does not exist, create a public layer at drawing area, use described curve data to generate a dygraphs Drawing Object in described public layer;
Described dygraphs Drawing Object is converted to figure snapshot, and according to described curve data generating snapshot characteristic information, described figure snapshot, snapshot characteristic information and object ID is buffered in SNAPSHOT INFO storehouse;
Close described dygraphs Drawing Object, in internal memory, delete the public layer at described dygraphs Drawing Object and its place.
2. method according to claim 1, is characterized in that, described snapshot characteristic information comprises data file path, starts to record line number, terminate record line number, mobile and horizontal line, X-axis scope, Y-axis scope and mark records.
3. method according to claim 1, is characterized in that, also comprises,
When dygraphs Drawing Object corresponding to described curve data exists, from SNAPSHOT INFO storehouse, figure snapshot corresponding to described object ID and snapshot characteristic information is read, according to described figure snapshot and snapshot characteristic information recovery dygraphs Drawing Object according to described object ID;
According to curve data, the dygraphs Drawing Object recovered is upgraded;
Dygraphs Drawing Object after upgrading is converted to figure snapshot, and according to described curve data generating snapshot characteristic information, described figure snapshot, snapshot characteristic information and object ID is buffered in SNAPSHOT INFO storehouse;
Close described dygraphs Drawing Object, in internal memory, delete the public layer at described dygraphs Drawing Object and its place.
4. method according to claim 3, it is characterized in that, describedly to be specially according to described figure snapshot and snapshot characteristic information recovery dygraphs Drawing Object: according to the data file path in snapshot characteristic information, start to record line number and terminate the data that record line number recovers dygraphs Drawing Object, the convergent-divergent situation of dygraphs Drawing Object is set according to X-axis scope, Y-axis scope, the level and smooth situation of dygraphs Drawing Object is set according to mobile and horizontal line, again on dygraphs Drawing Object, generates mark according to mark records.
5. according to the arbitrary described method of Claims 1 to 4, it is characterized in that, before acquisition curve data step, also comprise:
Obtain data file, data file is divided into multiple packet, and each packet comprises multiple curve data, makes described multiple packet executed in parallel operation.
6. a treating apparatus for dygraphs Drawing Object, is characterized in that, comprising:
Judge module, for obtaining curve data, parses object identity ID from described curve data, judges whether the dygraphs Drawing Object corresponding to described curve data exists, and send judged result according to described object ID;
Creation module, be connected with described judge module, for receiving the judged result that described judge module sends, when the dygraphs Drawing Object corresponding to described curve data does not exist, create a public layer at drawing area, use described curve data to generate a dygraphs Drawing Object in described public layer;
Snapshot module, be connected with described creation module, for described dygraphs Drawing Object is converted to figure snapshot, and according to described curve data generating snapshot characteristic information, described figure snapshot, snapshot characteristic information and object ID are buffered in SNAPSHOT INFO storehouse;
Removing module, is connected with described snapshot module, for closing described dygraphs Drawing Object, deletes the public layer at described dygraphs Drawing Object and its place in internal memory.
7. treating apparatus according to claim 6, is characterized in that, described snapshot characteristic information comprises data file path, starts to record line number, terminate record line number, mobile and horizontal line, X-axis scope, Y-axis scope and mark records.
8. treating apparatus according to claim 6, is characterized in that, also comprises,
Recover module, be connected with described judge module, for receiving the judged result that described judge module sends, when the dygraphs Drawing Object corresponding to described curve data exists, from SNAPSHOT INFO storehouse, figure snapshot corresponding to described object ID and snapshot characteristic information is read, according to described figure snapshot and snapshot characteristic information recovery dygraphs Drawing Object according to described object ID;
Update module, with described recovery model calling, for upgrading the dygraphs Drawing Object recovered according to curve data;
Described snapshot module, also be connected with described update module, for the dygraphs Drawing Object after renewal is converted to figure snapshot, and according to described curve data generating snapshot characteristic information, described figure snapshot, snapshot characteristic information and object ID are buffered in SNAPSHOT INFO storehouse.
9. treating apparatus according to claim 8, it is characterized in that, describedly to be specially according to described figure snapshot and snapshot characteristic information recovery dygraphs Drawing Object: according to the data file path in snapshot characteristic information, start to record line number and terminate the data that record line number recovers dygraphs Drawing Object, the convergent-divergent situation of dygraphs Drawing Object is set according to X-axis scope, Y-axis scope, the level and smooth situation of dygraphs Drawing Object is set according to mobile and horizontal line, again on dygraphs Drawing Object, generates mark according to mark records.
10., according to the arbitrary described treating apparatus of claim 6 ~ 9, it is characterized in that, also comprise:
Grouping module, for obtaining data file, is divided into multiple packet by data file, the multiple curve datas included by each packet is sent to respectively the judge module of each packet, makes described multiple packet executed in parallel operation.
CN201510527489.2A 2015-08-25 2015-08-25 The processing method and processing unit of dygraphs Drawing Objects Active CN105138330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510527489.2A CN105138330B (en) 2015-08-25 2015-08-25 The processing method and processing unit of dygraphs Drawing Objects

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510527489.2A CN105138330B (en) 2015-08-25 2015-08-25 The processing method and processing unit of dygraphs Drawing Objects

Publications (2)

Publication Number Publication Date
CN105138330A true CN105138330A (en) 2015-12-09
CN105138330B CN105138330B (en) 2018-11-13

Family

ID=54723688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510527489.2A Active CN105138330B (en) 2015-08-25 2015-08-25 The processing method and processing unit of dygraphs Drawing Objects

Country Status (1)

Country Link
CN (1) CN105138330B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140536A (en) * 2007-05-21 2008-03-12 中兴通讯股份有限公司 Snapshot system supporting cascades snapshot and snapshot processing method thereof
CN101183383A (en) * 2007-12-17 2008-05-21 中国科学院计算技术研究所 Snapshot system and method of use thereof
CN102682463A (en) * 2011-03-18 2012-09-19 同济大学 Large-scale data visualization processing method based on Web Pseudo-three dimensions (3D)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140536A (en) * 2007-05-21 2008-03-12 中兴通讯股份有限公司 Snapshot system supporting cascades snapshot and snapshot processing method thereof
CN101183383A (en) * 2007-12-17 2008-05-21 中国科学院计算技术研究所 Snapshot system and method of use thereof
CN102682463A (en) * 2011-03-18 2012-09-19 同济大学 Large-scale data visualization processing method based on Web Pseudo-three dimensions (3D)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
无: "Photoshop快照功能使用全解", 《HTTP://WWW.PC6.COM/INFOVIEW/ARTICLE_34248.HTML》 *

Also Published As

Publication number Publication date
CN105138330B (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN105404652A (en) Mass small file processing method based on HDFS
CN103713926B (en) Method and system for updating software of client in advance
CN106708825B (en) A kind of data file processing method and system
CN106227587B (en) A kind of band snapshot virtual machine complete machine dynamic migration method and device
CN103559301A (en) Method of data update, database trigger and SE (search engine)
CN105100716B (en) A kind of secure storage unit and its system for Network Video Surveillance
CN104572644A (en) Database updating device and database updating method
CN109298873B (en) System upgrading method and device
CN104020950A (en) Input method based on touch screen and input device with touch screen
CN104217174A (en) Safety storage system and safety storage method for distributed files
CN105487909B (en) A method of reducing power equipment firmware upgrade amount
CN102916974A (en) Cluster configuration updating method
CN104572845A (en) File distribution method and device, equipment and system
CN104657378A (en) File cache method and device
CN112732191B (en) Method, system, device and medium for merging tree merging data based on log structure
CN104462342B (en) database snapshot synchronization processing method and device
CN104461929A (en) Distributed type data caching method based on interceptor
US9031905B2 (en) Data synchronization
CN107545060A (en) A kind of method for limiting speed and device of redis principals and subordinates full dose synchrodata
CN103064843B (en) Data processing equipment and data processing method
CN103793506A (en) Video file management method and device
CN104572891A (en) File updating method for separately storing network information
CN103530369A (en) De-weight method and system
CN104077078A (en) Methods and devices for reading and updating storage region
CN103902275A (en) Method and system for achieving conversion of language versions of applications

Legal Events

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