CN106649602A - Way, device and server of processing business object data - Google Patents

Way, device and server of processing business object data Download PDF

Info

Publication number
CN106649602A
CN106649602A CN201611060612.5A CN201611060612A CN106649602A CN 106649602 A CN106649602 A CN 106649602A CN 201611060612 A CN201611060612 A CN 201611060612A CN 106649602 A CN106649602 A CN 106649602A
Authority
CN
China
Prior art keywords
data
business object
information
time
acquisition system
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
CN201611060612.5A
Other languages
Chinese (zh)
Other versions
CN106649602B (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.)
Shenzhen Zhangyue Animation Technology Co ltd
Original Assignee
Zhangyue Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN201611060612.5A priority Critical patent/CN106649602B/en
Publication of CN106649602A publication Critical patent/CN106649602A/en
Application granted granted Critical
Publication of CN106649602B publication Critical patent/CN106649602B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures

Abstract

The invention provides a way, a device and a server of processing business object data, wherein the way of processing business object data includes the following steps: obtaining attribute information of the business object, wherein the attribute information includes identification information of the business object, a first time stamp of the business object, a second time stamp of the business object and timeliness information of the business object; according to the identification information of the business object, the first time stamp of the business object and the timeliness information of the business object, an element which uses the first timestamp as a sequence of characterization data, generates first data of a data type with a sequence attribute and stores the first data into a first data set; and according to the identification information of the business object, the second time stamp of the business object, and the timeliness information of the business object, the element generates the second data of the data type with the sequence attribute and stores the second data into the second data set. The way, the device and the server of processing business object data obtains efficiency storage and management of the timeliness information.

Description

Business object data processing method, device and server
Technical field
The present embodiments relate to technical field of data processing, more particularly to a kind of business object data processing method, dress Put and a kind of server.
Background technology
With the development of network technology, people can obtain various electricity by different equipment, different approach Child resource, these e-sourcings are greatly enriched the work of people and life content.
For example, a kind of trend is just become by installing corresponding APP (application program) viewing video, reading electronic book etc.. But the either similar business object such as video or e-book all has certain ageing, and the information of different time sections is not Together, also, for different APP channel and APP versions are installed, corresponding information also can be different.For example, it is excellent in certain time period Favour or discounting, or, certain time period arranges different books digests for the type of cell phone of different installation e-book APP Etc..
For above-mentioned situation, will using the mark of the mark according to business object such as video or e-book more than traditional means Corresponding information is recorded and stored in database.When corresponding information is needed, according to the mark of business object the note is found Record, obtains the content of the record, therefrom filters out the information of needs, and then is shown accordingly.
But, this traditional mark according to business object, the mark storage information of such as video or e-book Mode, it is impossible to which the ageing information of different pieces of information record is effectively managed.And be managed by writing SQL statement, or Person, writes the program for being exclusively used in managing this category information, is on the one hand poor compatibility, and is unfavorable for follow-up maintenance;On the other hand, need Want special operation maintenance personnel to implement, cost of implementation is higher.Further, this traditional mode is also resulted in and is searching timeliness Property information when complex operation, search efficiency it is low and cost of implementation is high.
The content of the invention
A kind of business object data processing method, device and a kind of server are embodiments provided, to solve mesh Before the problem of effective management cannot be carried out to the ageing information of different pieces of information record.
A kind of one side according to embodiments of the present invention, there is provided business object data processing method, including:Obtain industry The attribute information of business object, wherein, the attribute information includes:The first of the mark of the business object, the business object The ageing information of timestamp, the second timestamp of the business object and the business object;Wherein, the very first time Stab the time started for indicating the ageing information, second timestamp is used to indicate the end of the ageing information Time;Element as characterize data order, the mark, the business object according to the business object are stabbed with the very first time The very first time stamp and the business object ageing information, generate with sequential attribute data type the first data, And store to the first data acquisition system;Also, with second timestamp as the element of characterize data order, according to the business pair The ageing information of the mark of elephant, the second timestamp of the business object and the business object, generates described with order Second data of the data type of attribute, and store to the second data acquisition system.
Another aspect according to embodiments of the present invention, additionally provides a kind of business object data processing meanss, including:First Acquisition module, for obtaining the attribute information of business object, wherein, the attribute information includes:The mark of the business object, The ageing information of the very first time stamp, the second timestamp of the business object and the business object of the business object; Wherein, the very first time stab the time started for indicating the ageing information, second timestamp be used for indicate institute State the end time of ageing information;First memory module, for stabbing the element as characterize data order with the very first time, The very first time stamp and the ageing information of the business object of mark, the business object according to the business object, it is raw Into the first data of the data type with sequential attribute, and store to the first data acquisition system;Second memory module, for institute State the second timestamp be characterize data order element, the mark, the business object according to the business object second when Between stamp and the business object ageing information, generate the second data of the data type with sequential attribute, and deposit Store up to the second data acquisition system.
Another aspect according to embodiments of the present invention, additionally provides a kind of server, including:Processor, memory, communication Interface and communication bus, the processor, the memory and the communication interface are completed each other by the communication bus Communication;The memory is used to deposit an at least executable instruction, and the executable instruction makes the computing device for example front The described corresponding operation of business object data processing method.
Another further aspect according to embodiments of the present invention, additionally provides a kind of computer-readable recording medium, the computer Readable storage medium storing program for executing is stored with:For obtaining the executable instruction of the attribute information of business object, wherein, the attribute information bag Include:The mark of the business object, the very first time stamp of the business object, the second timestamp of the business object and institute State the ageing information of business object;Wherein, the very first time stab the time started for indicating the ageing information, institute The second timestamp is stated for indicating the end time of the ageing information;For stabbing suitable as characterize data with the very first time The element of sequence, the very first time stamp and the timeliness of the business object of mark, the business object according to the business object Property information, generate the first data of the data type with sequential attribute, and store to the executable instruction of the first data acquisition system; And, for the element with second timestamp as characterize data order, the mark, the business according to the business object Second timestamp of object and the ageing information of the business object, generate the data type with sequential attribute Second data, and store to the executable instruction of the second data acquisition system.
The technical scheme for providing according to embodiments of the present invention, using the very first time stamp in the attribute information of business object and Order between second timestamp characterize data, generates stab the first data of characterize data order and by the by the very first time respectively Second data of two timestamp characterize data orders, wherein, the data type of the data type of the first data and the second data is equal It is the data type with sequential attribute.Carry out as a single field or part with traditional data using the time of sign Storage is compared with process, by setting corresponding data type and using the data of the time of sign as in the data of the data type An element, on the one hand, the multiple data elements that can include the data of the data type are deposited as an entirety Storage and process, improve storage and the efficiency for processing;On the other hand, the data of the data type will be stabbed or second the very first time Timestamp is capable of achieving sequentially in time to carry out data as sequential attribute by very first time stamp or the second timestamp Sequence, in the case, very first time of the data after sequence stamp or the second timestamp, you can it is quick determine need when Between ageing information in section.
It can be seen that, by scheme provided in an embodiment of the present invention, the effective storage to ageing information and management are realized, can Suitable for all databases or data-storage system for supporting the data type with sequential attribute, improve data storage and The compatibility of process, and it is easy to operation maintenance personnel to carry out follow-up maintenance.Also, for the data type with sequential attribute each Data, can carry out atomicity operation, convenient storage and process as an entirety, reduce the storage to ageing information and place Reason cost.
Description of the drawings
The step of Fig. 1 is a kind of according to embodiments of the present invention one business object data processing method flow chart;
The step of Fig. 2 is a kind of according to embodiments of the present invention two business object data processing method flow chart;
The step of Fig. 3 is a kind of according to embodiments of the present invention three business object data processing method flow chart;
Fig. 4 is a kind of structured flowchart of according to embodiments of the present invention four business object data processing meanss;
Fig. 5 is a kind of structured flowchart of according to embodiments of the present invention five business object data processing meanss;
Fig. 6 is a kind of structural representation of according to embodiments of the present invention six server.
Specific embodiment
Below in conjunction with the accompanying drawings (identical label represents identical element in some accompanying drawings) and embodiment, implement to the present invention The specific embodiment of example is described in further detail.Following examples are used to illustrate the present invention, but are not limited to the present invention Scope.
It will be understood by those skilled in the art that the term such as " first ", " second " in the embodiment of the present invention is only used for difference Different step, equipment or module etc., neither represent any particular technology implication, also do not indicate that the inevitable logic between them is suitable Sequence.
Embodiment one
With reference to Fig. 1, flow process the step of show a kind of according to embodiments of the present invention one business object data processing method Figure.
The business object data processing method of the present embodiment is comprised the following steps:
Step S102:Obtain the attribute information of business object.
Wherein, the attribute information of business object includes:The mark of business object, the very first time stamp of business object, business Second timestamp of object and the ageing information of business object.Wherein, the very first time of business object stab for indicating business The time started of the ageing information of object, the second timestamp of business object is used to indicate the ageing information of business object End time.
In the embodiment of the present invention, business object is with performing corresponding service, and to realize the data object of corresponding function, bag Include but be not limited to:E-book, audio file, video file, the word comprising advertising message and/or special efficacy etc..
The mark of business object can be represented in a timing with the unique mark business object, the ageing information of business object Between in the range of effective information, in embodiments of the present invention, the ageing information is represented when the very first time beginning for indicating is stabbed Between and time period between end time for indicating of the second timestamp in effective information.
Step S104:With very first time stamp as the element of characterize data order, the mark, business object according to business object Very first time stamp and business object ageing information, generate the first data of the data type with sequential attribute, and deposit Store up to the first data acquisition system.
In the embodiment of the present invention, can pass through to construct the data type with sequential attribute, or, by using with suitable The data type of sequence attribute includes the mark of business object, the very first time stamp of business object and business object to generate First data of ageing information, the first data of the data type can be such as integer data, character string data or chained list Type data are the same, stored and processed as an entirety, and except for the difference that, the data of the data type have sequential attribute, Sequence between multiple first data is carried out by the value of the sequential attribute.
Those skilled in the art can arbitrarily support the data type or expansible construction by any appropriate ways The generation and storage of the first data are realized in the database or data-storage system of the data type.
In a kind of feasible scheme, such as in REDIS databases, using the ordered set ZSET data of REDIS databases Type generates the first data, wherein it is possible to the very first time is stabbed into the sequential attribute as ZSET data types, such as by ZSET data Double precision fraction doublescore in type is set to very first time stamp.
REDIS is a KEY-VALUE storage system, it can support such as STRING (character string) data type, LIST (chained list) data type, SET (set) data type, ZSET (SORTED SET, ordered set) data type, and HASH The VALUE of the numerous types of data such as (Hash type) data type.These data types all support PUSH/POP, ADD/ REMOVE, common factor, union and difference set and more rich operation are taken, and these operations are all atomicities.
Wherein, ZSET data types and SET data types are all the set of the data element of STRING data types, ZSET Data type is the upgrading of SET data types, and it increased a sequential attribute on the basis of SET data types, and this is suitable Sequence attribute is usually the fraction of type double precision, and REDIS is that member in set is ranked up by the fraction.ZSET data class Each data element of type can associate the sequential attribute, and the member in ZSET data acquisition systems is unique, but type double precision Fraction can repeat.
Although ZSET data types can realize the sequence of data member by sequential attribute, in current correlation technique In, also it was not carried out being realized and ageing information-related data sorting by the sequential attribute.Also, if use merely The process of ZSET data types has the ageing information of time started and end time simultaneously, on the one hand, can only be with a time For sequential attribute, it is impossible to meet actual ageing information handling needs;On the other hand, no matter with the time started as sequential attribute Or with the end time as sequential attribute, in the case where realizing that both take into account, easily cause data storage and management to confuse Disorderly.For this purpose, the embodiment of the present invention carries out the data of the ZSET data types of different order attribute by different data acquisition systems Storage.In the case where needing to take into account time started and end time, close with reference to two datasets and processed.
It will be apparent to a skilled person that above-mentioned REDIS databases and ZSET data types are merely illustrative It is bright, in actual applications, arbitrarily support the data of the data type with sequential attribute or the expansible construction data type The business object data processing scheme of the applicable embodiment of the present invention of storehouse or data-storage system, for example, MYSQL database Query Result simultaneously calculates the ordered data set for obtaining by sequence.
Step S106:With the second timestamp as the element of characterize data order, the mark, business object according to business object The second timestamp and business object ageing information, generate the second data of the data type with sequential attribute, and deposit Store up to the second data acquisition system.
As described in step S104, can by constructing the data type with sequential attribute, or, by using having The data type of sequential attribute includes the mark of business object, the second timestamp of business object and business object to generate Ageing information the second data.
For example, the ordered set ZSET data type of REDIS databases can be used to generate the second data, wherein it is possible to will Second timestamp as ZSET data types sequential attribute, such as by the double precision fraction in ZSET data types DOUBLESCORE is set to the second timestamp.
It should be noted that the execution of abovementioned steps S104 and step S106 can in no particular order sequentially, it is also possible to parallel Perform.
The scheme provided by the present embodiment, using the very first time stamp in the attribute information of business object and the second time Order between stamp characterize data, generates stab the first data of characterize data order and by the second timestamp by the very first time respectively Second data of characterize data order, wherein, the data type of the data type of the first data and the second data is with suitable The data type of sequence attribute.Stored and located as a single field or part with traditional data using the time of sign Reason is compared, by setting corresponding data type and using the data of the time of sign as a unit in the data of the data type Element, on the one hand, the multiple data elements that can include the data of the data type are stored and processed as an entirety, Improve storage and the efficiency for processing;On the other hand, the data of the data type will be stabbed the very first time or the second timestamp is made For sequential attribute, it is capable of achieving sequentially in time to be ranked up data by very first time stamp or the second timestamp, In the case of this, the very first time of the data after sequence stabs or the second timestamp, you can quick to determine in the time period for needing Ageing information.
It can be seen that, the scheme provided by the present embodiment realizes the effective storage to ageing information and management, applicable In all databases or data-storage system for supporting the data type with sequential attribute, data storage and process are improve Compatibility, and be easy to operation maintenance personnel to carry out follow-up maintenance.Also, for every number of the data type with sequential attribute According to, atomicity operation, convenient storage and process can be carried out as an entirety, reduce storage and process to ageing information Cost.
The business object data processing method of the present embodiment can be performed simultaneously by the equipment arbitrarily with data-handling capacity Realize, including but not limited to server etc..
Embodiment two
With reference to Fig. 2, flow process the step of show a kind of according to embodiments of the present invention two business object data processing method Figure.
The business object data processing method of the present embodiment is comprised the following steps:
Step S202:Obtain the attribute information of business object.
Wherein, the attribute information of business object includes:The mark of business object, the very first time stamp of business object, business Second timestamp of object and the ageing information of business object.Wherein, the very first time of business object stab for indicating business The time started of the ageing information of object, the second timestamp of business object is used to indicate the ageing information of business object End time.
In a kind of optional mode, the attribute information of business object can also include:The type information of business object.Business The type information of object is used to indicate the type of business object, including but not limited to:E-book type, audio file type, Video file type, the word comprising advertising message and/or special efficacy type etc..
Optionally, in addition, the attribute information of business object can also include the installation channel information and version of business object The relevant informations such as information.
Step S204:Judge whether the time that the second timestamp is indicated is later than current time;If being later than current time, hold Row step S206;Otherwise, this flow process is terminated.
Second timestamp indicates the end time of ageing information, if the end time earlier than or be just current time, Then it is believed that the timeliness of ageing information mistake, can not be processed.
It should be noted that the step is optional step, by the step, ensure that currently processed data have been Effect data, while data validity is ensured, decrease data processing amount, improve data-handling efficiency.But in reality Using in, it is also possible to data validity is not judged, directly process, or by other approach to having failed Data subsequently processed, such as at a time focus on fail data.
Step S206:With very first time stamp as the element of characterize data order, the mark, business object according to business object The very first time stamp and business object ageing information, generate with sequential attribute data type the first data;With And, with the second timestamp as the element of characterize data order, the second timestamp of mark, business object according to business object, With the ageing information of business object, the second data of the data type with sequential attribute are generated.
In a kind of feasible pattern, can be according to the very first time of the mark of business object, business object stamp and business pair The ageing information of elephant, generates the first data of ordered set type (such as ZSET data types), wherein, very first time stamp is have Sequential attribute in the data of ordered sets type;Can be according to the mark of business object, the second timestamp of business object and industry The ageing information of business object, generates the second data of ordered set type, wherein, the second timestamp is ordered set type Sequential attribute in data.The first data for generating and the second data adopt ordered set type, dramatically saves on and grind again Study carefully and development cost, and the logical sum flow process that the data of the data type are processed, improve data processing speed and Efficiency, reduces data storage and processing cost.
Wherein, the execution for generating the first data and the execution for generating the second data can in no particular order sequentially, it is also possible to and Row is performed.
Step S208:Judge whether the first data acquisition system for storing the first data;If existing, by the first number According to storing to the first data acquisition system;If not existing, the first data acquisition system is created, and by the first data storage to first for creating Data acquisition system.Go to step S212 execution.
When judging whether for the first data acquisition system for storing the first data, a kind of feasible mode is:Data Corresponding set and name set are set with the system of storehouse, in storage, the set of the title is directly searched, if searching not Arrive, then illustrate do not exist, needs are created.
Another kind of feasible mode is also to include the situation of the type information of business object in the attribute information of business object Under, judge whether the first corresponding data acquisition system of type indicated by the type information with business object;If existing, By the first data storage to first data acquisition system;If not existing, the first data acquisition system is created, and by the first data storage extremely The first data acquisition system for creating.Data acquisition system is made a distinction according to the type of business object, follow-up being easier on the one hand is caused According to the type search and the corresponding data acquisition system of determination of business object, data search and processing speed and efficiency are improved;It is another Aspect, same type of business object has essentially identical attribute and data element, is more convenient for managing and safeguards.
Step S210:Judge whether the second data acquisition system for storing the second data;If existing, by the second number According to storing to the second data acquisition system;If not existing, the second data acquisition system is created, and by the second data storage to second for creating Data acquisition system.Go to step S212 execution.
Above-mentioned at least two implementations for judging whether the first data acquisition system for the first data of storage are same Suitable for judging whether the second data acquisition system for storing the second data, will not be described here.
It should be noted that the execution of above-mentioned steps S208 and step S210 can in no particular order sequentially, it is also possible to parallel Perform.
Step S212:In judging the second data acquisition system, if there is the time of the second timestamp instruction earlier than current time Data;If existing, execution step S214;If not existing, terminate this flow process.
Second timestamp indicates the end time of ageing information, if there are in the second data acquisition system the end time earlier than The data of current time, then it is believed that these data fail, can be removed by step S214.
Step S214:Obtain the mark earlier than the corresponding business object of the data of current time.
Step S216:In deleting the second data acquisition system, corresponding second data of mark of the business object of acquisition, and, In deleting the first data acquisition system, corresponding first data of mark of the business object of acquisition.
Although the sequential attribute of the data member sequence in the data member and the second data acquisition system in the first data acquisition system Difference, but business object can be passed through to the attribute information of same business object, the first data acquisition system and the second data acquisition system Identify correspondence and associate.In the case, it is same in the first data acquisition system and the second data acquisition system for the data for having failed When delete.
It should be noted that step S212-S216 is optional step, in actual applications, it is also possible to fail data not Process or select other appropriate ways to be processed.
By said process, effective storage of business object data is realized.Hereinafter, the business object number based on storage According to how to search and determine that corresponding ageing information is further described.Although it should be understood by those skilled in the art that The present embodiment is while the storage and process to business object data is illustrated simultaneously, but the two in actual applications can be respectively Perform, that is, can combine as two schemes implementing, it is also possible to implement as two parts of a scheme.
Step S218:Receive the acquisition request for obtaining the ageing information of business object.
Request is obtained for obtaining the ageing information of business object, for example, the e-book or sound of a certain period is obtained The favor information of video, or, the advertising message of a certain period is obtained, or, obtain the digest letter of the e-book of a certain period Breath etc..
In a kind of optional mode, obtain in request and carry at least one following information:Ageing information to be obtained Effective time information, the corresponding application of ageing information to be obtained install channel information, ageing information to be obtained The version information of corresponding application.
Wherein, the effective time information of ageing information can be a time period such as from 9:00-21:00, or One chronomere, such as on November 11st, 2016 (are represented from 0:00-24:00).The installation canal of the corresponding application of ageing information Road information, by taking e-book as an example, installation channel information can be the terminal type for installing the APP for reading electronic book (if not With the terminal of terminal manufacturer production, such as Huawei's mobile phone, in emerging mobile phone), or obtain the APP channel information as logical Certain is crossed using shop or by some websites acquisition etc..The version information of the corresponding application of ageing information, is such as used to read Read the current version of the APP of e-book.
Obtaining the recipient of request can directly and quickly determine the ageing data to be asked, nothing according to these information Extra Screening Treatment is needed, ageing acquisition of information speed can be effectively improved, lift the user for obtaining request sender user Experience.
Step S220:According to request is obtained, current time is obtained.
For example, obtaining request recipient can be from locally obtaining current time.
Step S222:In obtaining the first data acquisition system, the time that very first time stamp is indicated counts earlier than the first of current time According to, and, in obtaining the second data acquisition system, the time that the second timestamp is indicated is later than the second data of current time.
That is, obtaining the still data with validity in closing from two datasets.
Step S224:According to the first data and the second data that obtain, it is determined that the ageing information asked is obtained, And return the ageing information for determining by returning message.
Required ageing information can be determined from still effective data according to request is obtained, and is obtained by responding The return message of request returns to the requesting party for obtaining request.
A kind of mode of the ageing information of feasible acquisition request is:The first data and the second data to obtaining are carried out Seek common ground process;The result processed according to occuring simultaneously, it is determined that obtaining the ageing information asked.By to the first data and Second data carry out common factor process, and the time started or end time that on the one hand can exclude only ageing information is eligible Those data;On the other hand, it is also possible to avoid Data duplication.
Also carry in request is obtained:It is the effective time information of ageing information to be obtained, to be obtained ageing Install in channel information, the version information of the corresponding application of ageing information to be obtained at least the one of the corresponding application of information When individual, can be according to from the information for obtaining acquisition in request, to occuring simultaneously, the result for processing is screened;According to the selection result, really The ageing information asked is obtained calmly.Hereby it is achieved that for obtaining the direct of the ageing information asked Obtain and feed back.
It should be noted that step S202-S224 can be implemented in same equipment or same server and operate, Can also step S202-S216 implement in an equipment such as server that database purchase is provided, and step S218-S224 exists Implement in another equipment such as server that data, services are provided.
By the present embodiment, effective storage of ageing information is not only realized, and realize having for ageing information Effect inquiry, greatly improves storage and the treatment effeciency of data and information, improves user experience.
Embodiment three
With reference to Fig. 3, flow process the step of show a kind of according to embodiments of the present invention three business object data processing method Figure.
In the present embodiment, business object data processing method provided in an embodiment of the present invention is said by taking e-book as an example It is bright.For reading electronic book client end AP P every time when starting and bookshelf is drop-down, for each e-book, need from Service end is obtained and is currently installed on unique digest record under channel, current time.Under normal circumstances, digest record can be Backstage configuration concurrency is wired in REDIS.Service end needs to get to meet from REDIS to be currently installed on channel and current time bar The data of part return to client end AP P, for its display.That is, in the present embodiment, using e-book as business object, with electronics The digest of book, using REDIS databases, with ZSET data types corresponding e-book dependency number is stored as ageing information According to efficient storage and inquiry of the realization to electronic book data.
Based on this, the business object data processing method of the present embodiment is comprised the following steps:
Step S302:Configuration background server obtains the attribute data of e-book.
Wherein, the attribute data of e-book includes:The mark ID of e-book, the digest data of e-book, digest data Time started stamp, the ending time stamp of digest data.In addition, it can include the peace of client end AP P for reading electronic book Dress channel information and version information.
Step S304:Configuration background server generates two REDIS databases according to the attribute data of the e-book for obtaining Ordered set.
It is for instance possible to use as the mode in embodiment one or embodiment two generates corresponding ordered set.
Wherein it is possible to according to digest data time started stab, by the mark ID of e-book, the digest data of e-book, The time started stamp of digest data generates the data of ZSET data types, and all time started stamps with digest data belong to as order Data genaration ordered set SORT_A of property;According to the ending time stamp of digest data, by the mark ID of e-book, e-book Digest data, the ending time stamp of digest data generate the data of ZSET data types, all end times with digest data Stab data genaration ordered set SORT_B for sequential attribute.
Additionally, in the installation channel information of the attribute information also including APP of e-book and during version information, SORT_A and Data member in SORT_B also can include these information.
It can be seen that, platform server upon configuration, the ageing information in e-book related data is digest in the same time period There can only be one under the same terms, e-book related data comes into force by being published to REDIS.Two are safeguarded in REDIS in order Set SORT_A and SORT_B, mark ID of e-book is KEY, and the DOUBLESCORE in SORT_A is the beginning of digest data Timestamp, the DOUBLESCORE in SORT_BA is the ending time stamp of digest data.Every time e-book related data is published to REDIS, can be according to the time started of digest data stamp and the pass of the current time of ending time stamp and configuration background server Two ordered sets SORT_A and SORT_B are done data validation and (are referred to as removed ending time stamp in embodiment two by system Data of the time shown earlier than current time), redundant data has been avoided.
Step S306:Data providing server receives the acquisition request for asking the digest of e-book, according to the acquisition Request is filtered out from REDIS and obtains the asked data of request, and returns data to obtain the requesting party of request.
For example, obtain obtaining the asked data of request by the way of step S218-S224 in embodiment two.
Data providing server can obtain symbol when acquisition request is received by the common factor of SORT_A and SORT_B The mark ID set of the e-book of time conditions is closed, it is such as different that channel, different versions are installed then further according to the condition needed for other This etc., filters out the digest for obtaining the asked e-book of request, and the data for getting are returned to the request for obtaining request Side.If without qualified digest, returned empty.
By the present embodiment, it is not necessary to the digest of e-book is obtained by writing the time-triggered protocol algorithm of complexity, when simplifying Between judgement process, improve development efficiency;Because REDIS has higher process performance, obtaining for high-volume high concurrent is disclosure satisfy that Take request;Thus the judgement for obtaining request is processed than very fast;The digest of e-book can be obtained using clear succinct code, can Maintainability is high.
Example IV
With reference to Fig. 4, a kind of structured flowchart of according to embodiments of the present invention four business object data processing meanss is shown.
The business object data processing meanss of the present embodiment include:First acquisition module 402, for obtaining business object Attribute information, wherein, the attribute information includes:The mark of business object, the very first time stamp of business object, business object The ageing information of the second timestamp and business object;Wherein, the very first time stab for during the beginning for indicating ageing information Between, the second timestamp is used to indicate the end time of ageing information;First memory module 404, for being with very first time stamp The element of characterize data order, mark, business object according to business object the very first time stamp and business object it is ageing Information, generates the first data of the data type with sequential attribute, and stores to the first data acquisition system;Second memory module 406, for the element with the second timestamp as characterize data order, the mark, business object according to business object second when Between stamp and business object ageing information, generate the second data of the data type with sequential attribute, and store to second Data acquisition system.
Wherein, the first memory module 404 and the second memory module 406 can merge setting, it is also possible to be separately provided.
The business object data processing meanss provided by the present embodiment, using first in the attribute information of business object Order between timestamp and the second timestamp characterize data, generates respectively by the first number of very first time stamp characterize data order According to the second data by the second timestamp characterize data order, wherein, the number of the data type of the first data and the second data The data type with sequential attribute is according to type.With traditional data using the time of sign as a single field or Part is stored to be compared with process, by setting corresponding data type and using the data of the time of sign as the data type Data in an element, on the one hand, the multiple data elements that can include the data of the data type are whole as one Body is stored and processed, and improves storage and the efficiency for processing;On the other hand, the data of the data type will be stabbed the very first time Or second timestamp as sequential attribute, it is right sequentially in time to be capable of achieving by very first time stamp or the second timestamp Data are ranked up, and in the case, the very first time of the data after sequence stabs or the second timestamp, you can quick to determine Ageing information in the time period of needs.
It can be seen that, by the present embodiment, the effective storage to ageing information and management are realized, it is applicable to all propping up The database or data-storage system of the data type with sequential attribute are held, data storage and the compatibility for processing is improve, And it is easy to operation maintenance personnel to carry out follow-up maintenance.Also, for each data of the data type with sequential attribute, can be used as one Individual entirety carries out atomicity operation, convenient storage and process, reduces the storage to ageing information and processing cost.
Additionally, the business object data processing meanss of the present embodiment can be arranged at it is appropriate with data-handling capacity In equipment, including but not limited to server, desktop computer etc..
Embodiment five
With reference to Fig. 5, a kind of structured flowchart of according to embodiments of the present invention five business object data processing meanss is shown.
The business object data processing meanss of the present embodiment include:First acquisition module 502, for obtaining business object Attribute information, wherein, the attribute information includes:The mark of business object, the very first time stamp of business object, business object The ageing information of the second timestamp and business object;Wherein, the very first time stab for during the beginning for indicating ageing information Between, the second timestamp is used to indicate the end time of ageing information;First memory module 504, for being with very first time stamp The element of characterize data order, mark, business object according to business object the very first time stamp and business object it is ageing Information, generates the first data of the data type with sequential attribute, and stores to the first data acquisition system;Second memory module 506, for the element with the second timestamp as characterize data order, the mark, business object according to business object second when Between stamp and business object ageing information, generate the second data of the data type with sequential attribute, and store to second Data acquisition system.
Alternatively, the first memory module 504, for according to the very first time of the mark of business object, business object stamp and The ageing information of business object, generates the first data of ordered set type, wherein, very first time stamp is ordered set type Data in sequential attribute;By the first data storage to the first data acquisition system.
Alternatively, the second memory module 506, for according to the mark of business object, the second timestamp of business object and The ageing information of business object, generates the second data of ordered set type, wherein, the second timestamp is ordered set type Data in sequential attribute;By the second data storage to the second data acquisition system.
Alternatively, the attribute information of business object also includes:The type information of business object;First memory module 504 is also For before by the first data storage to the first data acquisition system, judging whether indicated by the type information with business object Corresponding the first data acquisition system of type;If existing, by the first data storage to the first data acquisition system;If not existing, The first data acquisition system is created, and by the first data storage to the first data acquisition system for creating;Second memory module 506 is additionally operable to Before by the second data storage to the second data acquisition system, the type indicated by the type information with business object is judged whether The second corresponding data acquisition system;If existing, by the second data storage to the second data acquisition system;If not existing, is created Two data acquisition systems, and by the second data storage to second data acquisition system for creating.
Alternatively, the business object data processing meanss of the present embodiment also include:First judges performing module 508, is used for After the second memory module 506 is by the second data storage to the second data acquisition system, in judging the second data acquisition system, if exist Data of the time that second timestamp is indicated earlier than current time;If existing, obtain corresponding earlier than the data of current time The mark of business object;In deleting the second data acquisition system, corresponding second data of mark of the business object of acquisition, and, delete Except in the first data acquisition system, corresponding first data of mark of the business object of acquisition.
Alternatively, the business object data processing meanss of the present embodiment also include:Second judges performing module 510, is used for After the attribute information that the first acquisition module 502 obtains business object, judge whether the time that the second timestamp is indicated is later than Current time;If being later than current time, the first memory module 504 of execution is proceeded to.
Alternatively, the business object data processing meanss of the present embodiment also include:Receiver module 512, is used for for receiving Obtain the acquisition request of the ageing information of business object;Second acquisition module 514, for according to request is obtained, obtaining current Time;3rd acquisition module 516, in the first data acquisition system of acquisition, the time that very first time stamp is indicated to be earlier than current time The first data, and, obtain the second data acquisition system in, the second timestamp indicate time be later than current time second number According to;It is determined that module 518 is returned, for according to the first data and the second data for obtaining, it is determined that obtaining the asked timeliness of request Property information, and by return message return determine ageing information.
Optionally it is determined that return module 518 including:Processing module 5182, for the first data for obtaining and the second number According to carrying out the process that seeks common ground;Information determination module 5184, for the result processed according to occuring simultaneously, it is determined that obtaining what is asked Ageing information;Information return module 5186, for returning the ageing information for determining by returning message.
Alternatively, obtain in request and carry at least one following information:The effective time of ageing information to be obtained Information, the installation channel information of the corresponding application of ageing information to be obtained, the corresponding application of ageing information to be obtained Version information;Information determination module 5184, for basis from least one the following information of acquisition in request that obtains:It is to be obtained The effective time information of ageing information, the installation channel information of the corresponding application of ageing information to be obtained, to be obtained The corresponding application of ageing information version information, to occur simultaneously process result screen;According to the selection result, it is determined that obtaining Take the ageing information asked.
The business object data processing meanss of the present embodiment are used to realize corresponding business in aforesaid plurality of embodiment of the method Object data processing method, and the beneficial effect with embodiment of the method, will not be described here.
Embodiment six
With reference to Fig. 6, a kind of structural representation of according to embodiments of the present invention six server is shown, the present invention is concrete real Apply example not limit implementing for server.
As shown in fig. 6, the server can include:Processor (processor) 602, communication interface (Communications Interface) 604, memory (memory) 606 and communication bus 608.
Wherein:
Processor 602, communication interface 604 and memory 606 complete mutual communication by communication bus 608.
Communication interface 604, for the net element communication with miscellaneous equipment such as client or other servers etc..
Processor 602, for configuration processor 610, can specifically perform above-mentioned business object data processing method embodiment In correlation step.
Specifically, program 610 can include program code, and the program code includes computer-managed instruction.
The possibly central processor CPU of processor 602, or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement one or more integrated electricity of the embodiment of the present invention Road.The one or more processors that server includes, can be same type of processors, such as one or more CPU;Can also It is different types of processor, such as one or more CPU and one or more ASIC.
Memory 606, for depositing the first data acquisition system, the second data acquisition system and program 610.Memory 606 may Comprising high-speed RAM memory, it is also possible to also including nonvolatile memory (non-volatile memory), for example, at least one Individual magnetic disc store.
Program 610 specifically can be used for so that processor 602 performs following operation:The attribute information of business object is obtained, Wherein, attribute information includes:The mark of business object, the very first time stamp of business object, the second timestamp of business object and The ageing information of business object;Wherein, the very first time stab the time started for indicating ageing information, the second timestamp use In the end time for indicating ageing information;With very first time stamp as the element of characterize data order, according to the mark of business object Know, the ageing information of very first time of business object stamp and business object, generate the of the data type with sequential attribute One data, and store to the first data acquisition system;Also, with the second timestamp as the element of characterize data order, according to business pair The ageing information of the mark of elephant, the second timestamp of business object and business object, generates the data class with sequential attribute Second data of type, and store to the second data acquisition system.
In a kind of optional embodiment, program 610 is used to cause mark, industry of the processor 602 according to business object The very first time stamp and the ageing information of business object of business object, generates the first data of ordered set type, wherein, the One timestamp is the sequential attribute in the data of ordered set type;And, of the mark, business object according to business object The ageing information of two timestamps and business object, generates the second data of ordered set type, wherein, the second timestamp is Sequential attribute in the data of ordered set type.
In a kind of optional embodiment, the attribute information of business object also includes:The type information of business object;Journey Sequence 610 is additionally operable to so that processor 602 is when the first data to the first data acquisition system are stored:Judge whether and business object Type information indicated by corresponding the first data acquisition system of type;If existing, by the first data storage to described first Data acquisition system;If not existing, the first data acquisition system is created, and by the first data storage to the first data acquisition system for creating;With And, when the second data to the second data acquisition system are stored:Judge whether the class indicated by the type information with business object The second corresponding data acquisition system of type;If existing, by the second data storage to the second data acquisition system;If not existing, create Second data acquisition system, and by the second data storage to the second data acquisition system for creating.
In a kind of optional embodiment, program 610 is additionally operable to so that processor 602 is storing the second data to second After data acquisition system, in judging the second data acquisition system, if there is the number of the time earlier than current time of the second timestamp instruction According to;If existing, the mark earlier than the corresponding business object of the data of current time is obtained;In deleting the second data acquisition system, obtain Corresponding second data of mark of the business object for taking, and, in deleting the first data acquisition system, the mark of the business object of acquisition Corresponding first data.
In a kind of optional embodiment, program 610 is additionally operable to cause processor 602 in the attribute for obtaining business object After information, judge whether the time that the second timestamp is indicated is later than current time;If being later than current time, proceed to execution with Very first time stamp is the element of characterize data order, the very first time stamp of mark, business object according to business object and business The ageing information of object, generates the first data of the data type with sequential attribute, and stores to the first data acquisition system Step.
In a kind of optional embodiment, program 610 is additionally operable to so that processor 602 is received for obtaining business object Ageing information acquisition request;According to request is obtained, current time is obtained;In obtaining the first data acquisition system, the very first time Stamp indicate time earlier than current time the first data, and, obtain the second data acquisition system in, the second timestamp indicate when Between be later than the second data of current time;According to the first data and the second data that obtain, it is determined that obtain request it is asked when Effect property information, and return the ageing information for determining by returning message.
In a kind of optional embodiment, program 610 is additionally operable to cause processor 602 according to the first data for obtaining With the second data, it is determined that obtain asked ageing information when:The first data and the second data to obtaining are asked Common factor process;The result processed according to occuring simultaneously, it is determined that obtaining the ageing information asked.
In a kind of optional embodiment, obtain in request and carry at least one following information:Timeliness to be obtained Property the effective time information of information, the corresponding application of ageing information to be obtained channel information, timeliness to be obtained be installed The version information of the property corresponding application of information;Program 610 be additionally operable to cause processor 602 according to occur simultaneously process result, really When obtaining the ageing information asked calmly, according to from least one the following information of acquisition in request that obtains:It is to be obtained The effective time information of ageing information, the installation channel information of the corresponding application of ageing information to be obtained, to be obtained The corresponding application of ageing information version information, to occur simultaneously process result screen;According to the selection result, it is determined that obtaining Take the ageing information asked.
Each step implements the corresponding step that may refer in above-mentioned business object data Processing Example in program 610 Corresponding description in rapid and unit, will not be described here.Those skilled in the art can be understood that, be the side of description Just and succinctly, the specific work process of the equipment of foregoing description and module, may be referred to corresponding in preceding method embodiment Journey is described, and be will not be described here.
The scheme provided by the present embodiment, using the very first time stamp in the attribute information of business object and the second time Order between stamp characterize data, generates stab the first data of characterize data order and by the second timestamp by the very first time respectively Second data of characterize data order, wherein, the data type of the data type of the first data and the second data is with suitable The data type of sequence attribute.Stored and located as a single field or part with traditional data using the time of sign Reason is compared, by setting corresponding data type and using the data of the time of sign as a unit in the data of the data type Element, on the one hand, the multiple data elements that can include the data of the data type are stored and processed as an entirety, Improve storage and the efficiency for processing;On the other hand, the data of the data type will be stabbed the very first time or the second timestamp is made For sequential attribute, it is capable of achieving sequentially in time to be ranked up data by very first time stamp or the second timestamp, In the case of this, the very first time of the data after sequence stabs or the second timestamp, you can quick to determine in the time period for needing Ageing information.
It can be seen that, the scheme provided by the present embodiment realizes the effective storage to ageing information and management, applicable In all databases or data-storage system for supporting the data type with sequential attribute, data storage and process are improve Compatibility, and be easy to operation maintenance personnel to carry out follow-up maintenance.Also, for every number of the data type with sequential attribute According to, atomicity operation, convenient storage and process can be carried out as an entirety, reduce storage and process to ageing information Cost.
It may be noted that according to the needs implemented, all parts/step described in the embodiment of the present invention can be split as more Multi-part/step, also can be combined into new part/step by the part operation of two or more components/steps or components/steps Suddenly, realizing the purpose of the embodiment of the present invention.
Above-mentioned method according to embodiments of the present invention can be realized in hardware, firmware, or be implemented as being storable in note Software or computer code in recording medium (such as CD ROM, RAM, floppy disk, hard disk or magneto-optic disk), or it is implemented through net The original storage that network is downloaded is in long-range recording medium or nonvolatile machine readable media and will be stored in local recording medium In computer code, so as to method described here can be stored in using all-purpose computer, application specific processor or can be compiled Such software processing in the recording medium of journey or specialized hardware (such as ASIC or FPGA).It is appreciated that computer, process (for example, device, microprocessor controller or programmable hardware include can storing or receive the storage assembly of software or computer code RAM, ROM, flash memory etc.), when the software or computer code are by computer, processor or hardware access and when performing, realize Processing method described here.Additionally, when all-purpose computer accesses the code of the process being shown in which for realization, code Perform the special-purpose computer be converted to all-purpose computer for performing the process being shown in which.
Those of ordinary skill in the art are it is to be appreciated that the list of each example with reference to the embodiments described herein description Unit and method and step, being capable of being implemented in combination in electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Each specific application can be used different methods to realize described function, but this realization it is not considered that exceeding The scope of the embodiment of the present invention.
Embodiment of above is merely to illustrate the embodiment of the present invention, and not to the restriction of the embodiment of the present invention, relevant skill The those of ordinary skill in art field, in the case of the spirit and scope without departing from the embodiment of the present invention, can also make various Change and modification, therefore the technical scheme of all equivalents falls within the category of the embodiment of the present invention, the patent of the embodiment of the present invention Protection domain should be defined by the claims.
The embodiment of the invention discloses A1, a kind of business object data processing method, including:
The attribute information of business object is obtained, wherein, the attribute information includes:It is the mark of the business object, described The ageing information of the very first time stamp, the second timestamp of the business object and the business object of business object;Its In, the very first time stabs the time started for indicating the ageing information, and second timestamp is described for indicating The end time of ageing information;
Element as characterize data order, the mark, the business according to the business object are stabbed with the very first time The very first time stamp and the ageing information of the business object of object, generates first of the data type with sequential attribute Data, and store to the first data acquisition system;
Also, it is mark according to the business object, described with second timestamp as the element of characterize data order Second timestamp of business object and the ageing information of the business object, generate the data class with sequential attribute Second data of type, and store to the second data acquisition system.
A2, the method according to A1, wherein,
Element as characterize data order, the mark, the business according to the business object are stabbed with the very first time The very first time stamp and the ageing information of the business object of object, generates first of the data type with sequential attribute Data, including:Mark, the business object according to the business object the very first time stamp and the business object when Effect property information, generates the first data of ordered set type, wherein, the very first time stamp is the number of the ordered set type Sequential attribute according in;
Mark, the business with second timestamp as the element of characterize data order, according to the business object Second timestamp of object and the ageing information of the business object, generate the data type with sequential attribute Second data, including:Second timestamp and the business object of mark, the business object according to the business object Ageing information, generate ordered set type the second data, wherein, second timestamp be the ordered set type Data in sequential attribute.
A3, the method according to A1 or A2, wherein, the attribute information also includes:The type letter of the business object Breath;
Described storage to the first data acquisition system includes:Judge whether indicated by the type information with the business object Corresponding the first data acquisition system of type;If existing, by first data storage to first data acquisition system;If no Exist, then create the first data acquisition system, and by first data storage to first data acquisition system for creating;
Described storage to the second data acquisition system includes:Judge whether indicated by the type information with the business object Corresponding the second data acquisition system of type;If existing, by second data storage to second data acquisition system;If no Exist, then create the second data acquisition system, and by second data storage to second data acquisition system for creating.
A4, the method according to A1 or A2, wherein, storing to the second data acquisition system described, methods described is also Including:
In judging second data acquisition system, if there is the time of the second timestamp instruction earlier than current time Data;
If existing, the mark earlier than the corresponding business object of the data of current time is obtained;
In deleting second data acquisition system, corresponding second data of mark of the business object of acquisition, and, delete Except in first data acquisition system, corresponding first data of mark of the business object of acquisition.
A5, the method according to A1 or A2, wherein, after the attribute information of the acquisition business object, the side Method also includes:
Judge whether the time that second timestamp is indicated is later than current time;
If being later than current time, the element performed with very first time stamp as characterize data order is proceeded to, according to institute The mark of business object, the very first time stamp of the business object and the ageing information of the business object are stated, generation has First data of the data type of sequential attribute, and the step of store to the first data acquisition system.
A6, the method according to A1 or A2, wherein, methods described also includes:
Receive the acquisition request for obtaining the ageing information of business object;
Request is obtained according to described, current time is obtained;
In obtaining first data acquisition system, the time that the very first time stamp is indicated counts earlier than the first of current time According to, and, in obtaining second data acquisition system, the time that second timestamp is indicated is later than the second number of current time According to;
According to first data and second data that obtain, the ageing letter for obtaining and being asked is determined Breath, and return the described ageing information for determining by returning message.
A7, the method according to A6, wherein, first data and second data according to acquisition, really The ageing information that the fixed acquisition is asked, including:
First data and second data to obtaining carry out the process that seeks common ground;
According to the result occured simultaneously and process, the ageing information for obtaining and being asked is determined.
A8, the method according to A7, wherein, described acquisition in request carries at least one following information:It is to be obtained The effective time information of ageing information, the installation channel information of the corresponding application of ageing information to be obtained, to be obtained The corresponding application of ageing information version information;
It is described that the ageing information for obtaining and being asked is determined according to the result occured simultaneously and process, including:
According to from least one described following information for obtaining and being obtained in request:Ageing information to be obtained it is effective when Between information, the corresponding application of ageing information to be obtained install that channel information, ageing information to be obtained are corresponding should Version information, screens to the result for occuring simultaneously process;
According to the selection result, the ageing information for obtaining and being asked is determined.
The embodiment of the invention also discloses B9, a kind of business object data processing meanss, including:
First acquisition module, for obtaining the attribute information of business object, wherein, the attribute information includes:The industry The mark of business object, the very first time stamp of the business object, the second timestamp of the business object and the business object Ageing information;Wherein, the very first time stab the time started for indicating the ageing information, second time Stab the end time for indicating the ageing information;
First memory module, for stabbing the element as characterize data order with the very first time, according to the business pair The mark of elephant, the very first time stamp of the business object and the ageing information of the business object, generate and have sequential attribute Data type the first data, and store to the first data acquisition system;
Second memory module, for the element with second timestamp as characterize data order, according to the business pair The ageing information of the mark of elephant, the second timestamp of the business object and the business object, generates described with order Second data of the data type of attribute, and store to the second data acquisition system.
B10, the device according to B9, wherein,
First memory module, for being stabbed according to the very first time of the mark of the business object, the business object, With the ageing information of the business object, the first data of ordered set type are generated, wherein, the very first time stamp is institute State the sequential attribute in the data of ordered set type;By first data storage to the first data acquisition system;
Second memory module, for according to the mark of the business object, the second timestamp of the business object, With the ageing information of the business object, the second data of ordered set type are generated, wherein, second timestamp is institute State the sequential attribute in the data of ordered set type;By second data storage to the second data acquisition system.
B11, the device according to B9 or B10, wherein, the attribute information also includes:The type of the business object Information;
First memory module, was additionally operable to before by first data storage to the first data acquisition system, and judgement is It is no to there is first data acquisition system corresponding with the type indicated by the type information of the business object;If existing, by institute The first data storage is stated to first data acquisition system;If not existing, the first data acquisition system is created, and by first data Store to first data acquisition system for creating;
Second memory module, was additionally operable to before by second data storage to the second data acquisition system, and judgement is It is no to there is second data acquisition system corresponding with the type indicated by the type information of the business object;If existing, by institute The second data storage is stated to second data acquisition system;If not existing, the second data acquisition system is created, and by second data Store to second data acquisition system for creating.
B12, the device according to B9 or B10, wherein, described device also includes:
First judges performing module, in second memory module by second data storage to the second data set After conjunction, in judging second data acquisition system, if there is the time of the second timestamp instruction earlier than current time Data;If existing, the mark earlier than the corresponding business object of the data of current time is obtained;Delete second data acquisition system In, corresponding second data of mark of the business object of acquisition, and, in deleting first data acquisition system, acquisition Corresponding first data of mark of the business object.
B13, the device according to B9 or B10, wherein, described device also includes:
Second judges performing module, for after the attribute information that first acquisition module obtains business object, sentencing Whether the time that disconnected second timestamp is indicated is later than current time;If being later than current time, execution described first is proceeded to Memory module.
B14, the device according to B9 or B10, wherein, described device also includes:
Receiver module, for receiving the acquisition request for obtaining the ageing information of business object;
Second acquisition module, for obtaining request according to described, obtains current time;
3rd acquisition module, for obtaining first data acquisition system in, the time that very first time stamp is indicated earlier than First data of current time, and, in obtaining second data acquisition system, the time that second timestamp is indicated is later than works as Second data of front time;
It is determined that module is returned, for according to first data and second data for obtaining, determining that the acquisition please The ageing information asked is sought, and the described ageing information for determining is returned by returning message.
B15, the device according to B14, wherein, it is described to determine that returning module includes:
Processing module, for carrying out the process that seeks common ground to first data for obtaining and second data;
Information determination module, for according to the result occured simultaneously and process, determining that described acquisition asks asked timeliness Property information;
Information return module, for returning the described ageing information for determining by returning message.
B16, the device according to B15, wherein, described acquisition in request carries at least one following information:Wait to obtain The effective time information of the ageing information for taking, the installation channel information of the corresponding application of ageing information to be obtained, wait to obtain The version information of the corresponding application of ageing information for taking;
Described information determining module, at least one following information obtained in request is obtained for basis from described:Wait to obtain The effective time information of the ageing information for taking, the installation channel information of the corresponding application of ageing information to be obtained, wait to obtain The version information of the corresponding application of ageing information for taking, screens to the result for occuring simultaneously process;According to the selection result, Determine the ageing information for obtaining and being asked.
The embodiment of the invention also discloses C17, a kind of server, including:Processor, memory, communication interface and communication Bus, the processor, the memory and the communication interface complete mutual communication by the communication bus;
The memory is used to deposit an at least executable instruction, and the executable instruction makes the computing device such as The corresponding operation of business object data processing method described in any one of A1-A8.

Claims (10)

1. a kind of business object data processing method, including:
The attribute information of business object is obtained, wherein, the attribute information includes:The mark of the business object, the business The ageing information of the very first time stamp, the second timestamp of the business object and the business object of object;Wherein, institute State the very first time to stab time started for indicating the ageing information, second timestamp is used to indicating described ageing The end time of information;
Element as characterize data order, the mark, the business object according to the business object are stabbed with the very first time The very first time stamp and the business object ageing information, generate with sequential attribute data type the first data, And store to the first data acquisition system;
Also, the mark, the business with second timestamp as the element of characterize data order, according to the business object Second timestamp of object and the ageing information of the business object, generate the data type with sequential attribute Second data, and store to the second data acquisition system.
2. method according to claim 1, wherein,
Element as characterize data order, the mark, the business object according to the business object are stabbed with the very first time The very first time stamp and the business object ageing information, generate with sequential attribute data type the first data, Including:The very first time stamp and the ageing letter of the business object of mark, the business object according to the business object Breath, generates the first data of ordered set type, wherein, the very first time stamp is in the data of the ordered set type Sequential attribute;
Mark, the business object with second timestamp as the element of characterize data order, according to the business object The second timestamp and the business object ageing information, generate the second of the data type with sequential attribute Data, including:Second timestamp of mark, the business object according to the business object and the business object when Effect property information, generates the second data of ordered set type, wherein, second timestamp is the number of the ordered set type Sequential attribute according in.
3. method according to claim 1 and 2, wherein, the attribute information also includes:The type letter of the business object Breath;
Described storage to the first data acquisition system includes:Judge whether the class indicated by the type information with the business object The first corresponding data acquisition system of type;If existing, by first data storage to first data acquisition system;If not depositing , then the first data acquisition system is created, and by first data storage to first data acquisition system for creating;
Described storage to the second data acquisition system includes:Judge whether the class indicated by the type information with the business object The second corresponding data acquisition system of type;If existing, by second data storage to second data acquisition system;If not depositing , then the second data acquisition system is created, and by second data storage to second data acquisition system for creating.
4. method according to claim 1 and 2, wherein, storing to the second data acquisition system described, methods described is also Including:
In judging second data acquisition system, if there is the number of the time earlier than current time of the second timestamp instruction According to;
If existing, the mark earlier than the corresponding business object of the data of current time is obtained;
In deleting second data acquisition system, corresponding second data of mark of the business object of acquisition, and, delete institute In stating the first data acquisition system, corresponding first data of mark of the business object of acquisition.
5. method according to claim 1 and 2, wherein, after the attribute information of the acquisition business object, the side Method also includes:
Judge whether the time that second timestamp is indicated is later than current time;
If being later than current time, the element performed with very first time stamp as characterize data order is proceeded to, according to the industry The mark of business object, the very first time stamp of the business object and the ageing information of the business object, generate and have order First data of the data type of attribute, and the step of store to the first data acquisition system.
6. method according to claim 1 and 2, wherein, methods described also includes:
Receive the acquisition request for obtaining the ageing information of business object;
Request is obtained according to described, current time is obtained;
In obtaining first data acquisition system, the very first time stabs first data of the time earlier than current time of instruction, with And, in obtaining second data acquisition system, the time that second timestamp is indicated is later than the second data of current time;
According to first data and second data that obtain, the ageing information for obtaining and being asked is determined, And return the described ageing information for determining by returning message.
7. method according to claim 6, wherein, it is described according to first data for obtaining and second data, Determine the ageing information for obtaining and being asked, including:
First data and second data to obtaining carry out the process that seeks common ground;
According to the result occured simultaneously and process, the ageing information for obtaining and being asked is determined.
8. method according to claim 7, wherein, described acquisition in request carries at least one following information:Wait to obtain The effective time information of the ageing information for taking, the installation channel information of the corresponding application of ageing information to be obtained, wait to obtain The version information of the corresponding application of ageing information for taking;
It is described that the ageing information for obtaining and being asked is determined according to the result occured simultaneously and process, including:
According to from least one described following information for obtaining and being obtained in request:The effective time letter of ageing information to be obtained Channel information, the corresponding application of ageing information to be obtained are installed in breath, the corresponding application of ageing information to be obtained Version information, screens to the result for occuring simultaneously process;
According to the selection result, the ageing information for obtaining and being asked is determined.
9. a kind of business object data processing meanss, including:
First acquisition module, for obtaining the attribute information of business object, wherein, the attribute information includes:The business pair The mark of elephant, the very first time stamp of the business object, the second timestamp of the business object and the business object when Effect property information;Wherein, the very first time stab the time started for indicating the ageing information, second timestamp is used In the end time for indicating the ageing information;
First memory module, for stabbing the element as characterize data order with the very first time, according to the business object Mark, the very first time stamp of the business object and the ageing information of the business object, generate the number with sequential attribute According to the first data of type, and store to the first data acquisition system;
Second memory module, for the element with second timestamp as characterize data order, according to the business object The ageing information of mark, the second timestamp of the business object and the business object, generates described with sequential attribute Data type the second data, and store to the second data acquisition system.
10. a kind of server, including:Processor, memory, communication interface and communication bus, the processor, the memory Mutual communication is completed by the communication bus with the communication interface;
The memory is used to deposit an at least executable instruction, and the executable instruction wants the computing device such as right Ask the corresponding operation of business object data processing method described in any one of 1-8.
CN201611060612.5A 2016-11-25 2016-11-25 Business object data processing method, device and server Active CN106649602B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611060612.5A CN106649602B (en) 2016-11-25 2016-11-25 Business object data processing method, device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611060612.5A CN106649602B (en) 2016-11-25 2016-11-25 Business object data processing method, device and server

Publications (2)

Publication Number Publication Date
CN106649602A true CN106649602A (en) 2017-05-10
CN106649602B CN106649602B (en) 2018-09-04

Family

ID=58812190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611060612.5A Active CN106649602B (en) 2016-11-25 2016-11-25 Business object data processing method, device and server

Country Status (1)

Country Link
CN (1) CN106649602B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614412A (en) * 2018-12-11 2019-04-12 江苏瑞中数据股份有限公司 Data publication service two-stage shared buffer memory analysis strategy on cloud based on power industry
CN109977176A (en) * 2019-03-25 2019-07-05 上海火了信息科技有限公司 Data processing method and device
CN110083501A (en) * 2018-01-25 2019-08-02 北京京东尚科信息技术有限公司 Interface calls method of counting and device
CN110162564A (en) * 2019-05-30 2019-08-23 北京中电普华信息技术有限公司 Business data processing method and system
CN110691214A (en) * 2018-07-05 2020-01-14 视联动力信息技术股份有限公司 Data processing method and device for business object
CN115567460A (en) * 2022-12-05 2023-01-03 恒生电子股份有限公司 Data packet processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1216428A (en) * 1997-06-18 1999-05-12 松下电器产业株式会社 Program information retrieval apparatus, method, and system for retrieving and display information of broadcast programs in units of broadcast programs, recording medium storing program information
US20070005626A1 (en) * 2005-07-01 2007-01-04 Microsoft Corporation Blocks of time with metadata
CN105338297A (en) * 2014-08-11 2016-02-17 杭州海康威视系统技术有限公司 Video data storage and playback system, device and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1216428A (en) * 1997-06-18 1999-05-12 松下电器产业株式会社 Program information retrieval apparatus, method, and system for retrieving and display information of broadcast programs in units of broadcast programs, recording medium storing program information
US20070005626A1 (en) * 2005-07-01 2007-01-04 Microsoft Corporation Blocks of time with metadata
CN105338297A (en) * 2014-08-11 2016-02-17 杭州海康威视系统技术有限公司 Video data storage and playback system, device and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
海鸟: "区间重叠计算及IntervalTree初识", 《HTTP://WWW.CNBLOGS.COM/JCLI/P/4574824.HTML》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083501A (en) * 2018-01-25 2019-08-02 北京京东尚科信息技术有限公司 Interface calls method of counting and device
CN110691214A (en) * 2018-07-05 2020-01-14 视联动力信息技术股份有限公司 Data processing method and device for business object
CN109614412A (en) * 2018-12-11 2019-04-12 江苏瑞中数据股份有限公司 Data publication service two-stage shared buffer memory analysis strategy on cloud based on power industry
CN109614412B (en) * 2018-12-11 2023-06-02 江苏瑞中数据股份有限公司 Cloud data release service two-stage sharing cache analysis method based on power industry
CN109977176A (en) * 2019-03-25 2019-07-05 上海火了信息科技有限公司 Data processing method and device
CN109977176B (en) * 2019-03-25 2022-02-22 上海火了信息科技有限公司 Data processing method and device
CN110162564A (en) * 2019-05-30 2019-08-23 北京中电普华信息技术有限公司 Business data processing method and system
CN115567460A (en) * 2022-12-05 2023-01-03 恒生电子股份有限公司 Data packet processing method and device

Also Published As

Publication number Publication date
CN106649602B (en) 2018-09-04

Similar Documents

Publication Publication Date Title
CN106649602B (en) Business object data processing method, device and server
CN109034809B (en) Block chain generation method and device, block chain node and storage medium
CN111459985B (en) Identification information processing method and device
CN101504672B (en) Method and system for dynamically configuring physical data table
CN106407303A (en) Data storage method and apparatus, and data query method and apparatus
CN106547646B (en) Data backup and recovery method and data backup and recovery device
CN108255915B (en) File management method and device and machine-readable storage medium
CN110134689B (en) Target group screening method and system based on main body object label change and computer equipment
CN105760380A (en) Database query method, device and system
CN111651525A (en) Block chain data storage method and device
RU2632414C2 (en) Method of hierarchical data structure forming, method of data search using hierarchical data structure, server and permanent machine-readable media
CN113177090A (en) Data processing method and device
CN101963993B (en) Method for fast searching database sheet table record
CN110879808B (en) Information processing method and device
CN115858488A (en) Parallel migration method and device based on data governance and readable medium
CN107239568B (en) Distributed index implementation method and device
Parmar et al. MongoDB as an efficient graph database: An application of document oriented NOSQL database
CN110442585A (en) Data-updating method, data update apparatus, computer equipment and storage medium
CN103942213A (en) Data paging method and device
CN112486532A (en) Method and device for managing configuration file, electronic equipment and storage medium
US20190340179A1 (en) Result set output criteria
CN110941629A (en) Metadata processing method, device, equipment and computer readable storage medium
CN111045994A (en) KV database-based file classification retrieval method and system
CN103220355B (en) Multi-user configuration method in content distributing network
JP5063447B2 (en) Content management apparatus, method, and program

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220629

Address after: 518054-13098, 13th floor, main tower of marine center, No. 59, Linhai Avenue, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong

Patentee after: Shenzhen ZhangYue Animation Technology Co.,Ltd.

Address before: 100124 2029e, floor 2, Sihui building, Huihe South Street, Sihui East, Chaoyang District, Beijing

Patentee before: ZHANGYUE TECHNOLOGY Co.,Ltd.