A kind of method for customizing of label, system and terminal device
Technical field
The application belongs to a kind of field of computer technology more particularly to method for customizing of label, system and terminal device.
Background technology
Label can be used for classifying to different objects, and user is facilitated quickly to find its required class object.
Can be the contract addition label of each user in client data system, to facilitate the operations such as subsequent lookup, calling;Existing customer
The contractual label of user to the relevant data of contract quantify in data system and abstract processing generates later, right
In the client for having more single contracts, tag system can integrate the data of multiple contracts in certain some dimension, then give more
The client of single contract stamps identical label.Although the addition quantity of label can be reduced by adding this label to client, not
Facilitate administrative staff to carry out screening to the client for meeting specific a certain condition in contract to check.
Invention content
In view of this, the embodiment of the present application provides a kind of method for customizing of label, system and terminal device, it is existing to solve
There is the problem of label that system is added in technology is inconvenient to search a kind of client for meeting actual conditions.
The first aspect of the embodiment of the present application provides a kind of method for customizing of label, the method for customizing packet of the label
It includes:
The label for obtaining user setting customizes condition, wherein the label customization condition includes bookmark name and calculating item
Part;
Condition is customized according to the label calculate and generate the customization label of active user, store the customization label to presetting
Position;
It sends label and customizes completion notice to the user, so that user obtains and the customization according to the customization label
The relevant data of label.
The second aspect of the embodiment of the present application provides a kind of custom-built system of label, the custom-built system packet of the label
It includes:
Acquiring unit, the label for obtaining user setting customize condition, wherein the label customization condition includes label
Title and design conditions;
Computing unit calculates for customizing condition according to the label and generates the customization label of active user, described in storage
Label is customized to predeterminated position;
Transmission unit customizes completion notice to the user, so that user is according to the customization label for sending label
It obtains and the relevant data of the customization label.
The third aspect of the embodiment of the present application provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
It realizes such as the step of any one of the method for customizing of label the method.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, is realized when the computer program is executed by processor as in the method for customizing such as the label
The step of any one the method.
In embodiment provided by the present application, system is first according to the label of the user received customization condition, such as label
Title and design conditions calculate and generate this customization label of the user, are then stored in calculated customization label pre-
If position at, send label customization completion notice arrive the user so that user according to the customization label acquisition with it is described
Customize the relevant data of label.The customization condition inputted according to user during this calculates corresponding customization label, meter
User is notified after the completion of calculating, so that it can directly pass through generation when needing to inquire the related data of a certain characterizing population group
Label is customized to screen crowd.
Description of the drawings
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application
Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation process schematic diagram of the method for customizing for label that the embodiment of the present application one provides;
Fig. 2 is the calculation process schematic diagram for the customization label that another embodiment of the application provides;
Fig. 3 is a kind of schematic diagram of the custom-built system for label that the embodiment of the present application two provides;
Fig. 4 is the schematic diagram for the terminal device that the embodiment of the present application three provides.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as tool of particular system structure, technology etc
Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific
The application can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
In embodiment provided by the present application, system is first according to the label of the user received customization condition, such as label
Title and design conditions calculate and generate this customization label of the user, are then stored in calculated customization label pre-
If position at, send label customization completion notice arrive the user so that user according to the customization label acquisition with it is described
Customize the relevant data of label.
In order to illustrate technical solution described herein, illustrated below by specific embodiment.
Embodiment one:
Fig. 1 shows a kind of implementation process schematic diagram of the method for customizing for label that the embodiment of the present application one provides, and is described in detail
It is as follows:
Step S11 obtains the label customization condition of user setting, wherein the label customization condition includes bookmark name
And design conditions;
In embodiment provided by the present application, when user needs to customize label, sends its label to system and customize condition.Its
In, the label customization condition includes bookmark name and design conditions.
For the various user's contracts stored in client data system, bookmark name includes the bill of lading channel point in a certain year
Title that phase, bill of lading time, bill of lading time and product mix are formed or a certain all products of the year bill of lading etc..
Further, the label that user setting is obtained described in another embodiment provided by the present application customizes condition, packet
It includes:
Show that the label being stored in advance in middle table customizes condition according to user instruction;
Receive and record the label customization condition of user's selection.
In the step, label custom-built system can in advance store the customization condition of label, such as be stored in middle table,
When user specifies new label every time, a middle table can be all created, optional word when for storing user's establishment customization label
Section.For data in former middle table, can be added data to again by hive script modes on the basis of original middle table
In new table.When user needs to customize label, it can directly select it that label is needed to customize condition, label customization from the middle table
After system receives the selection information of user, the selected label of record user customizes condition.
Step S12 customizes the customization label that condition calculates generation active user according to the label, stores the customization mark
It registers predeterminated position;
Condition is customized according to the label of user in embodiment provided by the present application and generates active user's by logical calculated
Customize label.Calculate generate customization label there are predetermined positions, wherein the predeterminated position includes label search data
Library.Optionally, customization label is formed after being also freely combined by having label, at this point, the label customization item that user is inputted
Part includes existing label.
For example, the label customization condition of user is " bill of lading in 2017 " and " overdue ten days ", design conditions are to meet to own
Label customizes condition, then by structured query language (Structured Query Language, SQL) to selected condition
It is parsed, i.e., above-mentioned label customization condition and design conditions read HIVE tables to inquire required field (in newly-generated
Between table and original middle table be stored in the HIVE tables), the field of needs is then selected from query result, is formatted
Generate format is consistent in HBase with conventional tags customization label later, can select, the customization label can by it is digital or/
With letter or/and other characters composition.
Fig. 2 shows the calculation process schematic diagrames for the customization label that another embodiment of the application provides, as shown, system
Middle passed through according to the request of user operation generates query logic SQL, and label is obtained from middle table and customizes the relevant data of condition,
Then the customization label of this user request is calculated, and the relevant information of the customization label generated is stored in tab indexes
In database.Optionally, in the calculating process of customization label, system can be performed simultaneously timed task, to generate conventional tags
Data, conventional tags data are also stored in label search database.
Further, it customizes condition according to the label described in another embodiment provided by the present application and calculates to generate and work as
The customization label of preceding user, including:
Condition is customized by label described in Spark Architecture Analysis, obtains analysis result;
The customization label is generated according to the Analysis result calculation.
To quickly generate label in the step, kafka+spark frameworks can be used, user tag customization request is flowed
Formula processing, analyzes the content that label customization condition input by user includes first, and use is generated in conjunction with the state of already present label
The customization label at family.
Further, in another embodiment provided by the present application it is described according to the Analysis result calculation generate described in
After customizing label, including:
The relevant information of already present label in inquiry tag index data base;
The label value of the customization label is generated according to the relevant information of the already present label.
In the step, when generating label value, if the customization label that tab indexes database is not present and generates is identical
Label then inquires wherein stored number of labels, and by the customization label being currently generated according to already present label
Quantity sequential encoding.Optionally, the customization label generated will be calculated to send and be stored in tab indexes database.
Step S13, send label customization completion notice arrive the user so that user according to the customization label acquisition and
The relevant data of the customization label.
Notice is issued the user in embodiment provided by the present application in the form of mail, it will be customized to inform the user
Label completed with calculating, and be stored in label search database predetermined position, meet customization mark when user needs to inquire
When the data of label, directly inquired by the customization label.
For example, in sales service, the marketing for carrying out certain mode for a certain characterizing population group is needed, needs to use at this time
Crowd is screened to same dimension (marketing number, the marketing mode) label of different angle (time, product).It is needed for this one kind
Ask, in client data system addition customize label function, allow client that can screen existing label to be formed after being freely combined
Meet the various customization labels of their demands.After label generates, you can for screening the crowd met the requirements.
Further, the method for customizing of the label described in another embodiment provided by the present application further includes:
The calculation process for customizing label is added to timed task system;
Calculating and the addition flow of the customization label are periodically executed according to the time interval of user setting.
In implementation provided by the present application when executing the calculation process of customization label, the calculating process of conventional tags as usual into
The calculation process for customizing label is added to conventional tags by row after customizing condition according to the label of user and generating customization label
Calculation process in (timed task system), then according to the time interval of user setting regularly execute customization label calculating
Flow, with timely the data addition of condition is corresponding to customize label to meet.
In embodiment provided by the present application, system is first according to the label of the user received customization condition, such as label
Title and design conditions calculate and generate this customization label of the user, are then stored in calculated customization label pre-
If position at, send label customization completion notice arrive the user so that user according to the customization label acquisition with it is described
Customize the relevant data of label.The customization condition inputted according to user during this calculates corresponding customization label, meter
User is notified after the completion of calculating, so that it can directly pass through generation when needing to inquire the related data of a certain characterizing population group
Label is customized to screen crowd.
Embodiment two:
Corresponding to the method for customizing of the label described in foregoing embodiments, Fig. 3 shows label provided by the embodiments of the present application
The structure diagram of custom-built system illustrate only and the relevant part of the embodiment of the present application for convenience of description.
With reference to Fig. 3, the custom-built system of the label includes:Acquiring unit 31, computing unit 32 and transmission unit 33,
In:
Acquiring unit 31, the label for obtaining user setting customize condition, wherein the label customization condition includes mark
Signature claims and design conditions;
Computing unit 32 stores institute for customizing the customization label that condition calculates generation active user according to the label
Customization label is stated to predeterminated position;
Transmission unit 33 customizes completion notice to the user, so that user marks according to the customization for sending label
Label obtain and the relevant data of the customization label.
Further, the acquiring unit 31, including:
Display module, for showing that the label being stored in advance in middle table customizes condition according to user instruction;
Logging modle, the label for receiving and recording user's selection customize condition.
Further, the computing unit 32, including:
Analysis module obtains analysis result for customizing condition by label described in Spark Architecture Analysis;
Generation module, for generating the customization label according to the Analysis result calculation.
Further, the custom-built system of the label, including:
Query unit, the relevant information for already present label in inquiry tag index data base;It has been deposited according to described
Label relevant information generate it is described customization label label value.
Further, the custom-built system of the label further includes:
Timing calculation unit, for adding the calculation process for customizing label to timed task system;It is set according to user
The time interval set is periodically executed calculating and the addition flow of the customization label.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit
It is fixed.
Embodiment three:
Fig. 4 is the schematic diagram for the terminal device that one embodiment of the application provides.As shown in figure 4, the terminal of the embodiment is set
Standby 4 include:Processor 40, memory 41 and it is stored in the meter that can be run in the memory 41 and on the processor 40
Calculation machine program 42.The processor 40 realizes the method for customizing embodiment of above-mentioned each label when executing the computer program 42
In step, such as step S11 to S13 shown in FIG. 1.Alternatively, reality when the processor 40 executes the computer program 42
Show the function of each module/unit in above-mentioned each device embodiment, such as the function of unit 31 to 33 shown in Fig. 3.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the application.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 42 in the terminal device 4 is described.For example, the computer program 42 can be divided
It is cut into acquiring unit, computing unit, adding device and transmission unit, wherein:
Acquiring unit, the label for obtaining user setting customize condition, wherein the label customization condition includes label
Title and design conditions;
Computing unit calculates for customizing condition according to the label and generates the customization label of active user, described in storage
Label is customized to predeterminated position;
Transmission unit customizes completion notice to the user, so that user is according to the customization label for sending label
It obtains and the relevant data of the customization label.
Further, the acquiring unit, including:
Display module, for showing that the label being stored in advance in middle table customizes condition according to user instruction;
Logging modle, the label for receiving and recording user's selection customize condition.
Further, the computing unit, including:
Analysis module obtains analysis result for customizing condition by label described in Spark Architecture Analysis;
Generation module, for generating the customization label according to the Analysis result calculation.
Further, the custom-built system of the label, including:
Query unit, the relevant information for already present label in inquiry tag index data base;It has been deposited according to described
Label relevant information generate it is described customization label label value.
Further, the custom-built system of the label further includes:
Timing calculation unit, for adding the calculation process for customizing label to timed task system;It is set according to user
The time interval set is periodically executed calculating and the addition flow of the customization label.
The terminal device 4 can be that the calculating such as desktop PC, notebook, palm PC and cloud server are set
It is standby.The terminal device may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4
The only example of terminal device 4 does not constitute the restriction to terminal device 4, may include than illustrating more or fewer portions
Part either combines certain components or different components, such as the terminal device can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as the hard disk of terminal device 4 or interior
It deposits.The memory 41 can also be to be equipped on the External memory equipment of the terminal device 4, such as the terminal device 4
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the terminal device 4
Member also includes External memory equipment.The memory 41 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion
The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used
It, can also be above-mentioned integrated during two or more units are integrated in one unit to be that each unit physically exists alone
The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list
Member, the specific name of module are also only to facilitate mutually distinguish, the protection domain being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as
Multiple units or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device
Or INDIRECT COUPLING or the communication connection of unit, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can be stored in a computer read/write memory medium.Based on this understanding, the application realizes above-mentioned implementation
All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method..Wherein, the computer program includes computer program code, the computer program
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..Computer-readable Jie
Matter may include:Can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk,
Magnetic disc, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to legislation in jurisdiction and the requirement of patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and
Telecommunication signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although with reference to aforementioned reality
Example is applied the application is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each
Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed
Or replace, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all
Within the protection domain of the application.