CN109343968A - A kind of method and relevant apparatus obtaining data - Google Patents

A kind of method and relevant apparatus obtaining data Download PDF

Info

Publication number
CN109343968A
CN109343968A CN201810872389.7A CN201810872389A CN109343968A CN 109343968 A CN109343968 A CN 109343968A CN 201810872389 A CN201810872389 A CN 201810872389A CN 109343968 A CN109343968 A CN 109343968A
Authority
CN
China
Prior art keywords
function
data
information
pkbean
allinfos
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
CN201810872389.7A
Other languages
Chinese (zh)
Other versions
CN109343968B (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 CN201810872389.7A priority Critical patent/CN109343968B/en
Publication of CN109343968A publication Critical patent/CN109343968A/en
Application granted granted Critical
Publication of CN109343968B publication Critical patent/CN109343968B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of methods and relevant apparatus for obtaining data.The method comprise the steps that defining target data in the class PKBean of data Bean object, target data is privately owned private type;The function of function and get function to target data setting set function;Map data structure is used in class PKBean, designs maintenance the variable Map<String, Object>allInfos of global data;The parameter information for being used to be arranged global variable in set function is stored in allInfos according to Map data structure, the content information of global variable is returned according to get function;The definition calibration collection object listTarget in class PKBean, listTarget are used to carry out checking treatment to the data in class PKBean;Determine whether allInfos lacks data information according to listTarget;If it is not, then carrying out flow path switch by String () function, to String () function is used to for the data information in allInfos being converted into the object of String type;Call the pkbean in class PKBean, toString () function, according to the object acquisition C++ message of String type.

Description

A kind of method and relevant apparatus obtaining data
Technical field
The present invention relates to development platform field more particularly to a kind of methods and relevant apparatus for obtaining data.
Background technique
In traditional scheme, the building of C++ message is to write code manually by programmer, and the code write is spelled one by one It connects, to realize the building of data.Such mode, which will lead to entire splicing process, to be become complicated and is difficult to handle, and obtains number It can also be devoted a tremendous amount of time according to the process with splicing data, under causing the building efficiency of C++ message very low.Therefore practical application In, using it is this it is traditional by the way of construct the parameter list for being sent to C++ barrage server, be also faced with the building time it is long and The problem of constructing inefficiency.
Therefore, in contrast to realized one by one in traditional scheme by manually mode send parameter joining method, how The parameter list for being sent to C++ barrage server can be rapidly and effectively constructed, and guarantees the integrality of parameter, is one A urgent problem.
Summary of the invention
The embodiment of the invention provides a kind of methods and relevant apparatus for obtaining data, for guaranteeing the integrality of parameter, And improve the efficiency of C++ message acquisition.
The first aspect of the embodiment of the present invention provides a kind of method for obtaining data, and the method is used in Android C++ message is obtained in system, comprising: target data is defined in the class PKBean of data Bean object, the target data is Privately owned private type;The function of function and get function to target data setting set function;In the class PKBean It is middle to use Map data structure, design maintenance variable Map<String, the Object>allInfos of global data, the String For indicating the title of the data of storage, the Object is used to indicate the information of the data of the storage, the allInfos For indicating the set of various types of data in the storage class PKBean;According to the Map data structure by the set letter It is stored in the allInfos, is returned according to the get function described complete for the parameter information of global variable to be arranged in number The content information of office's variable;Definition calibration collection object listTarget, the listTarget are used in the class PKBean In to the data progress checking treatment in the class PKBean;Determine whether the allInfos lacks according to the listTarget Few data information;If it is not, then carrying out flow path switch by String () function, to the String () function is used for will Data information in the allInfos is converted into the object of String type;The pkbean in the class PKBean is called, ToString () function, with the C++ message according to the object acquisition of the String type.
It is described to determine whether the allInfos lacks letter according to the listTarget in a kind of possible embodiment Breath content includes: to define checkParam function, and the checkParam function is for carrying out detection operation;Described In checkParam function, the listTarget.add () in the listTarget is called to add verification object;Successively traverse And the data information in the allInfos is extracted, the identification information of the data information is item;Described in calling ListTarget.contains (item) function in listTarget, whether to judge in the listTarget comprising institute State data information;If the data information is removed from the listTarget comprising the data information;If not including The data information, then continue cyclic check;When the allInfos after circulation terminates, judge that the listTarget is It is no that there is also elements;If it exists, it is determined that the allInfos lacks the information content;If it does not exist, it is determined that described AllInfos contains whole information contents.
In a kind of possible embodiment, the target data includes the width data and int type of int type Height data;Described includes: according to lower section to the function of target data setting set function and the function of get function The function of the set function and the function of the get function: Public void setWidth (int width) { } is arranged in formula; Public int getWidth(){}。
In a kind of possible embodiment, it is described by String () function carry out flow path switch include: The builder object of definition character string splicing class in StringBuilder type;Call the function in the builder object Append (" PKBean { ") adds name prefix information " PKBean { " in the builder object;It successively traverses and extracts Data information in the allInfos;The data information in the allInfos is added in the builder object, and will The data information is packaged;After the completion of the data information in the allInfos encapsulates in the builder object, Call builder.toString () function by the data conversion in the builder object at pair of the String type As.
In a kind of possible embodiment, the data information for successively traversing and extracting in the allInfos includes: AllInfos.get (" width ") function is called to get the value information widthValue of the width data;It calls AllInfos.get (" length ") function gets the value information length Value of the length data.
In a kind of possible embodiment, the data added in the builder object in the allInfos Information, and it includes: the append (" width=") called in the builder object that the data information, which is packaged, .append (widthValue) function is inserted into the value information of the width data in the builder object WidthValue, so that the data composition in the builder object is as follows: PKBean { width=widthValue;It adjusts With builder.append () function in the builder object to add separator;It calls in the builder object Append (" length=") .append (lengthValue) function be inserted into the length in the builder object The value information lengthValue of data, so that the data composition in the builder object is as follows: PKBean { width= WidthValue, length=lengthValue;Call builder.append () function in the builder object with End mark is added, to realize the encapsulation of the data information.
In a kind of possible embodiment, after the progress flow path switch by String () function, the calling Pkbean in the class PKBean, toString () function, with the C++ according to the object acquisition of the String type Before message, the method also includes: call return builderStr function to return to the object of the String type, institute BuilderStr is stated for indicating the object of the String type.
The second aspect of the embodiment of the present invention provides a kind of acquisition device, and described device is used in android system Obtain C++ message, comprising: definition unit, for defining target data, the target in the class PKBean of data Bean object Data are privately owned private type;Setting unit, for the function and get function to target data setting set function Function;The definition unit is also used in the class PKBean design the maintenance variable of global data using Map data structure Map<String, Object>allInfos, the String are used to indicate the title of the data of storage, and the Object is used for Indicate the information of the data of the storage, the allInfos stores various types of data in the class PKBean for indicating Set;Storage unit, for will be used to be arranged the parameter of global variable in the set function according to the Map data structure Information is stored in the allInfos, and the content information of the global variable is returned according to the get function;The definition is single Member is also used to, and definition calibration collection object listTarget, the listTarget are used for described in the class PKBean Data in class PKBean carry out checking treatment;Determination unit, for determining the allInfos according to the listTarget Whether data information is lacked;Converting unit is used for if it is not, then carrying out flow path switch, the to by String () function String () function is used to for the data information in the allInfos being converted into the object of String type;Call unit is used Pkbean in the calling class PKBean, toString () function, according to the object acquisition institute of the String type State C++ message.
In a kind of possible embodiment, the determination unit is specifically used for: checkParam function is defined, it is described CheckParam function is for carrying out detection operation;In the checkParam function, call in the listTarget ListTarget.add () addition verification object;Successively traverse and extract the data information in the allInfos, the data The identification information of information is item;ListTarget.contains (item) function in the listTarget is called, to sentence Whether break in the listTarget comprising the data information;If comprising the data information, by the data information from It is removed in the listTarget;If not including the data information, continue cyclic check;When the allInfos is followed After ring, judging the listTarget, whether there is also elements;If it exists, it is determined that the allInfos lacks the letter Cease content;If it does not exist, it is determined that the allInfos contains whole information contents.
In a kind of possible embodiment, the target data includes the width data and int type of int type Height data, the setting unit are specifically used for: according to following manner be arranged the set function function and the get letter Several function: Public void setWidth (int width) { };Public int getWidth(){}.
In a kind of possible embodiment, the converting unit is specifically used for: the defined word in StringBuilder type The builder object of symbol string splicing class;Call the function append (" PKBean { ") in the builder object described Name prefix information " PKBean { " is added in builder object;It successively traverses and extracts the letter of the data in the allInfos Breath;The data information in the allInfos is added in the builder object, and the data information is packaged; After the completion of the data information in the allInfos encapsulates in the builder object, builder.toString is called () function is by the data conversion in the builder object at the object of the String type.
In a kind of possible embodiment, the converting unit is specifically used for: calling allInfos.get (" width ") letter Number gets the value information widthValue of the width data;AllInfos.get (" length ") function is called to get The value information length Value of the length data.
In a kind of possible embodiment, the converting unit is specifically used for: calling in the builder object Append (" width=") .append (widthValue) function is inserted into the width data in the builder object Value information widthValue so that in the builder object data composition it is as follows: PKBean { width= widthValue;Call builder.append () function in the builder object to add separator;Described in calling Append (" length=") .append (lengthValue) function in builder object is in the builder object It is inserted into the value information lengthValue of the length data, so that the data composition in the builder object is as follows: PKBean { width=widthValue, length=lengthValue;It calls in the builder object Builder.append () function is to add end mark, to realize the encapsulation of the data information.
In a kind of possible embodiment, the call unit is also used to: return builderStr function being called to return The object of the String type, the builderStr are used to indicate the object of the String type.
Third aspect present invention provides a kind of electronic equipment, including memory, processor, which is characterized in that the place Reason device realizes the acquisition data as described in above-mentioned any one when being used to execute the computer management class method stored in memory Method the step of.
Fourth aspect present invention provides a kind of computer readable storage medium, is stored thereon with computer management class Sequence, it is characterised in that: the acquisition as described in above-mentioned any one is realized when the computer management class method is executed by processor The step of method of data.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that the class in data Bean object Target data is defined in PKBean, the target data is privately owned private type;Set function is arranged to the target data Function and get function function;Map data structure is used in the class PKBean, designs the maintenance variable of global data Map<String, Object>allInfos, the String are used to indicate the title of the data of storage, and the Object is used for Indicate the information of the data of the storage, the allInfos stores various types of data in the class PKBean for indicating Set;The parameter information for being used to be arranged global variable in the set function is stored according to the Map data structure described In allInfos, the content information of the global variable is returned according to the get function;Calibration is defined in the class PKBean Collection object listTarget, the listTarget are for carrying out checking treatment to the data in the class PKBean;According to The listTarget determines whether the allInfos lacks data information;If it is not, then by String () function into Row flow path switch, to the String () function are used to the data information in the allInfos being converted into String type Object;Call the pkbean in the class PKBean, toString () function, according to the object of the String type Obtain the C++ message.In the embodiment of the present invention, the integrality of parameter ensure that, and can effectively improve the structure of C++ message It builds efficiency and can reduce the acquisition difficulty and splicing difficulty of data, greatly improve the efficiency of C++ message acquisition.
Detailed description of the invention
Fig. 1 is the flow chart of the possible method for obtaining data of one kind provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of possible acquisition device provided in an embodiment of the present invention;
Fig. 3 is a kind of hardware structural diagram of possible electronic equipment provided in an embodiment of the present invention;
Fig. 4 is a kind of hardware structural diagram of possible computer readable storage medium provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of methods and relevant apparatus for obtaining data, for for guaranteeing the complete of parameter Property, and improve the efficiency of C++ message acquisition.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without making creative work Example, shall fall within the protection scope of the present invention.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce The other step or units of product or equipment inherently.
Referring to Fig. 1, being specifically included for a kind of flow chart for the method for obtaining data provided in an embodiment of the present invention:
101, target data is defined in the class PKBean of data Bean object;
This process of data is obtained since in traditional scheme, data bearer has, and the process for obtaining data inherently compares It is more complex so resulting in the promotion of the complexity of the data acquisition of traditional scheme.In view of this, one kind will be described in this step The design method of new data bearer simplifies the process of data acquisition, specific as follows:
Data are usually stored in data Bean object in the exploitation of Android, therefore, if the number of design According to obtaining, just the speed of so data acquisition is exactly most fast in Bean object itself.It, can be in a data based on this The design of Deta bearer is realized in the class PKBean of Bean object.It should be noted that being contained in class PKBean several Field information, such as int type width and int type height data.For ease of description, in the embodiment of the present invention, only Illustrate the service condition comprising this two data, if also including other kinds of field information or data, processing mode and place The reason mode of height data of width with int type of int type is similar, and details are not described herein again.
Define the container of target data in class PKBean, in the embodiment of the present invention, which can be above-mentioned two A data, i.e. the height data of the width data of int type and int type, specific definition mode are as follows:
private int width;
private int height;
Two local variables width and height are defined in class PKBean, core is all privately owned (private) class Type, and its parameter type is all the data of int integer type.Next setWidth and getWidth letter is arranged to target data Number function, specific function are defined as follows shown:
Public void setWidth(int width){}
Public int getWidth(){}
Through the above steps, the design of data bearer is completed, data can finally pass through the memory variable width of definition It is stored with height.The design of the above-mentioned set function and get function for giving width, sets the function of height Meter is similar with width, and details are not described herein again.
102, the function of the function to target data setting set function and get function;
103, Map data structure is used in class PKBean, designs the maintenance variable of global data;
It should be noted that Public void setWidth (int width) { } is the definition of set function, this step In, it will be described for the realization of the set function.
In the embodiment of the present invention, maintenance variable Map < String of a global data is defined in class PKBean, Object > allInfos passes through sentence this.width=width's when caller calls setWidth function first Variable to carry out assignment operation to global variable width, and that wherein this.width is indicated is global variable width, and equal sign is right That the width on side is indicated is parameter width.
Wherein, Map data structure has been used to carry out storing data when designing global set, wherein String is indicated It is the title of storing data, general type Object type carrys out the specifying information of storing data.Since Object type is in Java The abstract class for having given top layer according to its ability for having reception other types data the characteristics of object-oriented, therefore can incite somebody to action Various types of data in class PKBean are stored into set allInfos.Followed by calling set allInfos.put (" width ", width) method by be arranged parameter information store into global set allInfos, similarly, to other parameters Set function all carry out storage processing by a similar method, that is to say, that the data storage in data class PKBean patrols Data buffer storage has been arrived in global variable allInfos in volume.
In addition, corresponding getWidth function can be by calling existing return this.width in practical application Function returns to the content information of global variable width, and with existing implementation indifference, specific details are not described herein again.
104, the definition calibration collection object listTarget in class PKBean;
105, determine whether allInfos lacks data information according to listTarget;
It should be noted that due to that may there is the set function of partial function not to be called in conversion process, also It is to say that not every parameter information is all provided with, this may result in partial data loss in this way, go out so as to cause business function It is now abnormal.In view of this, the embodiment of the present invention increases a data verifying function, the complete of data can effectively ensure that Property, thus the problem of avoiding data from lacking.Concrete implementation mode is as described below: 1) in order to the field in PKBean object Information carries out checking treatment, and a calibration collection object listTarget is devised in the object of PKBean type, then right ListTarget collection object carries out initialization process, and specific initial method is by calling listTarget=new ArrayList<String>() function carries out initialization process;2) a checkParam function is redesigned then to realize Detection operation to parameter information, specific function is defined as follows shown, and: Public boolean checkParam () { } is needed It is noted that checkParam function does not enter parameter and parameter of dispatching from the factory is the variable of a boolean Boolean type, such as The fruit boolean Boolean return is that true indicates that verification passes through, and otherwise indicates that verification does not pass through;3) in function checkParam In, listTarget is subjected to assignment operation, by call listTarget object in listTarget.add () function come Addition verification object, for example, widht information is if desired verified, with regard to being by calling listTarget.add (" width ") function It can be achieved.It should be noted that similar mode can also be used and carry out if also needing to verify length or other field informations Addition, specific details are not described herein again;After above-mentioned processing, just contained in listTarget set need to verify it is all Field information;4) the allInfos collection object in above scheme is traversed, successively takes out field information therein, the word that will be got Segment information is labeled as item;5) by calling listTarget.contains (item) letter in listTarget collection object It counts to judge to pass through calling if containing whether comprising the element information in listTarget set It is carried out removal operation from listTarget set by listTarget.remove (item) function.If do not include if into Row cyclic check next time;6) when entire allInfos set all after circulation terminates, need to determine in listTarget object It whether also include element, particular by calling listTarget.size () function.ListTarget.size if () function Return value be 0, expression contained all element informations, if the return value of listTarget.size () function is big It in 0, indicates that there are partial informations not to be removed from listTarget object, is i.e. lacks part letter in allInfos set Content is ceased, shows that allInfos set lacks content at this time, can not carry out flow path switch (toString ()), therefore return False, i.e. execution step 106;Conversely, the value of listTarget.size () is 0, ture is returned;7) for being converted ToString () function inside verify the checking parameter of this programme first, if returning to true carries out subsequent conversion operation; Otherwise developer's convert failed is prompted with regard to stopping convert simultaneously throw exception.
It can be realized by above-mentioned design and automatic check function carried out to parameter, it is ensured that information in conversion process Integrality.
106, when allInfos includes all data informations, flow path switch is carried out by String () function;
107, the pkbean in class PKBean, toString () function, according to the object acquisition C of String type are called ++ message.
It should be noted that the conversion method of data bearer can define a special function and come in fact in existing scheme Existing conversion logic, calls the function then to realize the function of conversion.However, this mode will increase excessive function performance simultaneously And realization for function performance and design are all more troublesome, hold in view of this, will provide a kind of data in the embodiment of the present invention The design cycle of the conversion method of device is carried, specifically includes the following steps:
Step 1, the embodiment of the present invention are turned when realizing by means of toString () function of system Change of current journey, it should be noted that toString () function itself is to use when design for printing some log informations , it will use toString () function seldom to carry out logical process, but what is returned due to toString () function is one The content information of character string, and the data of C++ transmitting message are also a character string information, therefore can be on perfect matching, base In this, the embodiment of the present invention can directly realize real conversion process in the function toString () of system and will conversion Process is exported.
In addition, in step 103, all information all being stored to global set allInfos and is suffered, therefore Conversion process can be realized only by the data information obtained in allInfos when needing to convert.
Step 2, it should be noted that in order to improve transfer efficiency in conversion process, the embodiment of the present invention turns realizing A StringBuilder string-concatenation class builder is devised when change of current journey, passes through StringBuilder type Builder object realize the process of entire information conversion, the generation of rubbish variable in conversion process, Neng Gouyou can be reduced Memory overhead in the reduction conversion process of effect.
Specifically, first by calling append (" PKBean { ") function in builder object to add into builder Add a name prefix information " PKBean { ", successively takes out information from allInfos set followed by the mode of traversal And spliced.Optionally, in practical application, joining method be can be, by calling allInfos.get (" width ") method The value information of width is got, for ease of description, the value information that will acquire is labeled as widthValue, then passes through calling Append (" width=") .append (widthValue) function in builder object is inserted into one into builder object Data information.After above-mentioned processing, the format of the data in entire builder object is as follows:
PKBean { width=widthValue.
Next step 3 needs to add the data information in allInfos into builder object, and the data is believed Breath is packaged.Specific adding method is by calling builder.append (", ") function in builder object first A separator is added, then adds the information of length again.It should be noted that specifically addition length information method and The method of width information be it is similar, it is specific that details are not described herein again.
Step 4, after all information is all completed, need to add an end mark again, specific addition terminates The method of symbol is added by calling builder.append (") ") function in builder object, and this completes whole The adding procedure of a data information.Data composition form at this time in builder object is as follows:
PKBean { width=widthValue, length=lengthValue }.
Step 5, after entire data information is all packaged in builder object, need to call Data in builder object are converted to the object of a String type by builder.toString () function BuilderStr, then by calling return builderStr function to return to away the builderStr.
In use process subsequent in this way it is only necessary to by call pkbean object pkbean, toString () function, Final C++ message data can be got, this makes it possible to be quickly obtained parameter information and carry out data to deliver.
In the embodiment of the present invention, one can quickly and be effectively constructed by the implementation of this programme and is sent to C++ bullet The parameter list of curtain server.Compared to the splicing side for realizing barrage transmission parameter in traditional scheme one by one by manually mode Method can greatly improve the efficiency of parameter splicing and the speed etc. of parameter splicing.
In addition, embodiment shown in FIG. 1 realizes the process of data conversion, but there are such a problems, i.e. class For PKBean there are when multiple field information width and length, conversion process will all data letters of automatic conversion Breath.Other relevant informations may be saved however in practical application, in class PKBean and the information does not need to be transmitted to C++ clothes It is engaged in device, embodiment shown in FIG. 1 is just unable to satisfy the demand at this time, because embodiment shown in FIG. 1 can be by all information Carry out whole conversion process.In view of this, in the embodiment of the present invention, providing a kind of can be changed the design side into ginseng number Method, concrete implementation method are specific to design the following steps are included: the 1) design of progress again when designing set function Method is as follows: Public void setWidth (int width, Boolean isArgument);Public void SetLength (int length, Boolean isArgument), when stating function in design, increases one in set function A parameter information isArgument, the parameter information are a boolean Boolean variable information, believe parameter for indicating whether Breath is added in global variable allInfos.It is understood that requiring to execute the operation in all set series of functions Process;2) by calling this.width=width function that function parameter is assigned to variable width, next judge again The value information of isArgument, if isArgument==false, expression does not need parameter information, and indicating at this time should Parameter is not need to pass to the parameter information of C++, therefore can capture processing;If isArgument==true, Indicate that the parameter is the parameter information for needing to carry out C++ transmitting, it is therefore desirable to by call allInfos.put (" width ", This.width) function stores parameter information into allInfos set, just contains one in such allInfos set The parameter information of width.It is similar, when the isArgument==false in others set function if will not ginseng Otherwise number storage just stores the information into set allInfos into allInfos set.By above-mentioned design, i.e., in fact Having showed the content in set allInfos is exactly the content information for needing to store, and the content for not needing storage would not store collection It closes in allInfos;3) it due to not being all field informations contained in PKBean class in allInfos set, is obtaining It needs to go to obtain its key and value information one by one when taking the information, the specific following institute of mode for obtaining its key and value It states: getting the one of collection object allInfos by calling allInfos.entrySet () function of allInfos object Then a EntrySet object entrySet calls entrySet.iterator () method in entrySet object to obtain To the object mIterator of an Iterator type, by calling the mIterator.hasNext in mIterator object () method judges in set allInfos object whether there are also element informations, if returning to true, indicate;On the contrary then table Showing does not have;4) when if it is true, pass through Map.Entry entry=(Map.Entry) it.next () function first A key-value pair information entry is got, then by calling String key=(String) entry.getKey () letter The key information forced type for counting to get key information and will acquire is converted into the data of String type.Similar, pass through Int value=(Integer) entry.getValue () function is called to obtain its value information and the value information that will acquire is strong Type processed is converted into the data of an int type.This makes it possible to obtain out key-value pair information therein;5) and shown in Fig. 1 Embodiment in it is similar, above-mentioned key-value pair information is built into the parameter object of a C++ by builder object, i.e., It may be implemented in the objective function that partial parameters in PKBean need transmitting portions parameter not need transmitting.
It should be noted that the realization of embodiment shown in FIG. 1 be all carried out by the object of PKBean class it is a series of Set function processing, will lead to need in this way that the object of the PKBean class is carried out many places transmitting, eventually by this The toString function of the object of PKBean class realizes final conversion, and the process for transmitting object is also one very many and diverse Process.To solve the above-mentioned problems, the method that the embodiment of the present invention also proposed a rapid build object, concrete implementation side Formula is the following steps are included: 1) in order to quickly realize the construction to data, at interior design one of class PKBean class Static class MyBuilder, specific definition method are as follows: public static class MyBuilder { } needs Illustrate, such MyBuilder is the inner classes of a PKBean class, is the static class of a public permission, wherein at this Field information defined in class MyBuilder is completely the same with field information included in PKBean.For example, in Fig. 1 institute In the embodiment shown, two field informations of int width and int length are contained in PKBean class, then Two int width and int length field informations are equally defined in this inner classes of MyBuilder;2) in inner classes Two set methods are defined in MyBuilder, specific definition method is as follows: public MyBuilder setWidth (int width);public MyBuilder setLength(int length);It should be noted that the set method has one The feature of a maximum is that return Value Types are this types of inner classes MyBuilder, and this design can easily set up At continuing to be configured the message after an information;3) in public MyBuilder setWidth (int width) function In by call this.width=width function by width information store into inner classes MyBuilder object, need to infuse Meaning, what this herein was represented is the inner classes MyBuilder class of PKBean, that is to say, that is to store information into In the object of MyBuidler class.MyBuilder type directly is returned by calling rethrn this function after the completion of storage Object this itself.Similar, it is similar with the set function of above-mentioned width for the design of the set function of length, and Return to a MyBuilder object.Due to return be exactly MyBuilder type object this, that designs in this way is good Place is exactly that another information can then be arranged after being provided with an information;4) one is defined in MyBuilder class Builder function, specific function are defined as follows shown: public PKBean build () { }, the builder function return The object of one PKBean type is realized in builder function MyBuilder class being converted to the converted of PKBean class Journey, wherein specific conversion process is to construct a PKBean object by the constructed fuction of calling PKBean, such as logical It crosses PKBean pkBean=new PKBean () function and obtains a pkBean object, then call pkBean.width= This.width function.I.e. by the pkBean object of the information storage of the widht object in MyBuilder object to return In widht field, this completes the conversions of a field information;5) due in initial design process, that is, step 1), The field information in field information and PKBean class in MyBuilder class is duplicate, therefore thus can be perfect MyBuilder class is converted to PKBean class object, the conversion method of other fields is similar with foregoing description, then obtains One pkbean object.The pkbean.toString () function recalled in pkbean object converts pkbean object At parameter object needed for a C++.
The embodiment of the present invention is described from the angle for the method for obtaining data above, below from the angle of acquisition device The embodiment of the present invention is described in degree.
The embodiment of the present invention is described in the angle for obtaining the method for data from building above, below from acquisition device Angle the embodiment of the present invention is described.
Referring to Fig. 2, Fig. 2 is a kind of embodiment schematic diagram of possible acquisition device provided in an embodiment of the present invention, In, which specifically includes:
Definition unit 201, for defining target data in the class PKBean of data Bean object, the target data is Privately owned private type;
Setting unit 202, the function for function and get function to target data setting set function;
The definition unit 201 is also used in the class PKBean design the dimension of global data using Map data structure Variable Map<String, Object>allInfos are protected, the String is used to indicate the title of the data of storage, described Object is used to indicate the information of the data of the storage, and the allInfos is various in the class PKBean for indicating to store The set of the data of type;
Storage unit 203, for will be used to be arranged global variable in the set function according to the Map data structure Parameter information is stored in the allInfos, and the content information of the global variable is returned according to the get function;
The definition unit 201 is also used to, and definition calibration collection object listTarget, described in the class PKBean ListTarget is used to carry out checking treatment to the data in the class PKBean;
Determination unit 204, for determining whether the allInfos lacks data information according to the listTarget;
Converting unit 205 is used for if it is not, then carrying out flow path switch, the to String by String () function () function is used to for the data information in the allInfos being converted into the object of String type;
Call unit 206, for calling the pkbean in the class PKBean, toString () function, according to C++ message described in the object acquisition of String type.
Optionally, in some possible implementations, the determination unit 204 is specifically used for: defining checkParam Function, the checkParam function is for carrying out detection operation;In the checkParam function, described in calling ListTarget.add () addition verification object in listTarget;It successively traverses and extracts the number in the allInfos It is believed that breath, the identification information of the data information is item;Call the listTarget.contains in the listTarget (item) function, whether to judge in the listTarget comprising the data information;If, will comprising the data information The data information is removed from the listTarget;If not including the data information, continue cyclic check;When After circulation terminates, judging the listTarget, whether there is also elements by the allInfos;If it exists, it is determined that described AllInfos lacks the information content;If it does not exist, it is determined that the allInfos contains whole information contents.
Optionally, in some possible implementations, the target data includes the width data and int of int type The height data of type, the setting unit 202 are specifically used for: according to following manner be arranged the set function function and The function of the get function: Public void setWidth (int width) { };Public int getWidth(){}.
Optionally, in some possible implementations, the converting unit 205 is specifically used for: in StringBuilder The builder object of definition character string splicing class in type;Call function the append (" PKBean in the builder object ") addition name prefix information " PKBean { " in the builder object;It successively traverses and extracts in the allInfos Data information;Add the data information in the allInfos in the builder object, and by the data information into Row encapsulation;After the completion of the data information in the allInfos encapsulates in the builder object, call Builder.toString () function is by the data conversion in the builder object at the object of the String type.
Optionally, in some possible implementations, the converting unit 205 is specifically used for: calling AllInfos.get (" width ") function gets the value information widthValue of the width data;It calls AllInfos.get (" length ") function gets the value information length Value of the length data.
Optionally, in some possible implementations, the converting unit 205 is specifically used for: calling the builder Described in append (" width=") .append (widthValue) function in object is inserted into the builder object The value information widthValue of width data, so that the data composition in the builder object is as follows: PKBean { width=widthValue;Call builder.append () function in the builder object to add separator; Call append (" length=") .append (lengthValue) function in the builder object described The value information lengthValue of the length data is inserted into builder object, so that in the builder object Data composition is as follows: PKBean { width=widthValue, length=lengthValue;Call the builder object In builder.append () function to add end mark, to realize the encapsulation of the data information.
Optionally, in some possible implementations, the call unit 206 is also used to: calling return BuilderStr function returns to the object of the String type, and the builderStr is for indicating the String type Object.
Referring to Fig. 3, Fig. 3 is the embodiment schematic diagram of electronic equipment provided in an embodiment of the present invention.
As shown in figure 3, the embodiment of the invention provides a kind of electronic equipment, including memory 310, processor 320 and deposit The computer program 311 that can be run on memory 320 and on the processor 320 is stored up, processor 320 executes computer program It is performed the steps of when 311 and defines target data in the class PKBean of data Bean object, the target data is privately owned Private type;The function of function and get function to target data setting set function;Make in the class PKBean With Map data structure, maintenance variable Map<String, the Object>allInfos of global data is designed, the String is used for Indicate the title of the data of storage, the Object is used to indicate the information of the data of the storage, and the allInfos is used for Indicate the set of various types of data in the storage class PKBean;It will be in the set function according to the Map data structure Parameter information for global variable to be arranged is stored in the allInfos, returns to the global change according to the get function The content information of amount;In the class PKBean definition calibration collection object listTarget, the listTarget for pair Data in the class PKBean carry out checking treatment;Determine whether the allInfos lacks number according to the listTarget It is believed that breath;If it is not, then carrying out flow path switch by String () function, to the String () function is used for will be described Data information in allInfos is converted into the object of String type;The pkbean in the class PKBean is called, ToString () function, with the C++ message according to the object acquisition of the String type.
Optionally, in a kind of possible embodiment, the processor 320 is specifically used for: checkParam function is defined, The checkParam function is for carrying out detection operation;In the checkParam function, the listTarget is called In listTarget.add () addition verification object;The data information in the allInfos is successively traversed and extracts, it is described The identification information of data information is item;ListTarget.contains (item) function in the listTarget is called, Whether to judge in the listTarget comprising the data information;If the data are believed comprising the data information Breath is removed from the listTarget;If not including the data information, continue cyclic check;When described After circulation terminates, judging the listTarget, whether there is also elements by allInfos;If it exists, it is determined that the allInfos Lack the information content;If it does not exist, it is determined that the allInfos contains whole information contents.
Optionally, in a kind of possible embodiment, the processor is specifically used for: described in being arranged according to following manner The function of the function of set function and the get function: Public void setWidth (int width) { };Public int getWidth(){}。
Optionally, in a kind of possible embodiment, the processor is specifically used for: in StringBuilder type The builder object of definition character string splicing class;The function append (" PKBean { ") in the builder object is called to exist Name prefix information " PKBean { " is added in the builder object;It successively traverses and extracts the data in the allInfos Information;The data information in the allInfos is added in the builder object, and the data information is sealed Dress;After the completion of the data information in the allInfos encapsulates in the builder object, call Builder.toString () function is by the data conversion in the builder object at the object of the String type.
Optionally, in a kind of possible embodiment, the processor is specifically used for: calling allInfos.get (" width ") function gets the value information widthValue of the width data;It calls allInfos.get (" length ") Function gets the value information length Value of the length data.
Optionally, in a kind of possible embodiment, the processor is specifically used for: calling in the builder object Append (" width=") .append (widthValue) function the width number is inserted into the builder object According to value information widthValue so that in the builder object data composition it is as follows: PKBean { width= widthValue;Call builder.append () function in the builder object to add separator;Described in calling Append (" length=") .append (lengthValue) function in builder object is in the builder object It is inserted into the value information lengthValue of the length data, so that the data composition in the builder object is as follows: PKBean { width=widthValue, length=lengthValue;It calls in the builder object Builder.append () function is to add end mark, to realize the encapsulation of the data information.
Optionally, in a kind of possible embodiment, the processor is also used to: calling return builderStr letter Number returns to the object of the String type, and the builderStr is used to indicate the object of the String type.
In the specific implementation process, when processor 320 executes computer program 311, the corresponding embodiment of Fig. 1 may be implemented Middle any embodiment.
The electronic equipment introduced by the present embodiment is implements in the embodiment of the present invention used by a kind of acquisition device Equipment, so based on method described in the embodiment of the present invention, those skilled in the art can understand the present embodiment The specific embodiment of electronic equipment and its various change form, so how to realize the present invention for the electronic equipment herein Method in embodiment is no longer discussed in detail, as long as the method that those skilled in the art implement in the embodiment of the present invention is adopted Equipment belongs to the range of the invention to be protected.
Referring to Fig. 4, Fig. 4 is a kind of embodiment signal of computer readable storage medium provided in an embodiment of the present invention Figure.
As shown in figure 4, present embodiments providing a kind of computer readable storage medium 400, it is stored thereon with computer journey Sequence 411, the computer program 411 realize following steps when being executed by processor: fixed in the class PKBean of data Bean object Adopted target data, the target data are privately owned private type;To the function and get of target data setting set function The function of function;Map data structure is used in the class PKBean, designs maintenance variable Map < String of global data, Object > allInfos, the String are used to indicate the title of the data of storage, and the Object is for indicating the storage Data information, the allInfos is used to indicate the set of various types of data in the storage class PKBean;According to The parameter information for being used to be arranged global variable in the set function is stored in the allInfos by the Map data structure, The content information of the global variable is returned according to the get function;The definition calibration collection object in the class PKBean ListTarget, the listTarget are used to carry out checking treatment to the data in the class PKBean;According to described ListTarget determines whether the allInfos lacks data information;If it is not, then being turned by String () function Change of current journey, to the String () function are used to for the data information in the allInfos being converted into pair of String type As;Call the pkbean in the class PKBean, toString () function, according to the object acquisition of the String type The C++ message.
Optionally, in a kind of possible embodiment, it is specifically used for realizing when which is executed by processor Following steps: checkParam function is defined, the checkParam function is for carrying out detection operation;Described In checkParam function, the listTarget.add () in the listTarget is called to add verification object;Successively traverse And the data information in the allInfos is extracted, the identification information of the data information is item;Described in calling ListTarget.contains (item) function in listTarget, whether to judge in the listTarget comprising institute State data information;If the data information is removed from the listTarget comprising the data information;If not including The data information, then continue cyclic check;When the allInfos after circulation terminates, judge that the listTarget is It is no that there is also elements;If it exists, it is determined that the allInfos lacks the information content;If it does not exist, it is determined that described AllInfos contains whole information contents.
Optionally, in a kind of possible embodiment, it is specifically used for realizing when which is executed by processor Following steps: the function of the set function and the function of the get function: Public void are set according to following manner setWidth(int width){};Public int getWidth(){}.
Optionally, in a kind of possible embodiment, it is specifically used for realizing when which is executed by processor Following steps: the builder object of definition character string splicing class in StringBuilder type;Call described builder pairs Function append (" PKBean { ") as in adds name prefix information " PKBean { " in the builder object;Successively It traverses and extracts the data information in the allInfos;The number in the allInfos is added in the builder object It is believed that breath, and the data information is packaged;When the data information in the allInfos is in the builder object After the completion of encapsulation, call builder.toString () function by the data conversion in the builder object at described The object of String type.
Optionally, in a kind of possible embodiment, it is specifically used for realizing when which is executed by processor Following steps: allInfos.get (" width ") function is called to get the value information widthValue of the width data; AllInfos.get (" length ") function is called to get the value information length Value of the length data.
Optionally, in a kind of possible embodiment, it is specifically used for realizing when which is executed by processor Following steps: call append (" width=") .append (widthValue) function in the builder object in institute The value information widthValue that the width data are inserted into builder object is stated, so that in the builder object Data composition is as follows: PKBean { width=widthValue;Call the builder.append in the builder object () function is to add separator;Call append (" length=") .append in the builder object (lengthValue) function is inserted into the value information lengthValue of the length data in the builder object, with So that the data composition in the builder object is as follows: PKBean { width=widthValue, length= lengthValue;Call builder.append () function in the builder object to add end mark, to realize State the encapsulation of data information.
Optionally, in a kind of possible embodiment, which is also used to realize such as when being executed by processor Lower step: calling return builderStr function to return to the object of the String type, and the builderStr is used for table Show the object of the String type.
It should be noted that in the above-described embodiments, all emphasizing particularly on different fields to the description of each embodiment, in some embodiment The part being not described in may refer to the associated description of other embodiments.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that each process in flowchart and/or the block diagram can be realized by computer program instructions And/or the combination of the process and/or box in box and flowchart and/or the block diagram.It can provide these computer programs to refer to Enable the processor of general purpose computer, special purpose computer, embedded computer or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Concept, then additional changes and modifications may be made to these embodiments.So it includes preferred that the following claims are intended to be interpreted as Embodiment and all change and modification for falling into the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the invention is also intended to include including these modification and variations.

Claims (10)

1. a kind of method for obtaining data, the method is used to obtain C++ message in android system, which is characterized in that packet It includes:
Target data is defined in the class PKBean of data Bean object, the target data is privately owned private type;
The function of function and get function to target data setting set function;
Map data structure is used in the class PKBean, design maintenance the variable Map<String, Object of global data> AllInfos, the String are used to indicate the title of the data of storage, and the Object is used to indicate the data of the storage Information, the allInfos is used to indicate the set of various types of data in the storage class PKBean;
The parameter information for being used to be arranged global variable in the set function is stored according to the Map data structure described In allInfos, the content information of the global variable is returned according to the get function;
Definition calibration collection object listTarget, the listTarget are used for the class in the class PKBean Data in PKBean carry out checking treatment;
Determine whether the allInfos lacks data information according to the listTarget;
If it is not, then carrying out flow path switch by String () function, to the String () function is used for will be described Data information in allInfos is converted into the object of String type;
Call the pkbean in the class PKBean, toString () function, according to the object acquisition of the String type The C++ message.
2. the method according to claim 1, wherein described according to listTarget determination Whether allInfos lacks the information content
CheckParam function is defined, the checkParam function is for carrying out detection operation;
In the checkParam function, the listTarget.add () in the listTarget is called to add verification pair As;
The data information in the allInfos is successively traversed and extracts, the identification information of the data information is item;
ListTarget.contains (item) function in the listTarget is called, to judge the listTarget In whether include the data information;
If the data information is removed from the listTarget comprising the data information;
If not including the data information, continue cyclic check;
When the allInfos after circulation terminates, judging the listTarget, whether there is also elements;
If it exists, it is determined that the allInfos lacks the information content;
If it does not exist, it is determined that the allInfos contains whole information contents.
3. the method according to claim 1, wherein the target data include int type width data and The height data of int type;
It is described to include: to the function of target data setting set function and the function of get function
The function of the set function and the function of the get function are set according to following manner:
Public void setWidth(int width){};
Public int getWidth(){}。
4. according to the method described in claim 3, it is characterized in that, described carry out flow path switch by String () function Include:
The builder object of definition character string splicing class in StringBuilder type;
Before calling the function append (" PKBean { ") in the builder object to add name in the builder object Sew information " PKBean { ";
It successively traverses and extracts the data information in the allInfos;
The data information in the allInfos is added in the builder object, and the data information is packaged;
After the completion of the data information in the allInfos encapsulates in the builder object, call Builder.toString () function is by the data conversion in the builder object at the object of the String type.
5. according to the method described in claim 4, it is characterized in that, described successively traverse and extract the number in the allInfos It is believed that breath includes:
AllInfos.get (" width ") function is called to get the value information widthValue of the width data;
AllInfos.get (" length ") function is called to get the value information length Value of the length data.
6. according to the method described in claim 5, it is characterized in that, it is described in the builder object addition described in Data information in allInfos, and the data information is packaged and includes:
Call append (" width=") .append (widthValue) function in the builder object described The value information widthValue of the width data is inserted into builder object, so that the number in the builder object It is as follows according to forming: PKBean { width=widthValue;
Call builder.append () function in the builder object to add separator;
Call append (" length=") .append (lengthValue) function in the builder object described The value information lengthValue of the length data is inserted into builder object, so that in the builder object Data composition is as follows: PKBean { width=widthValue, length=lengthValue;
Call builder.append () function in the builder object to add end mark, to realize the data letter The encapsulation of breath.
7. method according to any one of claim 1 to 6, which is characterized in that it is described by String () function into After row flow path switch, the pkbean called in the class PKBean, toString () function, according to Before C++ message described in the object acquisition of String type, the method also includes:
Return builderStr function is called to return to the object of the String type, the builderStr is for indicating The object of the String type.
8. a kind of acquisition device, described device is used to obtain C++ message in android system characterized by comprising
Definition unit, for defining target data in the class PKBean of data Bean object, the target data is privately owned Private type;
Setting unit, the function for function and get function to target data setting set function;
The definition unit is also used in the class PKBean design the maintenance variable of global data using Map data structure Map<String, Object>allInfos, the String are used to indicate the title of the data of storage, and the Object is used for Indicate the information of the data of the storage, the allInfos stores various types of data in the class PKBean for indicating Set;
Storage unit, for will be used to be arranged the parameter information of global variable in the set function according to the Map data structure It is stored in the allInfos, the content information of the global variable is returned according to the get function;
The definition unit is also used to, and definition calibration collection object listTarget, described in the class PKBean ListTarget is used to carry out checking treatment to the data in the class PKBean;
Determination unit, for determining whether the allInfos lacks data information according to the listTarget;
Converting unit is used for if it is not, then carrying out flow path switch, to the String () function by String () function For the data information in the allInfos to be converted into the object of String type;
Call unit, for calling the pkbean in the class PKBean, toString () function, according to the String class C++ message described in the object acquisition of type.
9. a kind of computer readable storage medium, including instruction, when run on a computer, so that computer is executed as weighed Benefit requires method described in 1-7 any one.
10. a kind of computer program product comprising instruction, when run on a computer, so that computer executes such as right It is required that method described in 1-7 any one.
CN201810872389.7A 2018-08-02 2018-08-02 Method and related device for acquiring data Active CN109343968B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810872389.7A CN109343968B (en) 2018-08-02 2018-08-02 Method and related device for acquiring data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810872389.7A CN109343968B (en) 2018-08-02 2018-08-02 Method and related device for acquiring data

Publications (2)

Publication Number Publication Date
CN109343968A true CN109343968A (en) 2019-02-15
CN109343968B CN109343968B (en) 2020-09-04

Family

ID=65291343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810872389.7A Active CN109343968B (en) 2018-08-02 2018-08-02 Method and related device for acquiring data

Country Status (1)

Country Link
CN (1) CN109343968B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020168751A1 (en) * 2019-02-20 2020-08-27 平安科技(深圳)有限公司 Hashmap-based data obtaining method and apparatus, and computer device and storage medium
CN113835717A (en) * 2020-06-23 2021-12-24 武汉斗鱼鱼乐网络科技有限公司 Installation package obtaining method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101650712A (en) * 2009-08-18 2010-02-17 深圳市科陆电子科技股份有限公司 Generating management method and system of self-defined report
US20130007299A1 (en) * 2011-07-01 2013-01-03 Stoneware, Inc. Method and apparatus for a keep-alive push agent
CN106973332A (en) * 2017-03-10 2017-07-21 武汉斗鱼网络科技有限公司 A kind of barrage message treatment method, analytic method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101650712A (en) * 2009-08-18 2010-02-17 深圳市科陆电子科技股份有限公司 Generating management method and system of self-defined report
US20130007299A1 (en) * 2011-07-01 2013-01-03 Stoneware, Inc. Method and apparatus for a keep-alive push agent
CN106973332A (en) * 2017-03-10 2017-07-21 武汉斗鱼网络科技有限公司 A kind of barrage message treatment method, analytic method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
贾卫峰等: ""基于MVC开发模式的在线学习互动平台设计与实现"", 《软件导刊》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020168751A1 (en) * 2019-02-20 2020-08-27 平安科技(深圳)有限公司 Hashmap-based data obtaining method and apparatus, and computer device and storage medium
CN113835717A (en) * 2020-06-23 2021-12-24 武汉斗鱼鱼乐网络科技有限公司 Installation package obtaining method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN109343968B (en) 2020-09-04

Similar Documents

Publication Publication Date Title
EP3433732A1 (en) Converting visual diagrams into code
CN110525823A (en) A kind of method, apparatus and system that monitoring rubbish is put on by classification
CN109814884A (en) A kind of method and system carrying out resource management according to game resource type
CN109582772A (en) Contract information extracting method, device, computer equipment and storage medium
CN109670081A (en) The method and device of service request processing
CN109343968A (en) A kind of method and relevant apparatus obtaining data
CN107015948A (en) A kind of log information formatting method and system
CN109547234A (en) A kind of data processing, report method, device, equipment and storage medium
CN111126928B (en) Method and device for auditing release content
CN108134812A (en) Data processing method and device
CN104023039B (en) Data pack transmission method and device
CN106850650A (en) The method and client games system of data are accessed for game client
CN111078573A (en) Test message generation method and device
CN113347060B (en) Method, device and system for detecting power network fault based on process automation
CN109918118A (en) A kind of register method and relevant device of service line
CN107800556A (en) Interface generation system, drill through service layer&#39;s device, data transmission method for uplink
CN110598419A (en) Block chain client vulnerability mining method, device, equipment and storage medium
CN110069321A (en) Business containerization operation method, equipment, storage medium and device
CN109617654B (en) Data transmission method and data aggregation analysis device for industrial internet big data service system
CN106201818B (en) A kind of statistical method and device of application program runing time
CN110795169B (en) Method and related device for acquiring data
CN110795168B (en) Method for acquiring data and related device
CN110795098B (en) Method and related device for acquiring data
CN115328457A (en) Method and device for realizing form page based on parameter configuration
CN106407212A (en) Network account category determination method and apparatus, and object clustering method and apparatus

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