CN113050977B - Data processing method and system - Google Patents

Data processing method and system Download PDF

Info

Publication number
CN113050977B
CN113050977B CN201911389601.5A CN201911389601A CN113050977B CN 113050977 B CN113050977 B CN 113050977B CN 201911389601 A CN201911389601 A CN 201911389601A CN 113050977 B CN113050977 B CN 113050977B
Authority
CN
China
Prior art keywords
patch
information
calling
function
application program
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.)
Active
Application number
CN201911389601.5A
Other languages
Chinese (zh)
Other versions
CN113050977A (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201911389601.5A priority Critical patent/CN113050977B/en
Publication of CN113050977A publication Critical patent/CN113050977A/en
Application granted granted Critical
Publication of CN113050977B publication Critical patent/CN113050977B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention discloses a data processing method, which comprises the following steps: calling a stream object function, and converting a patch list of an application program into a stream object; calling a traversal function, and acquiring a patch information set from the stream object; acquiring patch codes from the patch information set by calling a code acquisition function; calling a static type function to construct a patch version information identifier; performing hash storage on the patch version information identifier by calling a storage function of a cache center; applying for obtaining a second-level cache space in a cache space corresponding to the hash value of the patch version information identifier; and carrying out hash storage on the patch information in the secondary cache space. The acquisition efficiency of the release data can be obviously improved.

Description

Data processing method and system
Technical Field
The invention relates to the technical field of delivery data management, in particular to a data processing method and system.
Background
Data placement refers to the placement of data to a client at the publisher, e.g., a patch update of an application. At the data distribution end, for an application program, a plurality of patch versions exist, and each patch version has a plurality of patches. Therefore, in order to manage the placement data and grasp the patch information and the patch placement status information, it is generally necessary to store the placement data, including the data itself and the data placement status information.
The existing delivery data storage is generally stored in a mode of an infrastructure data structure or a database, and the storage mode causes that the delivery data retrieval efficiency is low.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method and system of data processing that overcomes or at least partially solves the above problems.
On one hand, the present application provides the following technical solutions through an embodiment of the present application:
a method of data processing, the method comprising:
calling a stream object function, and converting a patch list of an application program into a stream object;
calling a traversal function, and acquiring a patch information set from the stream object; the patch information set comprises patch version information of the application program, package name information of the application program and a version number of the application program;
calling a code obtaining function, and obtaining patch codes from the patch information set; the patch code is the code of the corresponding patch in the patch information;
calling a static type function according to the patch version information of the application program, the package name information of the application program and the version number of the application program, and constructing a patch version information identifier;
calling a storage function of a cache center, and performing hash storage on the patch version information identifier; wherein, the hash value stored by the patch version information identifier is obtained according to the patch version information identifier;
applying for obtaining a second-level cache space in a cache space corresponding to the hash value of the patch version information identifier;
in the second-level cache space, performing hash storage on the patch information; and the hash value stored by the patch information is obtained according to the patch code.
Optionally, after performing hash storage on the patch information in the second-level cache space, the method further includes:
and taking the patch version information identifier and the patch code as input, calling a data acquisition function, and acquiring patch information of a patch corresponding to the patch code.
Optionally, after performing hash storage on the patch information in the second-level cache space, the method further includes:
and taking the target patch version information identifier and the target patch code as input, calling a data judgment function, and judging whether the cache center has patch information of a patch corresponding to the target patch code.
Optionally, after the traversal function is called and the patch information set is obtained from the stream object, the method further includes:
calling a state obtaining function, and obtaining patch release state information from the patch information set; the patch release state information is release state information of a corresponding patch in the patch state information;
calling a formatting function according to the patch version information of the application program, the package name information of the application program and the version number of the application program, and constructing a patch state information identifier;
calling a storage function of a cache center, and performing hash storage on the patch state information identifier; the hash value stored in the patch version information state identifier is obtained according to the patch state information identifier;
applying for obtaining a second-level cache space in a cache space corresponding to the hash value of the patch state information identifier;
in the second-level cache space, performing hash storage on the patch state information; and the hash value stored in the patch state information is obtained according to the patch release state information.
Optionally, after performing hash storage on the patch status information in the second-level cache space, the method further includes:
and taking the patch state information identifier and the patch release state information as input, calling a data acquisition function, and acquiring the patch state information of the patch corresponding to the patch release state information.
Optionally, after performing hash storage on the patch status information in the second-level cache space, the method further includes:
and taking the target patch state information identifier and the target patch release state information as input, calling a data judgment function, and judging whether the cache center has patch state information of a patch corresponding to the target patch release state information.
Optionally, the calling the static type function includes:
and calling a formatting function inside the static type function.
In another aspect, the present application provides a data processing system according to another embodiment of the present application, the system including:
the data conversion module is used for calling a stream object function and converting a patch list of the application program into a stream object;
the first acquisition module is used for calling a traversal function and acquiring a patch information set from the stream object; the patch information set comprises patch version information of the application program, package name information of the application program and a version number of the application program;
the second obtaining module is used for calling a code obtaining function and obtaining the patch code from the patch information set; the patch coding is the coding of a corresponding patch in the patch information;
the identification construction module is used for calling a static type function according to the patch version information of the application program, the package name information of the application program and the version number of the application program to construct a patch version information identifier;
the first storage module is used for calling a storage function of a cache center and carrying out hash storage on the patch version information identifier; wherein, the hash value stored by the patch version information identifier is obtained according to the patch version information identifier;
a cache application module, configured to apply for obtaining a second-level cache space in a cache space corresponding to the hash value of the patch version information identifier;
the second storage module is used for carrying out hash storage on the patch information in the second-level cache space; and the hash value stored by the patch information is obtained according to the patch code.
The invention discloses a readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the above method.
The invention discloses an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor performing the steps of the method.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
the method of the invention, call the stream object function at first, change the patch listing of the application program into the stream object; acquiring a patch information set from the stream object by calling a traversal function; the patch information set comprises patch version information of the application program, package name information of the application program and a version number of the application program; acquiring patch codes from the patch information set by calling a code acquisition function; constructing a patch version information identifier by calling a static type function according to the patch version information of the application program, the package name information of the application program and the version number of the application program; the package name information of the application program and the version number of the application program can uniquely limit one application program, and the patch version information of the application program can limit the patch version information of the application program, so that the patch version information identifier can uniquely determine the patch version information of one application program. Then, the hash value stored by the patch version information identifier is obtained according to the patch version information identifier, namely, the patches of the application program are respectively subjected to hash storage according to versions according to the storage addresses calculated by the unique patch version information identifier; then, applying for obtaining a second-level cache space in a cache space corresponding to the hash value of the patch version information identifier; in the second-level cache space, performing hash storage on the patch information; and the hash value stored in the patch information is obtained according to the patch code of the patch corresponding to the patch information. That is, by means of two-level hash storage, the patch information is stored in the second-level cache space where the patch version information identifier is located according to the hash value calculated only by the patch code capable of uniquely determining one patch
The patch information is stored in a split-version mode for hash storage, and the patch information of the patch can be obtained only by obtaining the hash value of the patch version information identifier and then obtaining the hash value of the patch code when the patch information is called, so that the acquisition efficiency of the released data is obviously improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
FIG. 1 is a flow diagram of a method of data processing in one embodiment of the invention;
FIG. 2 is a system architecture diagram of data processing in one embodiment of the invention.
Detailed Description
The embodiment of the application provides a data processing method and system, and solves the technical problem that existing released data is low in calling efficiency.
In order to solve the technical problems, the general idea of the embodiment of the application is as follows:
a method of data processing, the method comprising: calling a stream object function, and converting a patch list of an application program into a stream object; calling a traversal function, and acquiring a patch information set from the stream object; the patch information set comprises patch version information of the application program, package name information of the application program and a version number of the application program; calling a code obtaining function, and obtaining patch codes from the patch information set; the patch code is the code of the corresponding patch in the patch information; calling a static type function according to the patch version information of the application program, the package name information of the application program and the version number of the application program, and constructing a patch version information identifier; calling a storage function of a cache center, and performing hash storage on the patch version information identifier; wherein, the hash value stored by the patch version information identifier is obtained according to the patch version information identifier; applying for obtaining a second-level cache space in a cache space corresponding to the hash value of the patch version information identifier; in the second-level cache space, performing hash storage on the patch information; and the hash value stored by the patch information is obtained according to the patch code.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
First, it is stated that the term "and/or" appearing herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
For example, for an application program, there are multiple patch versions, and multiple patches are provided under each patch version, then the patches of all versions are sequentially and conventionally stored according to a list, and when data is acquired, massive identification needs to be performed from the list to acquire patch information, and only one patch can be locked by the patch information, which is large in calculation amount and low in acquisition efficiency.
Therefore, the present application provides a data processing method through the first embodiment, to specifically describe how to overcome the above problem and improve the acquisition efficiency of the delivered data.
Example one
The present embodiment provides a data processing method, configured to perform data management at a publisher that releases data, and referring to fig. 1, the method includes:
s101, calling a stream object function, and converting a patch list of an application program into a stream object;
s102, calling a traversal function, and acquiring a patch information set from the stream object; the patch information set comprises patch version information of the application program, package name information of the application program and a version number of the application program;
s103, calling a code obtaining function, and obtaining a patch code from the patch information set; the patch code is the code of the corresponding patch in the patch information;
s104, calling a static type function according to the patch version information of the application program, the package name information of the application program and the version number of the application program, and constructing a patch version information identifier;
s105, calling a storage function of a cache center, and performing hash storage on the patch version information identifier; the hash value stored by the patch version information identifier is obtained according to the patch version information identifier;
s106, applying for obtaining a second-level cache space in the cache space corresponding to the hash value of the patch version information identifier;
s107, carrying out hash storage on the patch information in the second-level cache space; and the hash value stored by the patch information is obtained according to the patch code.
It should be noted that the patch data itself is stored in the database, and the present embodiment caches the patch information in the buffering center, so as to facilitate subsequent efficient data acquisition. The data processing method of this embodiment may process patch information corresponding to one application program, or may process patch information corresponding to a plurality of application programs.
The steps in this embodiment are explained in detail below with reference to fig. 1.
First, step S101 is executed to call a stream object function and convert a patch list of an application program into a stream object.
Stream () function converts the set data of the patch list patch into a Stream object of Stream. Through the object flow, the data information objects in the patch list can be cloned and persisted.
Next, executing S102, calling a traversal function, and acquiring a patch information set from the stream object; the patch information set comprises patch version information of the application program, package name information of the application program and a version number of the application program.
Specifically, the patch information of each patch in the patchList set may be sequentially fetched by the traversal function foreach function in the stream object obtained in S101.
Meanwhile, in order to realize the classified hash storage of the patch information according to the patch version in the following, a patch version information identifier capable of uniquely determining one piece of patch version information needs to be obtained in the implementation, so that for one patch, three dimensions are designed to describe the patch information, which are respectively: the system comprises pkgName, versionCode and patchVersion, wherein the pkgName represents package name information of the application program, the versionCode represents a version number of the application program, and the patchVersion represents patch version information of the application program.
It should be noted that three dimensions, namely pkgName, versionCode and patch version, are designed to uniformly describe patch information, and the three dimensions of information can uniquely lock one piece of patch version information, so that the patch version information can be associated with a patch version identifier in the following process, and the patch version information is subjected to hash storage. In the method implemented in the prior art, if only one piece of patch version information can be locked by using information of three dimensions, the patch version information cannot be uniquely locked by using a patch version information identifier, and subsequent hash storage and quick acquisition after storage cannot be realized.
Next, executing S103, calling a code obtaining function, and obtaining a patch code from the patch information set; and the patch coding is the coding of the corresponding patch in the patch information.
It should be noted that the patch information set includes not only the patch version information of the application program, the package name information of the application program, and the version number of the application program, but also all information of each patch, and of course, also includes an identification code of the patch, which is called patch code for short (patch id).
The patch coding can be used for calculating and generating a hash value corresponding to the patch information when hash storage is carried out on the patch information subsequently, and the hash storage mode can enable patch information with relatively large data volume to be obtained accurately only through the patch coding when the patch information is obtained, so that the method is fast and accurate. Specifically, the encoding (ID) information of the patch may be acquired by calling an ID acquisition function (patch. Getid function is a code obtaining function, which is an existing obtaining function and can obtain patch codes from patch information.
Next, S104 is executed, a static type function is called according to the patch version information of the application program, the package name information of the application program, and the version number of the application program, and a patch version information identifier is constructed.
In the specific implementation process, with the patch version information of the application program, the package name information of the application program, and the version number of the application program already described in S102, a patch version information identifier is constructed by the following function:
public static String patchKey(String pkgname,int vetsionCode,int patchVersion)
the function is a static type, is convenient to call, and the static method can be directly obtained through the type without being obtained through an object form. The name of the function is patchKey and the parameters are pkgName, vetsionCode, patchVersion, described above.
In the specific implementation process, inside the patchKey function, the following functions are called:
return string format ("android: patch:% s:% s:%, pkgName, string.value of (vetsionCode), string.value of (patch version)) to implement return a unique identifier patch version information identifier key 1.
Format function represents that a character string is formatted to generate a unique key1, and prefix information android: patch represents a key1 that is currently a patch (patch), then, by three: % s: % s: the method includes the steps that content information of variables is reserved through% s placeholders, and three pieces of information including pkgName, versionCode and patchVersion are filled in the three placeholders, wherein the versionCode and the patchVersion are int-type data and cannot be stored in a character string mode, so that the versionCode and the patchVersion are converted into a character string through calling of a string.
The unique key1 can be generated by associating one identifier with one patch information, so that the subsequent direct hash storage of the key1 is facilitated, and the patch information acquisition efficiency is improved.
Next, executing S105, calling a storage function of the cache center, and performing hash storage on the patch version information identifier; and the hash value stored by the patch version information identifier is obtained according to the patch version information identifier.
After the key1 that can uniquely determine the patch version information is obtained, since even one application may include a plurality of patch books, the patch information of each patch version is classified and stored in a hash manner in order to improve the efficiency of subsequently acquiring data and the accuracy of acquiring data. The hash value stored by the patch version information identifier is obtained according to the patch version information identifier, so that when the patch version information is obtained, the key1 can be accurately obtained only by calculating the obtained address according to the key1 and the rule of hash storage, and the version information of the patch is obtained.
In particular implementations, key1 may be hashed (hash) by calling a hash store function (hput function) in the cache center cacheCenter. The cacheCenter can be understood as an abstract data storage unit, and can store data in redis, a database, a file, a memory, or the like.
Next, S106 is executed, and a second-level cache space is applied to be obtained in the cache space corresponding to the hash value of the patch version information identifier.
After the version information of the patch is obtained quickly, secondary hash storage can be performed on the patch information under the version, so that specific patch information of the patch can be obtained quickly after the patch version information is obtained. Therefore, a second-level cache space needs to be applied to obtain in the cache space corresponding to the hash value of the patch version information identifier, so as to provide for second-level hash storage of subsequent patch information.
Next, S107 is executed, and hash storage is performed on the patch information in the second-level cache space; and the hash value stored by the patch information is obtained according to the patch code.
In S103, it has been described that, in the secondary hash storage, the hash value corresponding to the patch information is calculated and generated by using the patch code, and such a hash storage manner can enable patch information with a relatively large data size to be accurately obtained only by using the patch code, so that the method is fast and accurate.
However, the existing delivery data storage is generally stored in a basic data structure, a database, or the like, and the database must be accessed to acquire the patch information, and the data volume of the database is inherently large, so that the access efficiency is low. And only mass query is carried out in the database due to an irregular storage mode, so that the data query and access quantity is large, and the query efficiency is low. In the method of the embodiment, by establishing the cache structure separated from the database and by means of two-level hash storage in the cache structure, all patch information under certain patch version information can be locked efficiently by using the patch version information identifier, and then on the basis, the patch information of the patch corresponding to the patch code can be locked by the patch code, so that the efficiency of acquiring the patch information is remarkably improved compared with the prior art. After the storage of the patch information is completed, in combination with the characteristics of the storage structure, in order to quickly obtain the patch information of a certain patch, as an optional implementation manner, after the hash storage is performed on the patch information in the second-level cache space, the method further includes:
and taking the patch version information identifier and the patch code as input, calling a data acquisition function, and acquiring patch information of a patch corresponding to the patch code.
In specific implementation, the method can be realized by calling cachecenter. Specifically, in order to improve the efficiency of obtaining the patch information, the hash value corresponding to the patch version information identifier needs to be obtained by calculation using the patch version information identifier, then the patch version information identifier is found through the hash value, on the basis, the hash value corresponding to the patch code is obtained by calculation using the patch code, and then the patch information of the patch is found through the hash value. Therefore, when the patch information is acquired, only the patch version information identifier and the patch code are required to be used as input, and accurate patch information can be efficiently acquired.
For example, the hash storage structure for the patch version information identifier key1 is:
key 1: hashKey: hashValue, wherein hashValue is the hash value, i.e. the storage address, of Key1 hash storage. A second-level hashKey is also arranged in the structure, and all patch information under the patch version information corresponding to the key1 is stored in the hashKey: patch1, patch2, … patch n; each piece of patch information is stored by using a hash Value (patchIdlValue, patchId2Value, … patchIdnValue) generated by a corresponding patch code (patchId1, patchId2, … patchIdn); this forms a hash store of the patch information.
During the obtaining, assuming that the input Key1 is used, hashValue is obtained through calculation by the Key1, and all patch information under the storage address, namely, patch1, patch2, … patch, can be obtained through the hashValue. On the basis, if patch information of patch1 is also to be obtained, patch IdlValue is obtained by calculating patch Id1, and then patch1 can be obtained uniquely.
The benefit of this is that we can then obtain specific patch information directly from the patch Id.
After the storage of the patch information is completed, in combination with the characteristics of the storage structure, in order to quickly determine whether the cache center has the patch information of a certain patch, as an optional implementation manner, after performing hash storage on the patch information in the secondary cache space, the method further includes:
and taking the target patch version information identifier and the target patch code as input, calling a data judgment function, and judging whether the cache center has patch information of a patch corresponding to the target patch code.
In a specific implementation, it is possible to determine whether patch information of a patch corresponding to a target patch code is included in the cacheCenter by calling a cacheCenter (patchKey, patchId) function.
The specific judgment method comprises the steps of firstly utilizing the patch version information identifier to calculate and obtain a hash value corresponding to the patch version information identifier, then judging whether the corresponding patch version information identifier exists or not through the hash value, if so, utilizing the patch coding to calculate and obtain the hash value corresponding to the patch coding, and then judging whether the corresponding patch information exists or not through the hash value. Therefore, data does not need to be taken out for judgment as in the prior art, and the efficiency of data judgment is greatly improved.
Since the patch information set further includes patch release state information, in order to quickly acquire and determine release state information of a patch, as an optional implementation manner, after the traversal function is called and the patch information set is acquired from the stream object, the method further includes:
calling a state obtaining function, and obtaining patch release state information from the patch information set; the patch release state information is release state information of a corresponding patch in the patch state information;
calling a formatting function according to the patch version information of the application program, the package name information of the application program and the version number of the application program, and constructing a patch state information identifier;
calling a storage function of a cache center, and performing hash storage on the patch state information identifier; the hash value stored in the patch version information state identifier is obtained according to the patch state information identifier;
applying for obtaining a second-level cache space in a cache space corresponding to the hash value of the patch state information identifier;
in the second-level cache space, performing hash storage on the patch state information; and the hash value stored in the patch state information is obtained according to the patch release state information.
It should be noted that the above steps are the same as those in S103 to S107, and the difference is only that the patch version information is replaced by the patch release status information for the processing object, so the specific implementation process may refer to S103 to S107, and details are not described here.
As an optional implementation manner, after the hash storing the patch status information in the second-level cache space, the method further includes:
and taking the patch state information identifier and the patch release state information as input, calling a data acquisition function, and acquiring patch state information of a patch corresponding to the patch release state information.
As an optional implementation manner, after performing hash storage on the patch status information in the secondary cache space, the method further includes:
and taking the target patch state information identifier and the target patch release state information as input, calling a data judgment function, and judging whether the cache center has patch state information of a patch corresponding to the target patch release state information.
The two optional embodiments are also the same as the obtaining and determining of the patch information, and are not described herein again, and the releasing state of the patch, for example, "released" or "not released," may be obtained and determined quickly.
As an optional implementation, the invoking the static type function includes: and calling a formatting function inside the static type function.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
the method of the embodiment comprises the steps of firstly calling a stream object function, and converting a patch list of an application program into a stream object; acquiring a patch information set from the stream object by calling a traversal function; the patch information set comprises patch version information of the application program, package name information of the application program and a version number of the application program; acquiring patch codes from the patch information set by calling a code acquisition function; constructing a patch version information identifier by calling a static type function according to the patch version information of the application program, the package name information of the application program and the version number of the application program; the patch version information identifier can uniquely determine the patch version information of one application program. Then, the hash value stored by the patch version information identifier is obtained according to the patch version information identifier, namely, the patches of the application program are respectively subjected to hash storage according to versions according to the storage addresses calculated by the unique patch version information identifier; then, applying for obtaining a second-level cache space in the cache space corresponding to the hash value of the patch version information identifier; in the second-level cache space, performing hash storage on the patch information; and the hash value stored in the patch information is obtained according to the patch code of the patch corresponding to the patch information. In other words, by means of two-level hash storage, the patch information is stored in the second-level cache space where the patch version information identifier is located according to the hash value obtained by calculating the patch code that can uniquely determine one patch, so that not only can the patch information be stored in different versions, but also the patch information of the patch can be obtained only by first obtaining the hash value of the patch version information identifier and then obtaining the hash value of the patch code during calling, and the efficiency of obtaining the released data is remarkably improved.
Example two
Based on the same invention structure as the embodiment
It is to be noted that the present embodiment provides a data processing system, referring to fig. 2, the system includes:
the data conversion module is used for calling a stream object function and converting a patch list of an application program into a stream object;
the first acquisition module is used for calling a traversal function and acquiring a patch information set from the stream object; the patch information set comprises patch version information of the application program, package name information of the application program and a version number of the application program;
the second obtaining module is used for calling a code obtaining function and obtaining the patch code from the patch information set; the patch coding is the coding of a corresponding patch in the patch information;
the identification construction module is used for calling a static type function according to the patch version information of the application program, the package name information of the application program and the version number of the application program to construct a patch version information identifier;
the first storage module is used for calling a storage function of a cache center and carrying out hash storage on the patch version information identifier; wherein, the hash value stored by the patch version information identifier is obtained according to the patch version information identifier;
a cache application module, configured to apply for obtaining a second-level cache space in a cache space corresponding to the hash value of the patch version information identifier;
the second storage module is used for carrying out hash storage on the patch information in the second-level cache space; and the hash value stored by the patch information is obtained according to the patch code.
Since the data processing system described in this embodiment is a system adopted to implement the data processing method according to this embodiment, a person skilled in the art can understand the specific implementation manner of the system according to this embodiment and various modifications thereof based on the data processing method described in this embodiment, and therefore how to utilize the system according to this embodiment herein
The method in the first embodiment of the system implementation in this embodiment will not be described in detail. The system adopted by a person skilled in the art for implementing the method for data processing in the embodiment of the present application is within the scope of the protection intended by the present application.
Based on the same inventive concept as in the previous embodiments, embodiments of the present invention further provide a readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of any of the methods described above.
Based on the same inventive concept as that in the foregoing embodiments, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the steps of any one of the foregoing methods.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method of data processing, the method comprising:
calling a stream object function, and converting a patch list of an application program into a stream object;
calling a traversal function to acquire a patch information set from the stream object; the patch information set comprises patch version information of the application program, package name information of the application program and a version number of the application program;
calling a code obtaining function, and obtaining patch codes from the patch information set; the patch code is the code of the corresponding patch in the patch information;
calling a static type function according to the patch version information of the application program, the package name information of the application program and the version number of the application program, and constructing a patch version information identifier;
calling a storage function of a cache center, and performing hash storage on the patch version information identifier; the hash value stored by the patch version information identifier is obtained according to the patch version information identifier;
applying for obtaining a second-level cache space in the cache space corresponding to the hash value of the patch version information identifier;
in the second-level cache space, performing hash storage on the patch information; and the hash value stored by the patch information is obtained according to the patch code.
2. The method as recited in claim 1, wherein after hashing the patch information in the secondary cache space, the method further comprises:
and taking the patch version information identifier and the patch code as input, calling a data acquisition function, and acquiring patch information of a patch corresponding to the patch code.
3. The method as recited in claim 1, wherein after hashing the patch information in the secondary cache space, the method further comprises:
and taking the target patch version information identifier and the target patch code as input, calling a data judgment function, and judging whether the cache center has patch information of a patch corresponding to the target patch code.
4. The method of claim 1, wherein after the calling the traversal function to obtain the set of patch information from the stream object, the method further comprises:
calling a state obtaining function, and obtaining patch release state information from the patch information set; the patch release state information is release state information of a corresponding patch in the patch state information;
calling a formatting function according to the patch version information of the application program, the package name information of the application program and the version number of the application program, and constructing a patch state information identifier;
calling a storage function of a cache center, and performing hash storage on the patch state information identifier; wherein, the hash value stored by the patch state information identifier is obtained according to the patch state information identifier;
applying for obtaining a second-level cache space in a cache space corresponding to the hash value of the patch state information identifier;
in the second-level cache space, performing hash storage on the patch state information; and the hash value stored in the patch state information is obtained according to the patch release state information.
5. The method as recited in claim 4, wherein after hashing the patch state information in the secondary cache space, the method further comprises:
and taking the patch state information identifier and the patch release state information as input, calling a data acquisition function, and acquiring the patch state information of the patch corresponding to the patch release state information.
6. The method as recited in claim 4, wherein after hashing the patch state information in the secondary cache space, the method further comprises:
and taking the target patch state information identifier and the target patch release state information as input, calling a data judgment function, and judging whether the cache center has patch state information of a patch corresponding to the target patch release state information.
7. The method of claim 1 or 4, wherein said invoking a static type function comprises:
and calling a formatting function inside the static type function.
8. A system for data processing, the system comprising:
the data conversion module is used for calling a stream object function and converting a patch list of the application program into a stream object;
the first acquisition module is used for calling a traversal function and acquiring a patch information set from the stream object; the patch information set comprises patch version information of the application program, package name information of the application program and a version number of the application program;
the second obtaining module is used for calling a code obtaining function and obtaining the patch code from the patch information set; the patch code is the code of the corresponding patch in the patch information;
the identification construction module is used for calling a static type function according to the patch version information of the application program, the package name information of the application program and the version number of the application program to construct a patch version information identifier;
the first storage module is used for calling a storage function of a cache center and carrying out hash storage on the patch version information identifier; wherein, the hash value stored by the patch version information identifier is obtained according to the patch version information identifier;
a cache application module, configured to apply for obtaining a second-level cache space in a cache space corresponding to the hash value of the patch version information identifier;
the second storage module is used for carrying out hash storage on the patch information in the second-level cache space; and the hash value stored by the patch information is obtained according to the patch code.
9. A readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1-7 are implemented when the computer program is executed by the processor.
CN201911389601.5A 2019-12-27 2019-12-27 Data processing method and system Active CN113050977B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911389601.5A CN113050977B (en) 2019-12-27 2019-12-27 Data processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911389601.5A CN113050977B (en) 2019-12-27 2019-12-27 Data processing method and system

Publications (2)

Publication Number Publication Date
CN113050977A CN113050977A (en) 2021-06-29
CN113050977B true CN113050977B (en) 2022-06-17

Family

ID=76507522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911389601.5A Active CN113050977B (en) 2019-12-27 2019-12-27 Data processing method and system

Country Status (1)

Country Link
CN (1) CN113050977B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265263A (en) * 2008-12-24 2011-11-30 松下电器产业株式会社 Bus controller and initial boot program patch method
CN107391107A (en) * 2017-06-12 2017-11-24 北京明朝万达科技股份有限公司 The restorative procedure and device of a kind of application program
CN107667505A (en) * 2015-06-05 2018-02-06 思科技术公司 System for monitoring and managing data center
CN107766068A (en) * 2017-10-10 2018-03-06 金蝶软件(中国)有限公司 Application system patch installation, device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7509636B2 (en) * 2003-12-15 2009-03-24 Microsoft Corporation System and method for updating files utilizing delta compression patching

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265263A (en) * 2008-12-24 2011-11-30 松下电器产业株式会社 Bus controller and initial boot program patch method
CN107667505A (en) * 2015-06-05 2018-02-06 思科技术公司 System for monitoring and managing data center
CN107391107A (en) * 2017-06-12 2017-11-24 北京明朝万达科技股份有限公司 The restorative procedure and device of a kind of application program
CN107766068A (en) * 2017-10-10 2018-03-06 金蝶软件(中国)有限公司 Application system patch installation, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
应用程序热补丁(二): 自动生成热补丁;王超;《https://mp.weixin.qq.com/s/i4ZDK6KSghTY2VIo9cfR4A》;20180309;第1-9页 *

Also Published As

Publication number Publication date
CN113050977A (en) 2021-06-29

Similar Documents

Publication Publication Date Title
CN108932236B (en) File management method and device
US7921330B2 (en) Data migration manager
CN106776809B (en) Data query method and system
CN106407207B (en) Real-time newly-added data updating method and device
CN104933020A (en) Method and device for generating target documents based on template
CN109766349B (en) Task duplicate prevention method, device, computer equipment and storage medium
CN108647357B (en) Data query method and device
CN108334622B (en) Method for acquiring formatted composite data
CN108388613B (en) Cache data updating method
CN110046155B (en) Method, device and equipment for updating feature database and determining data features
CN110209714A (en) Report form generation method, device, computer equipment and computer readable storage medium
WO2019076102A1 (en) Data rollback method and system, device, and computer readable storage medium
US8024374B2 (en) Computer object conversion using an intermediate object
CN113050977B (en) Data processing method and system
CN111901453A (en) Identification generation method and device, computer equipment and storage medium
CN111026762A (en) Red and black tree index generation method and device, electronic equipment and storage medium
CN116360769A (en) Code generation method, device, equipment and storage medium
US11750392B1 (en) Authenticated index data structure with back-pointers
CN107870908B (en) Information acquisition method and device
US8656410B1 (en) Conversion of lightweight object to a heavyweight object
CN116414801A (en) Data migration method, device, computer equipment and storage medium
CN110222105B (en) Data summarization processing method and device
CN110909029A (en) Method and medium for realizing cache based on Nosql
CN106951427B (en) Data extraction method and device for business object
CN113010196B (en) Patch screening method, device, equipment and storage medium

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