CN108509248A - Data processing method and device, storage medium, processor and terminal - Google Patents

Data processing method and device, storage medium, processor and terminal Download PDF

Info

Publication number
CN108509248A
CN108509248A CN201810331772.1A CN201810331772A CN108509248A CN 108509248 A CN108509248 A CN 108509248A CN 201810331772 A CN201810331772 A CN 201810331772A CN 108509248 A CN108509248 A CN 108509248A
Authority
CN
China
Prior art keywords
data
pending
user interface
thread
pending 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
CN201810331772.1A
Other languages
Chinese (zh)
Other versions
CN108509248B (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201810331772.1A priority Critical patent/CN108509248B/en
Publication of CN108509248A publication Critical patent/CN108509248A/en
Application granted granted Critical
Publication of CN108509248B publication Critical patent/CN108509248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses a kind of data processing method and device, storage medium, processor and terminals.Wherein, this method includes:Obtain pending data;Pending data is converted into target data model using first thread, wherein target data model is identified that the second thread is for showing on a user interface target data model by the second thread;Target data model is shown on a user interface using the second thread.The present invention solves data processing in the related technology and refreshes using the same thread with user interface, causes user interface to refresh and takes longer technical problem.

Description

Data processing method and device, storage medium, processor and terminal
Technical field
The present invention relates to computer realms, in particular to a kind of data processing method and device, storage medium, place Manage device and terminal.
Background technology
Currently, instant messaging class tool needs to ensure fluency during user's use, and data processing and user interface Refresh synchronization is the practical embodiment of the requirement.Data processing and the mode of user interface refresh synchronization usually will in the related technology Data processing is placed on the same thread with user interface refreshing, and data processing and user interface refreshing all use UI (User Interface, user interface) thread.When there is large batch of data to reach, when especially including cycle in data service, If recycle ratio is more, even in the case of nested subcycle, user interface refreshes very time consuming, this will cause to operate Interim card influences user experience or even the stuck no response of UI threads.Moreover, data processing and user interface refreshing are put together, when When business becomes complexity, code will seem incomparable too fat to move, and reusability is not high, and the cost of later maintenance increases.
Refresh for data processing in the related technology and user interface and use the same thread, user interface is caused to refresh consumption When longer problem, currently no effective solution has been proposed.
Invention content
An embodiment of the present invention provides a kind of data processing method and device, storage medium, processor and terminals, at least It solves data processing in the related technology with user interface to refresh using the same thread, causes user interface refreshing to take longer Technical problem.
One side according to the ... of the embodiment of the present invention provides a kind of data processing method, including:Obtain pending number According to;The pending data is converted into target data model using first thread, wherein the target data model is by second Thread identifies that second thread is for showing on a user interface the target data model;Utilize second thread Include in the user interface by the target data model.
Further, described the pending data is converted into target data model to include using first thread:It determines The format of the pending data, and search data handling component corresponding with the format of the pending data;Using looking into The pending data is converted to the target data model by the data handling component found.
Further, described that the pending data is converted into the mesh using the data handling component found It includes at least one of to mark data model:In the case where the pending data includes JS object tags, waited for described Processing data resolve to the representation of JS object tags;It, will be described in the case where the pending data includes picture Picture and word in pending data are split;It include picture in the pending data, and the pixel of the picture In the case that value is more than targets threshold, the picture in the pending data is subjected to compression processing.
Further, the target data model is included being wrapped in the user interface by the utilization second thread It includes:In the case where the display properties of the pending data is arranged to need to be shown in the user interface, by the mesh Mark data model is shown in the user interface.
Further, the display properties in the pending data is arranged to need to be shown in the user interface In the case of, by the target data model including in the user interface includes:Using in the target data model The display area of user interface described in first part's data update, wherein first part's data are worked as with the display area The data of preceding display are corresponding;For in the target data model second part data be arranged more new logo, wherein it is described more It is corresponding with the second part data that new logo is used to indicate the data shown by the display area, utilizes Display area described in the second part data update, the second part data are in the target data model except described the Data except a part of data.
Further, after more new logo is arranged in the second part data in described for the target data model, institute The method of stating further includes:In the case where detecting object run, using display area described in the second part data update, In, the object run, which is used to indicate, is switched to the data that the display area is currently shown and the second part data phase Corresponding data.
Further, after the acquisition pending data, the method further includes:It is waited for described using third thread Processing data are stored.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of data processing equipment, including:Acquiring unit is used In acquisition pending data;Converting unit, for the pending data to be converted to target data model using first thread, Wherein, the target data model is identified by the second thread, second thread be used for by the target data model include In user interface;Display unit, for by the target data model including in the user interface using second thread On.
Further, the converting unit includes:Determining module, the format for determining the pending data, and look into Look for data handling component corresponding with the format of the pending data;Conversion module, for utilizing the number found The pending data is converted into the target data model according to processing component.
Further, the conversion module includes at least one of:First processing submodule, for described pending In the case that data include JS object tags, the pending data is resolved to the representation of JS object tags;Second Handle submodule, in the case where the pending data includes picture, by the pending data picture with Word is split;Third handles submodule, for including picture in the pending data, and the pixel value of the picture In the case of more than targets threshold, the picture in the pending data is subjected to compression processing.
Further, the display unit includes:Display module is set for the display properties in the pending data It is set in the case of needing to be shown in the user interface, includes in the user interface by the target data model.
Further, the display module includes:First update submodule, for using in the target data model The display area of user interface described in first part's data update, wherein first part's data are worked as with the display area The data of preceding display are corresponding;Submodule is configured, for being updated for the second part data setting in the target data model Mark, wherein the more new logo is used to indicate data and the second part data phase shown by the display area In the case of corresponding, using display area described in the second part data update, the second part data are the target Data in data model in addition to first part's data.
Further, the display module further includes:Second update submodule, for the case where detecting object run Under, utilize display area described in the second part data update, wherein the object run is used to indicate the viewing area The data that domain is currently shown are switched to data corresponding with the second part data.
Further, described device further includes:Storage unit utilizes for after the acquisition pending data Three threads store the pending data.
Another aspect according to the ... of the embodiment of the present invention, additionally provides a kind of storage medium, and the storage medium includes storage Program, wherein described program run when execute data processing method described in any one of the above embodiments.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of processor, and the processor is used to run program, Wherein, data processing method described in any one of the above embodiments is executed when described program is run.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of terminal, including memory and processor, wherein Computer program is stored in the memory, the processor is arranged to run the computer program to execute above-mentioned Data processing method described in one.
In embodiments of the present invention, by after getting pending data, using first thread by pending data Be converted to target data model, wherein target data model is identified that the second thread is used for target data model by the second thread Display is on a user interface;Target data model is shown on a user interface using the second thread, has been reached using two not Data processing and the purpose that user interface refreshes are realized with thread, and then solve data processing in the related technology and user circle Face, which is refreshed, uses the same thread, causes user interface to refresh and takes longer technical problem, shortens user circle to realize Face refresh time improves the technique effect that user interface refreshes efficiency.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the hardware environment schematic diagram of data processing method according to the ... of the embodiment of the present invention;
Fig. 2 is the flow chart of data processing method according to the ... of the embodiment of the present invention;
Fig. 3 is the flow chart of data processing according to the preferred embodiment of the invention and user interface refresh process;And
Fig. 4 is the schematic diagram of data processing equipment according to the ... of the embodiment of the present invention.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover It includes to be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment to cover non-exclusive Those of clearly list step or unit, but may include not listing clearly or for these processes, method, product Or the other steps or unit that equipment is intrinsic.
According to embodiments of the present invention, a kind of embodiment of the method for data processing is provided, it should be noted that in attached drawing The step of flow illustrates can execute in the computer system of such as a group of computer-executable instructions, although also, Logical order is shown in flow chart, but in some cases, it can be to execute shown different from sequence herein or retouch The step of stating.
Optionally, in the present embodiment, above-mentioned data processing method can be applied to as shown in Figure 1 by server 102 In the hardware environment constituted with terminal 104.As shown in Figure 1, server 102 is attached by network and terminal 104, it is above-mentioned Network includes but not limited to:Wide area network, Metropolitan Area Network (MAN) or LAN, terminal 104 are not limited to PC, mobile phone, tablet computer etc..This The data processing method of inventive embodiments can be executed by terminal 104, wherein terminal 104 executes the number of the embodiment of the present invention Can also be to be executed by client mounted thereto according to processing method.
Optionally, the process of the data processing method of terminal 104 or the client executing embodiment of the present invention can describe For:Terminal 104 or client obtain pending data;Terminal 104 or client utilize first thread by pending data Be converted to target data model, wherein target data model is identified that the second thread is used for target data model by the second thread Display is on a user interface;Terminal 104 or client are shown target data model on a user interface using the second thread.
The data processing method of the embodiment of the present invention is described in detail so that client is executive agent as an example below.
Fig. 2 is the flow chart of data processing method according to the ... of the embodiment of the present invention, as shown in Fig. 2, this method includes as follows Step:
Step S102 obtains pending data;
Pending data is converted to target data model, wherein target data model by step S104 using first thread It is identified by the second thread, the second thread is for showing on a user interface target data model;
Step S106 is shown target data model on a user interface using the second thread.
Through the above steps, by after getting pending data, being converted pending data using first thread For target data model, wherein target data model is identified that the second thread is for showing target data model by the second thread On a user interface;Target data model is shown on a user interface using the second thread, has reached not collinear using two The purpose that Cheng Shixian data processings and user interface refresh, and then solve data processing in the related technology and user interface brush The same thread is newly used, causes user interface to refresh and takes longer technical problem, shortens user interface brush to realize The new time improves the technique effect that user interface refreshes efficiency.
In the scheme that step S102 is provided, the embodiment of the present invention is not specifically limited the type of pending data, example Such as pending data can be picture, text type.Optionally, client can ask the pending data to server, Alternatively, the pending data can be from server actively to client push.Optionally, server can actively be pushed away to client It send and newer pending data occurs, such as client can be instant communication client, and the Instant Messenger is stored in server Believe client group members data, after the data of some group members in server update, server can active to The data of the client push group members namely the data of the newer group members of the generation are exactly pending data.
Optionally, client can utilize third threads store pending data after getting pending data, In, third thread can be core threads namely center thread in client.Optionally, the pending number of third threads store According to that can be correct in the format for judging the pending data, pending data be stored in database, client It holds in local file or caching.
In the technical solution that step S104 is provided, first thread can be in client for handling pending data Thread, optionally, the embodiment of the present invention, can returning by registration in advance after using third threads store pending data It adjusts, pending data is sent to first thread, then first thread can be handled pending data, will be waited for realizing Handle data transitions are target data model, wherein target data model can be identified by the second thread, and second is utilized to realize Thread shows target data model on a user interface.Optionally, the second thread can be the UI (User in client Interface, user interface) thread.
Optionally, pending data is converted to target data model using first thread and may include by step S104:
Step S1042 determines the format of pending data, and searches at data corresponding with the format of pending data Manage component;
Pending data is converted to target data model by step S1044 using the data handling component found.
It should be noted that the embodiment of the present invention is not specifically limited the format of pending data, by pending number After being sent to first thread, first thread can analyze the Format Type of the pending data, such as pending number first Can be picture according to format.First thread can search after determining the format of pending data at corresponding data Component is managed, to realize disaggregatedly data processing.Optionally, the data of each Format Type can correspond to a data processing Component, these data handling components can be inherited from the data-processing interface of first thread.
Optionally, pending data is converted to target data model using the data handling component found may include At least one of:In the case where pending data includes JS object tags, pending data is resolved into JS object marks The representation of note;In the case where pending data includes picture, by pending data picture and word tear open Point;It, will be in pending data in the case where the pixel value that pending data includes picture and picture is more than targets threshold Picture carries out compression processing.Herein it should be noted that targets threshold can set or adjust according to actual demand, herein not It is specifically limited.
In the technical solution that step S106 is provided, first thread by pending data be converted to target data model it Afterwards, can be by realizing that the readjustment target data model of registration is sent to the second thread, it can be by number of targets using the second thread It is shown on a user interface according to model.
Optionally, step S106, which is shown target data model using the second thread, may include on a user interface:
Step S1062 will in the case where the display properties of pending data is arranged to need to be shown in user interface Target data model is shown on a user interface.
Step S1064, in the case where the display properties of pending data is arranged to that user interface need not be shown in, Target data model is shown and is stored.
Herein it should be noted that the display properties of pending data can set or adjust according to actual demand, wait for Handle data display properties can with and be set as need show on a user interface, may be set to be need not be shown in use On the interface of family.When the display properties of pending data is set as needing to show on a user interface, the second thread can be by mesh Mark data model is shown on a user interface.Specific example on a user interface, such as user need not be shown for data The message of certain groups of reception is set, but is saved in database, then there was only reminding in user interface, the window that do not float prompt The group receives new information, will not actively pop up the dialog box with this group.
Optionally, step S1062 is arranged to need to be shown in the feelings of user interface in the display properties of pending data Under condition, it target data model shown may include on a user interface:
Step S10622, using the display area of first part's data update user interface in target data model, In, first part's data are corresponding with the data that display area is currently shown;
Step S10624 is that more new logo is arranged in the second part data in target data model, wherein more new logo is used It is corresponding with second part data in data of the instruction shown by display area, utilize second part data update Display area, second part data are the data in addition to first part's data in target data model;
Step S10626, in the case where detecting object run, using second part data update display area, In, object run is used to indicate is switched to data corresponding with second part data by the data that display area is currently shown.
It should be noted that the size due to display area in user interface limits in above-mentioned steps, display area can only A portion in display target data model.It needs target data model to include after user interface the determining Two threads can be determined first corresponding with the data that the display area of user interface is currently shown in target data model A part of data, then with first part's data update display area, to realize in the display area of user interface into line number According to the purpose of refreshing.For the second part data in target data model other than first part's data, can set first More new logo is set, when the data then currently realized in display area are switched to data corresponding with second part data, then Display area is refreshed using second part data.
As a kind of optional example, each group might have many group members.But it can be shown in the list in session window Show that region is also just only able to display 20 or so group members.If the group has 1000 group members, remaining 980 group members is all located In the state not shown, these group members wouldn't all refresh.Only in list scrolls down, when each group members are rolled to can When in viewed area, dynamic refresh is just removed.
The embodiment of the present invention is handled pending data by using first thread, and pending data is converted to mesh Data model is marked, target data model is then sent to the second thread again, is shown target data model using the second thread In the user interface, achieved the purpose that decoupling data processing and user interface refreshes.By using two different threads realities Existing data processing and user interface refresh, and can solve data processing in the related technology and refresh using same with user interface A thread, causes user interface to refresh and takes longer technical problem, shortens user interface refresh time to realize, improves User interface refreshes the technique effect of efficiency.
The present invention also provides a kind of preferred embodiment, the preferred embodiment provides a kind of carrying based on multithreading The method for rising net synchronization capability between data Layer and interface.This method is in the case where guaranteeing data security efficient processing, user Interface can correct instant response data variation.Data processing and user interface can be refreshed decoupling by this method simultaneously, Association between the two is reduced, the reusability of code is improved.
Client is initiated by the acquisition data of active synchronization server-side, or by server-side in this method, active push To client data.After client receives data source, by way of readjustment, by data source to data processing threads.Number After receiving data according to processing thread, parsing data format finds corresponding data handling component according to different data formats DataHandler.Each DataHandler can be according to diversified demand, and data format, which is re-packaged into user interface, to be needed Data model is sent to UI (User Interface, user interface) thread by the data model wanted, and UI threads are according to advance prison Data model is collected and is classified and is illustrated in client user interface by the notice listened.It should be noted that if data processing line The task of DataHandler is relatively time-consuming in journey, can re-call sub-line journey and be handled, be adjusted back after having handled.
The detailed process of this method can be with as shown in figure 3, its detailed step may include:
Step S301 obtains data.It may include client by APP interfaces or Http interfaces actively to clothes to obtain data The data that the data or server-side of business device request are actively newly changed to client push.
Step S302 preserves data.After client receives data, if in the case of data format is correct, will usually count In being stored in database, local file or caching.It can be run in core threads during this.
Step S303, data readjustment to data processing threads.It, will by the readjustment of registration in advance after data preserve Data are transmitted to data processing threads by readjustment.At this point, complete the reception of data, be saved in local work, task also by The execution of core threads is transformed into data processing threads analyzing processing.
Step S304, data processing threads analyze data format, and search corresponding data handling component.Data processing line After journey receives data, the Format Type of preliminary analysis data finds corresponding data handling component DataHander realizations and divides door The processing of other class.Each DataHandler is inherited from IDataHandler interfaces, realize data processing encapsulation and it is more State achievees the purpose that decouple data processing refreshes with user interface.
Step S305, data handling component carry out data processing.
Step S306, analyses whether containing JSON.If containing S307 parsings JSON is thened follow the steps;It is no to then follow the steps S308。
Step S308, analyses whether containing picture.If no to then follow the steps containing S309 download pictures are thened follow the steps S312。
Step S310 judges whether picture is excessive.If picture is excessive, S311 compressed pictures are thened follow the steps, are otherwise held Row step S312.
Step S312 carries out other processing.
That is, the possible processing procedures of DataHandler may include:1, certain fields in data are split into The representation of Json;2, include picture in field, split picture and word and be packaged into respective field;3, picture needs to press Contracting, according to scale compression;4, special field needs are processed, and are transformed into specific format and are shown.This process is generally in data It is completed in processing thread.
After data processing, by treated data model that data conversion needs at UI, step S313 is then executed, Data model is transmitted to UI threads by the readjustment through registration in advance.
Step S314, judges whether data model needs to show.If necessary to show, S315 is thened follow the steps, otherwise directly Binding beam.
Step S315 is executed, corresponding UI is judged whether there is.If so, thening follow the steps S316 update UI, step is otherwise executed Rapid S317 creates UI, then executes step S316 and updates UI.
After UI threads receive the notice of data change, can according to concrete configuration, check whether display related data must It wants, the setting of some data clients does not need to remind.For example user setting receives certain groups of message, but it is saved to data In library.Only have reminding, the window that do not float that the group is prompted to receive new information so on interface.Pair with this group will not actively be popped up Talk about window.
If data need not be shown, directly it can return to, data will not lose, because locally having preservation.
If data need to show really, first data be saved in the data source control class of UI.If currently wanting The corresponding UI of display data is in the state shown, and UI carries out relevant updates according to corresponding data model.Otherwise it sets Data model update flag is set, when UI is switched in corresponding display interface, is then updated if any update flag.Such as it is each Group might have many group members, but in the list in session window can display area be also just only able to display 20 or so groups at Member, if the group has 1000 group members, remaining 980 wouldn't refresh all in the state not shown, these group members UI.
If the UI on upper layer is not created also, corresponding UI is created, using Dynamic loading technique, is only shown in display area Data, other UI will accordingly be updated according to Dynamic loading technique when in dispaly state.Such as it is created when creating for the first time The controls of 1000 group members is built for showing group members, but only 20 data for being loaded with group members, it is shown on UI Face, that 980 only in list scrolls down, when each group members are rolled in visible area, are just removed load dependency number According to.It namely realizes and visually just refreshes, dynamic refresh.
The present invention guarantees data security in the case of efficient processing, UI can correct instant response data variation.UI Only needing the newer variation for just going to update visible area.In addition also solve original technology by data processing and Code is too fat to move caused by UI refreshings are put together, and maintenance cost is high, the low defect of reusability.DataHander is gone back if necessary The mode that thread pool and task queue can be used advanced optimizes performance.Autgmentability is improved there has also been apparent, class responsibility There is more careful division, more meets the design pattern of modern software.
According to embodiments of the present invention, a kind of device embodiment of data processing is additionally provided, it should be noted that the data Processing unit can be used for executing the data processing in the data processing method namely the embodiment of the present invention in the embodiment of the present invention Method can execute in the data processing equipment.
Fig. 4 is the schematic diagram of data processing equipment according to the ... of the embodiment of the present invention, as shown in figure 4, the device may include:
Acquiring unit 42, for obtaining pending data;Converting unit 44, for utilizing first thread by pending data Be converted to target data model, wherein target data model is identified that the second thread is used for target data model by the second thread Display is on a user interface;Display unit 46, for being shown target data model on a user interface using the second thread.
It should be noted that the acquiring unit 42 in the embodiment can be used for executing the step in the embodiment of the present invention S102, the converting unit 44 in the embodiment can be used for executing the step S104 in the embodiment of the present invention, in the embodiment Display unit 46 can be used for executing the step S106 in the embodiment of the present invention.Above-mentioned module is shown with what corresponding step was realized Example is identical with application scenarios, but is not limited to the above embodiments disclosure of that.
Optionally, converting unit may include:Determining module, the format for determining pending data, and search and wait for Handle the corresponding data handling component of format of data;Conversion module, for that will be waited for using the data handling component found Handle data transitions are target data model.
Optionally, conversion module may include at least one of:First processing submodule, in pending data In the case of including JS object tags, pending data is resolved to the representation of JS object tags;Second processing submodule, For in the case where pending data includes picture, by pending data picture and word split;At third Manage submodule, for include in pending data picture and picture pixel value more than in the case of targets threshold, will wait locating The picture managed in data carries out compression processing.
Optionally, display unit may include:Display module, for being arranged to need in the display properties of pending data In the case of being shown in user interface, target data model is shown on a user interface.
Optionally, display module may include:First update submodule, for utilizing first in target data model The display area of divided data more new user interface, wherein first part's data are corresponding with the data that display area is currently shown; Submodule is configured, for more new logo to be arranged for the second part data in target data model, wherein more new logo is for referring to Show that the data shown by display area are corresponding with second part data, is shown using second part data update Region, second part data are the data in addition to first part's data in target data model.
Optionally, display module can also include:Second update submodule, for the case where detecting object run Under, utilize second part data update display area, wherein object run is used to indicate the data for currently showing display area It is switched to data corresponding with second part data.
Optionally, which can also include:Storage unit is used for after obtaining pending data, profit Pending data is stored with third thread.
By above-mentioned apparatus, may be implemented to realize data processing and the mesh that user interface refreshes using two different threads , and then solve data processing in the related technology and refresh using the same thread with user interface, cause user interface to refresh Longer technical problem is taken, shortens user interface refresh time to realize, improves the technology that user interface refreshes efficiency Effect.
To achieve the goals above, according to another aspect of the present invention, the embodiment of the present invention additionally provides a kind of storage Jie Matter, the storage medium include the program of storage, wherein equipment where controlling the storage medium when described program is run is held Row data processing method described above.
To achieve the goals above, according to another aspect of the present invention, the embodiment of the present invention additionally provides a kind of processor, The processor is for running program, wherein described program executes data processing method described above when running.
To achieve the goals above, according to another aspect of the present invention, the embodiment of the present invention additionally provides a kind of terminal, packet Include memory and processor, wherein computer program is stored in the memory, the processor is arranged to described in operation Computer program is to execute data processing method described above.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
In the above embodiment of the present invention, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, for example, the unit division, Ke Yiwei A kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple On unit.Some or all of unit therein can be selected according to the actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can to store program code Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (17)

1. a kind of data processing method, which is characterized in that including:
Obtain pending data;
The pending data is converted into target data model using first thread, wherein the target data model is by Two threads identify that second thread is for showing on a user interface the target data model;
By the target data model include in the user interface using second thread.
2. according to the method described in claim 1, it is characterized in that, described converted the pending data using first thread Include for target data model:
It determines the format of the pending data, and searches data processing group corresponding with the format of the pending data Part;
The pending data is converted into the target data model using the data handling component found.
3. according to the method described in claim 2, it is characterized in that, it is described using the data handling component that finds by institute It includes at least one of to state pending data and be converted to the target data model:
In the case where the pending data includes JS object tags, the pending data is resolved into JS object tags Representation;
In the case where the pending data includes picture, by the pending data picture and word tear open Point;
It, will be described in the case where the pixel value that the pending data includes picture and the picture is more than targets threshold Picture in pending data carries out compression processing.
4. according to the method described in claim 1, it is characterized in that, described utilize second thread by the target data mould Type is shown in the user interface:
In the case where the display properties of the pending data is arranged to need to be shown in the user interface, by the mesh Mark data model is shown in the user interface.
5. according to the method described in claim 4, it is characterized in that, the display properties in the pending data is set In the case of needing to be shown in the user interface, by the target data model including in the user interface includes:
Utilize the display area of user interface described in first part's data update in the target data model, wherein described First part's data are corresponding with the data that the display area is currently shown;
More new logo is set for the second part data in the target data model, wherein the more new logo is used to indicate Data shown by the display area are corresponding with the second part data, utilize the second part number According to updating the display area, the second part data be in the target data model in addition to first part's data Data.
6. according to the method described in claim 5, it is characterized in that, in the second part in the target data model Data are arranged after more new logo, and the method further includes:
In the case where detecting object run, display area described in the second part data update is utilized, wherein the mesh Mark operation is used to indicate is switched to number corresponding with the second part data by the data that the display area is currently shown According to.
7. method according to any one of claim 1 to 6, which is characterized in that after the acquisition pending data, The method further includes:
The pending data is stored using third thread.
8. a kind of data processing equipment, which is characterized in that including:
Acquiring unit, for obtaining pending data;
Converting unit, for the pending data to be converted to target data model using first thread, wherein the target Data model is identified that second thread is for showing on a user interface the target data model by the second thread;
Display unit, for by the target data model including in the user interface using second thread.
9. device according to claim 8, which is characterized in that the converting unit includes:
Determining module, the format for determining the pending data, and search corresponding with the format of the pending data Data handling component;
Conversion module, for the pending data to be converted to the number of targets using the data handling component found According to model.
10. device according to claim 9, which is characterized in that the conversion module includes at least one of:
First processing submodule, is used in the case where the pending data includes JS object tags, will be described pending Data resolve to the representation of JS object tags;
Second processing submodule is used in the case where the pending data includes picture, will be in the pending data Picture and word split;
Third handles submodule, and for including picture in the pending data, and the pixel value of the picture is more than target In the case of threshold value, the picture in the pending data is subjected to compression processing.
11. device according to claim 8, which is characterized in that the display unit includes:
Display module needs to be shown in the feelings of the user interface for being arranged in the display properties of the pending data Include in the user interface by the target data model under condition.
12. according to the devices described in claim 11, which is characterized in that the display module includes:
First update submodule, for utilizing user interface described in first part's data update in the target data model Display area, wherein first part's data are corresponding with the data that the display area is currently shown;
Submodule is configured, for more new logo to be arranged for the second part data in the target data model, wherein it is described more It is corresponding with the second part data that new logo is used to indicate the data shown by the display area, utilizes Display area described in the second part data update, the second part data are in the target data model except described the Data except a part of data.
13. device according to claim 12, which is characterized in that the display module further includes:
Second update submodule, in the case where detecting object run, described in the second part data update Display area, wherein the object run, which is used to indicate, is switched to the data that the display area is currently shown and described The corresponding data of two partial datas.
14. the device according to any one of claim 8 to 13, which is characterized in that described device further includes:
Storage unit, for after the acquisition pending data, being deposited the pending data using third thread Storage.
15. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment perform claim require method described in any one of 1 to 8.
16. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Profit requires the method described in any one of 1 to 8.
17. a kind of terminal, including memory and processor, which is characterized in that be stored with computer program, institute in the memory Processor is stated to be arranged to run the computer program to execute the method described in any item of the claim 1 to 8.
CN201810331772.1A 2018-04-13 2018-04-13 Data processing method and device, storage medium, processor and terminal Active CN108509248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810331772.1A CN108509248B (en) 2018-04-13 2018-04-13 Data processing method and device, storage medium, processor and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810331772.1A CN108509248B (en) 2018-04-13 2018-04-13 Data processing method and device, storage medium, processor and terminal

Publications (2)

Publication Number Publication Date
CN108509248A true CN108509248A (en) 2018-09-07
CN108509248B CN108509248B (en) 2021-11-23

Family

ID=63381846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810331772.1A Active CN108509248B (en) 2018-04-13 2018-04-13 Data processing method and device, storage medium, processor and terminal

Country Status (1)

Country Link
CN (1) CN108509248B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218824A (en) * 2018-09-29 2019-01-15 视联动力信息技术股份有限公司 A kind of method and apparatus of business processing
CN109343984A (en) * 2018-10-19 2019-02-15 珠海金山网络游戏科技有限公司 Data processing method, calculates equipment and storage medium at system
CN111198702A (en) * 2019-12-23 2020-05-26 宁波港信息通信有限公司 Interface refreshing method and device, computer equipment and storage medium
CN111338787A (en) * 2020-02-04 2020-06-26 浙江大华技术股份有限公司 Data processing method and device, storage medium and electronic device
CN111611760B (en) * 2020-04-23 2021-04-13 长江存储科技有限责任公司 Data processing method, data processing device, terminal device and storage medium
WO2021147500A1 (en) * 2020-01-23 2021-07-29 腾讯科技(深圳)有限公司 Endoscope image processing method and apparatus, and electronic device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004955A (en) * 2010-11-16 2011-04-06 福建省电力有限公司 Power dispatching, operation and management application system
CN102138157A (en) * 2008-08-30 2011-07-27 惠普开发有限公司 Color constancy method and system
CN103593231A (en) * 2012-08-14 2014-02-19 腾讯科技(深圳)有限公司 Data processing method and device and mobile terminal
CN103714046A (en) * 2013-12-27 2014-04-09 南京国电南自电网自动化有限公司 Interface displaying method of large amount of information
US8872838B2 (en) * 2011-09-09 2014-10-28 Microsoft Corporation Primitive composition
CN104252379A (en) * 2013-06-25 2014-12-31 腾讯科技(深圳)有限公司 Picture thumbnail display method and device
CN105426185A (en) * 2015-11-13 2016-03-23 珠海格力节能环保制冷技术研究中心有限公司 Dynamic image display processing method and system
CN107256180A (en) * 2017-05-19 2017-10-17 腾讯科技(深圳)有限公司 Data processing method, device and terminal
CN107391125A (en) * 2017-07-03 2017-11-24 中国船舶重工集团公司第七〇九研究所 It is used for the user-interface design scheme of man-machine interaction under VxWorks system
CN107870263B (en) * 2017-11-07 2020-04-14 中国科学院紫金山天文台 Digital FFT frequency spectrograph system and operation method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102138157A (en) * 2008-08-30 2011-07-27 惠普开发有限公司 Color constancy method and system
CN102004955A (en) * 2010-11-16 2011-04-06 福建省电力有限公司 Power dispatching, operation and management application system
US8872838B2 (en) * 2011-09-09 2014-10-28 Microsoft Corporation Primitive composition
CN103593231A (en) * 2012-08-14 2014-02-19 腾讯科技(深圳)有限公司 Data processing method and device and mobile terminal
CN104252379A (en) * 2013-06-25 2014-12-31 腾讯科技(深圳)有限公司 Picture thumbnail display method and device
CN103714046A (en) * 2013-12-27 2014-04-09 南京国电南自电网自动化有限公司 Interface displaying method of large amount of information
CN105426185A (en) * 2015-11-13 2016-03-23 珠海格力节能环保制冷技术研究中心有限公司 Dynamic image display processing method and system
CN107256180A (en) * 2017-05-19 2017-10-17 腾讯科技(深圳)有限公司 Data processing method, device and terminal
CN107391125A (en) * 2017-07-03 2017-11-24 中国船舶重工集团公司第七〇九研究所 It is used for the user-interface design scheme of man-machine interaction under VxWorks system
CN107870263B (en) * 2017-11-07 2020-04-14 中国科学院紫金山天文台 Digital FFT frequency spectrograph system and operation method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DEVDIV移动开发社区: "《Android开发实战体验》", 31 January 2013 *
张荣 等: "《半硬回收装置数据回读系统软件设计》", 《航天器环境工程》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218824A (en) * 2018-09-29 2019-01-15 视联动力信息技术股份有限公司 A kind of method and apparatus of business processing
CN109218824B (en) * 2018-09-29 2021-02-12 视联动力信息技术股份有限公司 Service processing method and device
CN109343984A (en) * 2018-10-19 2019-02-15 珠海金山网络游戏科技有限公司 Data processing method, calculates equipment and storage medium at system
CN109343984B (en) * 2018-10-19 2020-05-19 珠海金山网络游戏科技有限公司 Data processing method, system, computing device and storage medium
CN111198702A (en) * 2019-12-23 2020-05-26 宁波港信息通信有限公司 Interface refreshing method and device, computer equipment and storage medium
WO2021147500A1 (en) * 2020-01-23 2021-07-29 腾讯科技(深圳)有限公司 Endoscope image processing method and apparatus, and electronic device and storage medium
CN111338787A (en) * 2020-02-04 2020-06-26 浙江大华技术股份有限公司 Data processing method and device, storage medium and electronic device
CN111338787B (en) * 2020-02-04 2023-09-01 浙江大华技术股份有限公司 Data processing method and device, storage medium and electronic device
CN111611760B (en) * 2020-04-23 2021-04-13 长江存储科技有限责任公司 Data processing method, data processing device, terminal device and storage medium

Also Published As

Publication number Publication date
CN108509248B (en) 2021-11-23

Similar Documents

Publication Publication Date Title
CN108509248A (en) Data processing method and device, storage medium, processor and terminal
CN109710348A (en) The method and device of page jump, computer equipment, storage medium
CN110020325B (en) Page loading method, device, equipment and readable storage medium
CN105589631B (en) Information displaying method and device
CN107515907B (en) The display methods and device of browser page
CN111625312A (en) APP skin changing method and device, electronic equipment and storage medium
CN104796351A (en) Network data downloading method and device
CN106610920A (en) Method and device for displaying data chart
CN109800078B (en) Task processing method, task distribution terminal and task execution terminal
CN110673827B (en) Resource calling method and device based on android system and electronic equipment
CN108038169B (en) Page display method and device
US9229610B2 (en) Methods and systems for visually forming relationships between electronic content
EP3848800B1 (en) Method and apparatus for displaying message box, terminal and storage medium
US20210263641A1 (en) Context-driven group pill in a user interface
CN112257000A (en) Picture generation method and device, computer equipment and storage medium
CN107301089A (en) A kind of APP deployment and call method and terminal
CN110110073B (en) Character display method and device
CN117290047B (en) GUI display acceleration control method, system and storage medium on wearable product
US20220075583A1 (en) Information processing method, server, terminal, and computer storage medium
CN111625341A (en) Task scheduling management method and device
CN111429538A (en) Method, system and equipment for playing carousel pictures and readable storage medium
CN114265997B (en) Page information output method, device, storage medium and terminal
WO2023185726A1 (en) Model acquisition method, information sending method, information receiving method, device and network element
CN113065009B (en) View loading method and device
CN108287727A (en) The dispatching method and device of component

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