WO2022257390A1 - Data processing method, server, and storage medium - Google Patents

Data processing method, server, and storage medium Download PDF

Info

Publication number
WO2022257390A1
WO2022257390A1 PCT/CN2021/136011 CN2021136011W WO2022257390A1 WO 2022257390 A1 WO2022257390 A1 WO 2022257390A1 CN 2021136011 W CN2021136011 W CN 2021136011W WO 2022257390 A1 WO2022257390 A1 WO 2022257390A1
Authority
WO
WIPO (PCT)
Prior art keywords
label
tag
configuration information
priority
configuration
Prior art date
Application number
PCT/CN2021/136011
Other languages
French (fr)
Chinese (zh)
Inventor
白乐
尹强
黄山
杨峙岳
刘有
杨永坤
华德义
王和平
徐嘉杨
饶进阳
邸帅
卢道和
Original Assignee
深圳前海微众银行股份有限公司
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 深圳前海微众银行股份有限公司 filed Critical 深圳前海微众银行股份有限公司
Publication of WO2022257390A1 publication Critical patent/WO2022257390A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries

Definitions

  • the present application relates to the field of computer technology, and in particular to a data processing method, server and storage medium.
  • embodiments of the present application provide a data processing method, a server, and a storage medium.
  • the embodiment of the present application provides a data processing method, including:
  • the data storage request carries at least one type of identification and configuration information
  • the above configuration information is used to configure the big data engine.
  • the embodiment of the present application also provides a server, including:
  • a receiving unit configured to receive a data storage request; the data storage request carries at least one type of identification and configuration information;
  • a construction unit configured to construct a first tag based on the at least one type of identifier
  • an allocation unit configured to allocate a first index value to the first tag
  • the storage unit is configured to associate store the first tag and the first index value in a first data table, and associate store the first index value and the configuration information carried in the data storage request in a second table. Two data tables; the configuration information is used to configure the big data engine.
  • An embodiment of the present application also provides a server, including: a processor and a memory configured to store a computer program that can run on the processor, wherein the processor is configured to execute the above data processing when running the computer program method steps.
  • the embodiment of the present application also provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above data processing method are realized.
  • the first index value is assigned to the first tag carried in the received data storage request
  • the first tag and the first index value are associated and stored in the first data table
  • the first index value and the data The configuration information carried in the storage request is associated and stored in the second data table. Therefore, the configuration information of the big data engine is stored by using a first data table (that is, an association table) and a second data table, without setting up multiple association tables, which can reduce the memory resources occupied by the association table. There is no repeated associated data in the table.
  • the configuration information method stored in the related art there is only one associated table in this application, and there are no repeatedly associated configuration items and/or configuration parameters in the associated table, which can avoid A large amount of repeated associated data wastes system resources; the first data table and the second data table are associated through index values, which can reduce the complexity of processing the configuration information of the big data engine and improve processing efficiency.
  • FIG. 1 is a schematic diagram of the implementation flow of the data processing method provided by the embodiment of the present application.
  • FIG. 2 is a schematic diagram of the implementation flow of querying configuration information in the data processing method provided by the embodiment of the present application;
  • FIG. 3 is a schematic diagram of the implementation flow of querying configuration information in the data processing method provided by the application embodiment of the present application;
  • FIG. 4 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a hardware composition structure of a server provided by an embodiment of the present application.
  • a configuration table is used to store the configuration items and configuration parameters corresponding to the configuration items
  • at least two association tables are used to store the configuration information corresponding to all levels.
  • Configuration items are associated with corresponding configuration parameters.
  • the number of association tables increases with the increase in configuration levels. For example, for a three-tier configuration structure, at least two association tables need to be set; for a five-tier configuration structure, at least 4 association tables need to be set; for a 10-layer configuration structure, at least 9 association tables need to be set.
  • the information includes at least user identification, engine information, configuration items and corresponding configuration parameters, and may also include application identification; engine-level configuration information includes at least engine information, configuration items and corresponding configuration parameters; application-level configuration information includes at least application identification , engine information, configuration items and corresponding configuration parameters.
  • a configuration table to store engine-level configuration information, and to configure at least two association tables, one of which is used to store correspondence between user IDs, engine information, configuration items, and configuration parameters.
  • Another association table is used to store the correspondence between engine information, application identifiers, configuration items, and configuration parameters. Therefore, there may be a large number of repeated configuration items and/or configuration parameters in the same association table or between different association tables.
  • a data storage request is received; the data storage request carries the first label and configuration information; the first label is assigned a first index value; the first The tag and the first index value are associated and stored in the first data table, and the first index value and the configuration information included in the data storage request are associated and stored in the second data table; the configuration information is used for Configure the big data engine. Therefore, the configuration information of the big data engine is stored by using a first data table (that is, an association table) and a second data table, without setting up multiple association tables, which can reduce the memory resources occupied by the association table.
  • a first data table that is, an association table
  • the first data table and the second data table are associated through index values, which can reduce the complexity of processing the configuration information of the big data engine and improve the processing efficiency. efficiency.
  • FIG. 1 is a schematic diagram of the implementation flow of the data processing method provided by the embodiment of the present application, wherein the execution body of the flow is a server, such as a server corresponding to a big data platform.
  • the data processing method includes:
  • Step 101 Receive a data storage request; the data storage request carries at least one type of identification and configuration information; wherein the configuration information is used to configure the big data engine.
  • the server receives the data storage request sent by the terminal; the data storage request is used to request storage of configuration information.
  • the data storage request carries at least one type of identification and configuration information; the configuration information is used to configure the big data engine when calling the big data engine to perform data processing tasks.
  • the data processing request may be sent when the terminal initializes the big data engine or the first application, and may also be sent when the user personalizes the big data engine.
  • the first application is an application that needs to call a big data engine to perform data processing tasks.
  • the trigger terminal sends a first data storage request to the server, and the configuration information carried in the first data storage request is the engine corresponding to the big data engine
  • the configuration information of the stage, at least one type of identifier carried in the first data storage request is used to construct the first label of the engine stage.
  • Engine-level configuration information represents the configuration information adopted by the big data engine when no user or application is specified. In actual application, the engine-level configuration information is the default configuration information.
  • the terminal installed with the first application sends a second data storage request to the server, and the configuration information carried in the second data storage request is the big data engine Corresponding application-level configuration information. At least one type of identifier carried in the second data storage request is used to construct the first tag at the application level.
  • the application-level configuration information represents the configuration information used by the corresponding application when calling the big data engine to perform data processing tasks when no user is specified. In actual application, the application-level configuration information is also the default configuration information.
  • the terminal is triggered to send a third data storage request to the server, and the configuration information carried in the third data storage request is corresponding to the big data engine.
  • the user-level configuration information, at least one type of identification carried in the third data storage request is used to construct the user-level first label.
  • User-level configuration information refers to the user's personalized configuration information for the big data engine, which represents the configuration information used when the user triggers the application to call the big data engine to perform data processing tasks in the process of using an application.
  • the categories of the identifiers included in the first tag at the engine level, the first tag at the application level, and the first tag at the user level are at least partially different.
  • the at least one type of identifier includes at least one of the following:
  • the version identifier of the big data engine is the version identifier of the big data engine.
  • the user identifier represents the user identity
  • the application identifier represents the application type. At least one class of identifiers in the first labels of different levels is different.
  • the levels to which the first tags belong are distinguished by different types of identifiers, so that the configuration information corresponding to the first tags of different levels can be conveniently stored.
  • the first tag at the engine level includes the category identifier of the big data engine and the version identifier of the big data engine.
  • the first tag at the application level includes an application identifier, a category identifier of the big data engine, and a version identifier of the big data engine.
  • the first tag at the user level includes a user ID, an application ID, a category ID of the big data engine, and a version ID of the big data engine.
  • the configuration information includes configuration items and configuration parameters corresponding to the configuration items.
  • the configuration parameters corresponding to at least one configuration item in the configuration information corresponding to the first tags of different levels are different.
  • Configuration items include the maximum usage threshold of memory, the maximum number of concurrency, and so on.
  • Step 102 Construct a first label based on the at least one type of identifier.
  • the server determines the corresponding setting tag construction method based on the type and quantity of the obtained identifiers, and uses the determined setting tag construction method to construct the corresponding first tag.
  • the server determines the category identifier as the first label.
  • the server When the server obtains at least two types of identifiers, the server arranges the identifiers of different types according to a set sequence to obtain the corresponding second label.
  • Constructing the first label including:
  • the first label corresponding to the at least two types of identifiers is constructed.
  • the setting label construction method represents the arrangement format of different categories of labels, setting connectors and setting separators.
  • the setting connectors are used to connect different types of identifiers, and the setting separators are used to separate The two identities for the connection.
  • the database stores at least two types of setting correspondences between setting identifiers and setting label construction methods; the database can be a local database or a non-local database, for example, a cloud database.
  • the electronic device carries at least two types of identifiers in the data storage request.
  • the construction method of the setting label corresponding to the identification according to the arrangement format represented by the determined setting label construction method, arrange the obtained at least two types of identifications to obtain at least two types of identifications after sorting; use the determined setting label
  • the setting connector represented by the construction method connects every two types of identifiers in at least two types of identifiers after sorting, and uses the setting separator to separate the two identifiers connected by the setting connector, so as to obtain the first label.
  • At least two types of identifiers may also be arranged according to a set sort order, and adjacent identifiers are connected by a set connector to obtain the first label.
  • the first label may also be set by the user, that is, the data storage request received by the server carries the first label and configuration information.
  • Step 103 Assign a first index value to the first tag.
  • the server When receiving the data storage request, the server assigns a corresponding first index value to the first tag carried in the received data storage request. Wherein, different first labels correspond to different first index values. In actual application, the first index values assigned by the server to different first tags form a set of continuous numbers.
  • Step 104 Store the first tag and the first index value in a first data table, and store the first index value and the configuration information carried in the data storage request in a second data table Table; the configuration information is used to configure the big data engine.
  • the server stores the first data table and the second data table configured according to the setting table structure.
  • the first data table is used to store tags and index values
  • the second data table is used to store index values and configuration information corresponding to tags
  • the first data table and the second data table are associated through the index values of tags.
  • the server When the server assigns the first index value to the first tag, it associates and stores the first tag and the first index value assigned to the first tag in the first data table, and the first tag assigned to the first tag
  • the index value and the configuration information carried in the data storage request are associated and stored in the second data table.
  • the first data table includes at least a first setting field and a second setting field.
  • the first setting field is used to write the index value of the label; the second setting field is used to write the specific content of the label, and the field name of the second field may be label_key_value.
  • the first data table may also include a third setting field and a fourth setting field, the third setting field is used for writing the time when the first data table was created; the fourth setting field is used for writing and updating the first The time of the data table.
  • the second data table includes a fifth setting field and a sixth setting field, the fifth setting field is used for writing the index value of the tag, and the sixth setting field is used for writing configuration information.
  • label_key indicates the labelKey corresponding to the label, that is, the key of the label
  • label_stringvalue indicates the StringValue corresponding to the label, that is, the key value of the label, which is used to identify the specific content of the label.
  • the label_key of the first label may be Combine_UserCreator_EngineType.
  • the label_stringvalue of the first label corresponds to "userA-creatorA, engineA-A".
  • userA represents the user ID
  • creatorA represents the application ID
  • engineA represents the category ID of the big data engine
  • A represents the version ID of the big data engine.
  • a data storage request is received; the data storage request carries the first tag and configuration information; the first tag is assigned a first index value; the first tag and the first index value are associated and stored in the first data table, And associating and storing the first index value and the configuration information included in the data storage request to the second data table; the configuration information is used to configure the big data engine. Therefore, the configuration information of the big data engine is stored through a first data table (that is, an association table) and a second data table (configuration table), without setting up multiple association tables, which can reduce the occupied space of the association table.
  • a first data table that is, an association table
  • a second data table configuration table
  • Memory resources there is no repeated associated data in the associated table, which can avoid a large amount of repeated associated data wasting system resources; the first data table and the second data table are associated through index values, which can reduce the complexity of processing the configuration information of the big data engine degree, improve processing efficiency.
  • the method further includes:
  • the update request is used to request to update the first tag and/or the configuration information
  • the first tag is updated in the first data table and/or the configuration information is updated in the second data table.
  • the user when the user wants to update the configuration information of a certain level, he can modify the configuration information of the big data engine through the set interactive interface, and trigger the terminal to send an update request to the server to request to update the data in the first data table.
  • First label and/or configuration information when the user wants to update the configuration information of a certain level, he can modify the configuration information of the big data engine through the set interactive interface, and trigger the terminal to send an update request to the server to request to update the data in the first data table.
  • First label and/or configuration information First label and/or configuration information.
  • the terminal is triggered to send an update request to the server.
  • the server When the server receives the update request, based on the update request and the first index value in the first data table, update the first tag in the first data table, and/or update the configuration information in the second data table .
  • the specific implementation process is as follows:
  • the server When the server receives the update request, it searches the first data table for a first tag that matches the first tag carried in the update request, and obtains a search result.
  • the first label carried in the update request is not stored in the first data table, and the update request is used to request to update the first label and the second label in the first data table.
  • the configuration information in the data table at this time, the server assigns the first index value to the first tag carried in the update request, and associates and stores the first tag carried in the update request and the first index value assigned to the first tag in the The first data table, so as to update the first label in the first data table.
  • the update request is used to request to update the configuration information in the second data table, and the server determines from the first data table the first tag corresponding to the first tag carried in the update request. index value, and look up the first index value matching the determined first index value from the second data table, and replace the configuration information corresponding to the matching first index value in the second data table with the one carried in the update request configuration information.
  • the update request is used to update the first label in the first data table.
  • the user triggers the update request sent by the terminal to carry the first tag before the change and the first tag after the change.
  • the server receives the update request, it searches the first data table for the first label that matches the first label before the change carried in the update request, and replaces the found first label with the one carried in the update request. The first label after the change.
  • the user when the user's username is changed, and the user has obtained the first index value corresponding to the first label before the change, the user triggers the update request sent by the terminal to carry the first index value and the changed first tab.
  • the server receives the update request, it searches the first data table for the first index value that matches the first index value carried in the update request, and if a matching first index value is found, based on the found For the matched first index value, replace the first tag corresponding to the matched first index value in the first data table with the changed first tag carried in the update request.
  • a first data table that is, association table
  • a second data table configuration table
  • the method also includes:
  • Step 201 Receive a query request for configuration information; the query request carries at least one type of identifier;
  • Step 202 Construct at least one second tag based on at least one type of identifier in the query request
  • Step 203 Find out in the first data table the first index value corresponding to the tag matching each second tag in the at least one second tag;
  • Step 204 Obtain configuration information corresponding to each determined first index value from the second data table
  • Step 205 Based on the obtained configuration information, output a query result about the query request.
  • the server when the server receives the configuration information query request sent by the terminal, based on at least one type of identifier in the query request, the server constructs at least one second tag using a correspondingly set tag construction method.
  • the implementation process of constructing at least one second label by using the correspondingly set label construction method is as follows:
  • the server determines the type of identifier as the second label.
  • the server determines the corresponding identifiers from the database based on the acquired category of each identifier, and based on the first set corresponding relationship and the second set corresponding relationship stored in the database.
  • the set label construction method and using the set label construction method to construct at least one second label corresponding to the obtained at least two types of identifiers.
  • the first setting correspondence represents the setting correspondence between labels and label categories at different setting levels
  • the second setting correspondence represents the setting correspondence between labels at different setting levels and the set label construction method. Determine the corresponding relationship.
  • the server can construct second labels of different levels.
  • the set label construction methods include methods for constructing user-level labels, methods for constructing engine-level labels, and methods for Method for constructing application-level tags;
  • the server can construct a second engine-level tag based on the method used to construct the engine-level tag;
  • the server can construct the engine-level tag Two tags and the second tag at the application level;
  • the server can construct the second tag at the user level, the engine The second tab at the level and the second tab at the application level.
  • the user can use the interactive interface for querying the configuration information of the big data engine in the terminal, input or enter the user name, application ID, category ID and version ID of the big data engine, and trigger the terminal to send a query request to the server.
  • the query request Carry the user ID, application ID, category ID of the big data engine, and version ID of the big data engine.
  • the server When the server receives the query request sent by the terminal, it can The category identification of the engine and the version identification of the big data engine use the correspondingly set label construction method to construct the second label of the user level, the second label of the engine level and the second label of the application level.
  • the first index value corresponding to the label matching the second label is found in the first data table, and the first index value corresponding to each second label is obtained; from the second data table The configuration information corresponding to each first index value is acquired in , and the configuration information corresponding to each second label is obtained.
  • the configuration information corresponding to the second tag is determined as the query result of the query request, and the configuration information corresponding to the first tag is output.
  • the number of constructed second labels is at least two, based on the set priority corresponding to each second label and the configuration information corresponding to each second label, determine the query result about the query request, and Output the query result.
  • the configuration information includes configuration items and configuration parameters corresponding to the configuration items.
  • the server can use the configuration information corresponding to the second label with higher priority, and configure the configuration information corresponding to the same configuration item in the configuration information corresponding to the second label with lower priority Parameters are replaced, and the configuration information after replacement is output.
  • the configuration information corresponding to the second tag with the highest priority is used to configure the configuration corresponding to the second tag with the second highest priority
  • the information is replaced, and the processing result is obtained. Based on the processing result, the configuration information corresponding to the second label with the next priority is replaced, and so on, until the configuration information corresponding to the second label with the lowest priority is replaced. .
  • outputting the query result about the query request refers to sending the query result to the terminal sending the query request.
  • the terminal displays the query result after receiving the query result about the query request sent by the server, so as to modify the user-level configuration information based on the query result;
  • the terminal uses the configuration information in the query result to update the called big data engine after receiving the query result sent by the server.
  • the engine is configured, and the corresponding data processing tasks are performed through the big data engine.
  • the second label is constructed through the identifier carried in the query request of the configuration information, the first index value corresponding to the match with the constructed second label is found from the first data table, and then the The configuration information corresponding to the searched first index value is obtained from the second data table, so that the server can find the corresponding configuration information through the index value corresponding to the second label, and there is no need to query the configuration information through multiple association relationships. Reduce the time consumed for querying configuration information and improve the efficiency of querying configuration information.
  • step 202 at least one second tag is constructed based on at least one type of identifier in the query request, including:
  • the first priority is higher than the second priority; the second priority is higher than the third priority.
  • the query request carries the user identifier, the application identifier, the category identifier of the big data engine, and the version identifier of the big data engine.
  • the server determines the arrangement sequence of the user identifiers and application identifiers carried in the query request according to the corresponding setting priorities of the user identifiers and application identifiers, arranges the user identifiers and application identifiers according to the determined arrangement order, and obtains the third tag .
  • the server determines the arrangement order of the category identifiers and version identifiers of the big data engines carried in the query request according to the set priorities corresponding to the category identifiers and version identifiers of the big data engines, and performs the sorting order of the big data engine according to the determined arrangement order.
  • the category identifier and the version identifier are arranged to obtain a fourth label.
  • the third label and the fourth label are combined according to the set rules to obtain the second label with the first priority, that is, the second label at the user level.
  • the second label with the first priority is "userA-creatorA, engineA-A".
  • the user identification and the application identification in the second label of the first priority are replaced by the first set character to obtain the second label of the second priority; and using The second set character replaces the user identification in the second label of the first priority to obtain the second label of the third priority.
  • Both the first set character and the second set character represent a null value, and the first set character and the second set character may be the same or different. In actual application, both the first setting character and the second setting character are "*".
  • the second label of the first priority is "userA-creatorA, engineA-A”
  • the second label of the second priority is engineA-A
  • the format of the label is (label_key, label_stringvalue).
  • label_key the format of the label.
  • label_stringvalue the format of the label.
  • the labels in each embodiment of the present application involve four types of entities: generic label (GenericLabel), user-application label (UserCreatorLabel), engine category label (EngineTypeLabel), combination label (CombineLabel); UserCreatorLabel, EngineTypeLabel Both GenericLabel and CombineLabel inherit the properties of GenericLabel. in,
  • the first field labelKey a fixed string constant used to identify the label type to which the value belongs;
  • the second field labelValue the label corresponds to the stored map data, the type is Map ⁇ String, String>, the key-value pair information corresponding to the label is stored in the map, and the corresponding value needs to be initialized when the entity class is constructed;
  • the third field value_separator the value connection separator, used to connect the value value in the map
  • the fourth field stringValue used to store the result of connecting value in the map through value_separator, which is also the core value stored in the database.
  • getStringValue() The core method of constructing StringValue. StringValue is connected and constructed according to value_separator and labelValue. The construction sequence is parsed based on the custom annotation ValueSerialNum in the set method of labelKey in the inherited class.
  • Parsing process Obtain all methods of the inherited class through class.getDeclaredMethods --> filter the method through method.isAnnotationPresent(ValueSerialNum.class) of each method to get the annotated method ---> obtain the annotated method
  • setStringValue() The core method of constructing StringValue, the processing logic is similar to that of getStringValue, and will not be described here.
  • labelKey Rewrite field, fixed string constant "userCreator”, mainly used to identify the Label type to which the labelValue belongs;
  • labelValue rewrite field
  • the label corresponds to the stored map data
  • the type is Map ⁇ String, String>
  • the key-value pair stored in the map contains two types, namely ⁇ 'user', value>, ⁇ 'creator ', value>, the corresponding value needs to be initialized and set when the entity class is constructed;
  • setUser() The method of setting the label user, annotated by ValueSerialNum(0), representing the highest priority, used for label key priority analysis in GenericLabel;
  • setCreator() The method for setting the application to which the label belongs, annotated by ValueSerialNum(1), which represents the sub-priority, and is used for label key priority analysis in GenericLabel.
  • default_user represents the value of user when no user is specified.
  • labelKey Rewrite field, fixed string constant "engineType", mainly used to identify the Label type to which the labelValue belongs;
  • labelValue rewrite field
  • the label corresponds to the stored map data
  • the type is Map ⁇ String, String>
  • the key-value pair stored in the map contains two types, namely ⁇ 'engineType', value>, ⁇ 'version ', value>, the corresponding value needs to be initialized and set when the entity class is constructed;
  • setEngine The method of setting the tag engine, annotated by ValueSerialNum(0), representing the highest priority
  • setType The method to set the version of the tag engine, annotated by ValueSerialNum(1), representing the secondary priority.
  • CombineLabel is used to combine and convert UserCreatorLabel and EngineTypeLabel. It is a real label for storage.
  • the core classes and methods are as follows:
  • labelKey Combined LabelKey
  • the content must be the result of sorting the key labelKey of the combined label after certain rules.
  • labelValue map data, used to store the label of the record being combined
  • COMBINED_LABEL_KEY_PREFIX labelKey prefix, used to identify the label type
  • getStringValue() The core method of constructing StringValue; the steps of this method are as follows: parse labelKey priority and sort --> sort labelValue in the same order --> combine labelValue according to the value of LABEL_VALUE_JOIN_SYMBOL --> return StringValue.
  • the priority from high to low is: user level, engine level and application level.
  • the server obtains the setting parameters, and the setting parameters include the value connection separator (value_separator), the prefix of the combined label, the first separator corresponding to the labelKey of the combined label, the second separator corresponding to the labelValue of the combined label, and the setting character.
  • the server constructs a UserCreatorLabel based on the user ID, application ID, and value in the setting parameters in the query request, and connects the delimiter; based on the category ID, version ID of the big data engine in the query request, and the value in the setting parameters, connect the delimiter , to construct an EngineTypeLabel; based on the first delimiter and the second delimiter in the setting parameters, combine the constructed UserCreatorLabel and the constructed EngineTypeLabel to obtain the second label with the first priority.
  • the server constructs the UserCreatorLabel as follows:
  • UserCreatorLabel includes two key-value pairs: ⁇ 'user', userA> and ⁇ 'creator', creatorA>.
  • the server calls the getStringValue method of UserCreatorLabel, connects the separator (value_separator) based on the value included in the setting parameter, and constructs the StringValue of UserCreatorLabel. Since the priority of 'user' is higher than that of 'creator', the StringValue of UserCreatorLabel is userA-creatorA when the value concatenation separator is "-".
  • the labelKey of the constructed UserCreatorLabel is userCreator;
  • the labelValue of the constructed UserCreatorLabel includes: ⁇ 'user', userA> and ⁇ 'creator', creatorA>;
  • the StringValue of the constructed UserCreatorLabel is userA-creatorA.
  • the server creates a new EngineTypeLabel object, calls the setUser() method to set the value of 'engineType' to engineA, and obtains the key-value pair ⁇ 'engineType', engineA>; calls the setUser() method to set the value of 'version' to A, and obtains the key-value pair ⁇ 'version', A>. That is to say, EngineTypeLabel includes two key-value pairs: ⁇ 'engineType', engineA> and ⁇ 'version', A>.
  • the server calls the getStringValue method of the EngineTypeLabel, and connects the separator (value_separator) based on the value included in the setting parameter to construct the StringValue of the EngineTypeLabel. Since the priority of 'engineType' is higher than that of 'version', the stringValue of EngineTypeLabel is engineA-A when the value concatenation delimiter is "-".
  • the server combines the constructed UserCreatorLabel with the constructed EngineTypeLabel to obtain the second label with the first priority.
  • the implementation process is as follows:
  • the server creates a new CombineLabel object, obtains the labelKey of UserCreatorLabel from the constructed UserCreatorLabel, and obtains userCreator; obtains the labelKey of EngineTypeLabel from the constructed EngineTypeLabel, and obtains engineType; obtains it from the setting parameters
  • the constructed UserCreatorLabel and EngineTypeLabel are used as incoming parameters of the combined label. That is to say, the server transfers the constructed UserCreatorLabel's labelKey and the constructed EngineTypeLabel's labelKey to the newly created CombineLabel object, and according to the priorities of UserCreatorLabel and EngineTypeLabel, connect the combinations respectively through the first delimiter corresponding to the labelKey of the combined label.
  • the label prefix, the labelKey of UserCreatorLabel and the labelKey of EngineTypeLabel get the labelKey of the second label with the first priority.
  • the server obtains the stringValue of UserCreatorLabel from the constructed UserCreatorLabel to obtain userA-creatorA; obtains the stringValue of EngineTypeLabel from the constructed EngineTypeLabel to obtain engineA-A, and according to the priority of UserCreatorLabel and EngineTypeLabel, combines the labelValue corresponding to the first
  • the constructed labelKey of the first-priority second label is Combined_UserCreator_EngineType;
  • the constructed labelValue of the first-priority second label includes: ⁇ user-creator, userA-creatorA> and ⁇ engineType-version ,engineA-A>;
  • the constructed stringValue of the first-priority second label is ⁇ userA-creatorA,engineA-A>.
  • the server determines the second tag with the first priority, it replaces both the user ID and the application ID obtained from the query request with the set character "*". Based on the replaced user ID and the replaced application ID, category ID and version ID of the big data engine to construct the second label with the second priority; replace the user ID obtained from the query request with the set ID "*", based on the replaced user ID, application The identifier, the category identifier and the version identifier of the big data engine construct the second label with the third priority.
  • the method of constructing the second tag of the second priority or the third priority is similar to the method of constructing the second tag of the first priority above, please refer to the relevant description above, and will not repeat it here.
  • the server can keep the labelKey of the second label of the first priority unchanged, replace the user ID and application label in the StringValue of the second label of the first priority with the set character "*", and obtain the first For the second label of the second priority, replace the user identifier in the StringValue of the second label of the first priority with the set character "*" to obtain the third label of the second priority.
  • the server determines the first configuration parameter corresponding to each configuration item in the configuration information corresponding to the second label of the first priority as Corresponding to the second configuration parameter corresponding to the configuration item, the configuration information corresponding to the second label of the first priority is output.
  • replacing the configuration information refers to replacing configuration parameters corresponding to the same configuration item.
  • each of the first configuration information is determined as the second configuration parameter corresponding to the corresponding configuration item; and the first configuration information is output.
  • the configuration parameters corresponding to the corresponding configuration items in the configuration information corresponding to the second label of the three priorities are replaced to obtain the second configuration information, and output the second configuration information.
  • the user-level configuration information includes the least number of configuration items.
  • the configuration items included in the engine-level configuration information and the configuration items included in the application-level configuration information may be identical or partially identical.
  • the configuration information of the big data engine corresponding to different users and different applications is different, in this embodiment, based on the configuration items included in the configuration information corresponding to each second tag, and based on the priority corresponding to each second tag, Determine the second configuration parameter corresponding to each configuration item from the first configuration parameters included in the acquired configuration information; output each configuration item and the corresponding second configuration parameter, thus, output the big data engine Configuration information that matches the usage habits or running requirements of the calling object.
  • Fig. 3 shows a schematic diagram of the implementation flow of querying configuration information in the data processing method provided by the application embodiment of the present application.
  • the method for querying configuration information includes:
  • Step 301 Receive a query request for configuration information, the query request carries a user ID, an application ID, a category ID of a big data engine, and a version ID of a big data engine.
  • Step 302 Construct a user-application label based on the user identifier and the application identifier, and construct an engine category label based on the category identifier and the version identifier of the big data engine.
  • the server constructs the UserCreatorLabel based on the user ID and application ID, and constructs the EngineTypeLabel based on the category ID and version ID of the big data engine.
  • the server constructs the UserCreatorLabel based on the user ID and application ID, and constructs the EngineTypeLabel based on the category ID and version ID of the big data engine.
  • the EngineTypeLabel based on the category ID and version ID of the big data engine.
  • Step 303 Combine the constructed user-application tags and engine category tags to obtain a combined tag.
  • the server combines UserCreatorLabel and EngineTypeLabel to obtain a combined label.
  • UserCreatorLabel and EngineTypeLabel to obtain a combined label.
  • EngineTypeLabel For specific implementation, please refer to the above description of combining the third label and the fourth label to obtain the second label with the first priority, which will not be repeated here.
  • Step 304 Find the first index value corresponding to the label matching the combined label in the first data table.
  • step 304 is similar to step 203, please refer to the relevant description in step 203 for the specific implementation process, and will not repeat them here.
  • Step 305 Obtain configuration information corresponding to the determined first index value from the second data table.
  • step 305 is similar to step 204, please refer to the relevant description in step 204 for the specific implementation process, and details are not repeated here.
  • Step 306 Determine whether the priority of the combined tag is the lowest priority.
  • the server judges whether the priority of the combined tag is the lowest priority, and obtains a judgment result. If the judging result indicates that the priority of the combined tag is not the lowest priority, execute step 307 , and if the judging result indicates that the priority of the combined tag is the lowest priority, execute step 308 .
  • Step 307 Use set characters to replace the user ID and application ID, or use set characters to replace the user ID.
  • step 307 when step 307 is executed for the first time, both the user identifier and the application identifier obtained from the query request are replaced with the setting character "*", and steps 302 to 306 are executed again.
  • step 306 If the judgment result obtained by executing step 306 again indicates that the priority of the combined label is not the lowest priority, when step 307 is executed again, the user ID obtained from the query request is replaced with the setting character "*", and the execution is executed again Step 302 to step 306.
  • the big data engine is configured at three levels: user level, engine level, and application level, and the priorities are user level, engine level, and application level in descending order.
  • the server executes steps 302 to 303 for the first time, and the obtained combined tag is a user-level combined tag; the second time it executes steps 302 to 303, the obtained combined tag is an engine-level combined tag, and the third time it executes steps 302 to 303 , the resulting combined tag is an application-level combined tag.
  • Step 308 Based on the acquired configuration information, output a query result about the query request.
  • step 308 requires referring to the above, in the case of constructing the second tag of the first priority, the second tag of the second priority and the second tag of the third priority, based on these three priorities
  • the configuration information corresponding to the second label of the level, and the implementation process of outputting the query result about the query request will not be described here.
  • the embodiment of the present application also provides a server, as shown in Figure 4, the server includes:
  • the receiving unit 41 is configured to receive a data storage request; the data storage request carries at least one type of identification and configuration information;
  • a construction unit 42 configured to construct the first tag based on the at least one type of identifier
  • An assigning unit 43 configured to assign a first index value to the first tag
  • the storage unit 44 is configured to associate store the first tag and the first index value in a first data table, and associate store the first index value and the configuration information carried in the data storage request in a The second data table; the configuration information is used to configure the big data engine.
  • the at least one type of identifier includes at least one of the following:
  • the version identifier of the big data engine is the version identifier of the big data engine.
  • the construction unit 42 is specifically configured as:
  • the first label corresponding to the at least two types of identifiers is constructed.
  • the receiving unit 41 is further configured to receive an update request; the update request is used to request to update the first label and/or the configuration information; the server further includes:
  • An updating unit configured to update the first tag in the first data table and/or update the configuration information in the second data table based on the first index value.
  • the receiving unit 41 is also configured to receive a query request for configuration information; the query request carries at least one type of identification; the server also includes:
  • a construction unit configured to construct at least one second tag based on at least one type of identifier in the query request
  • a query unit configured to find out in the first data table a first index value corresponding to a tag matching each second tag in the at least one second tag;
  • the determining unit is configured to acquire the determined configuration information corresponding to each first index value from the second data table;
  • An output unit configured to output a query result about the query request based on the acquired configuration information.
  • the construction unit is specifically configured as:
  • the configuration information includes at least one configuration item and corresponding configuration parameters; the output unit is specifically configured as:
  • each unit included in the server can be controlled by a processor in the server, such as a central processing unit (CPU, Central Processing Unit), a digital signal processor (DSP, Digital Signal Processor), a micro control unit (MCU, Microcontroller Unit) Or programmable gate array (FPGA, Field-Programmable Gate Array) and other implementations.
  • a processor in the server such as a central processing unit (CPU, Central Processing Unit), a digital signal processor (DSP, Digital Signal Processor), a micro control unit (MCU, Microcontroller Unit) Or programmable gate array (FPGA, Field-Programmable Gate Array) and other implementations.
  • CPU central processing unit
  • DSP Digital Signal Processor
  • MCU Microcontroller Unit
  • FPGA Field-Programmable Gate Array
  • the server provided in the above-mentioned embodiment performs data processing
  • the division of the above-mentioned program modules is used as an example for illustration.
  • the internal structure of the program is divided into different program modules to complete all or part of the processing described above.
  • the server and the data processing method embodiments provided in the above embodiments belong to the same idea, and the specific implementation process thereof is detailed in the method embodiments, and will not be repeated here.
  • Fig. 5 is a schematic diagram of the hardware composition structure of the server of the embodiment of the present application. As shown in Fig. 5, the server 5 includes:
  • Communication interface 51 capable of exchanging information with other devices such as network devices;
  • the processor 52 is connected to the communication interface 51 to implement information interaction with other devices, and is configured to execute the methods provided by one or more of the above technical solutions when running a computer program. Instead, the computer program is stored on the memory 53 .
  • bus system 54 is configured to enable connection communication between these components.
  • bus system 54 also includes a power bus, a control bus and a status signal bus.
  • the various buses are labeled as bus system 54 in FIG. 5 .
  • the memory 53 in the embodiment of the present application is configured to store various types of data to support the operation of the server 5 .
  • Examples of such data include: any computer program for operating on the server 5 .
  • the memory 53 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories.
  • the non-volatile memory can be read-only memory (ROM, Read Only Memory), programmable read-only memory (PROM, Programmable Read-Only Memory), erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory) Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, ferromagnetic random access memory), Flash Memory (Flash Memory), Magnetic Surface Memory , CD, or CD-ROM (Compact Disc Read-Only Memory); magnetic surface storage can be disk storage or tape storage.
  • the volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache.
  • RAM random access memory
  • RAM Random Access Memory
  • many forms of RAM are available, such as Static Random Access Memory (SRAM, Static Random Access Memory), Synchronous Static Random Access Memory (SSRAM, Synchronous Static Random Access Memory), Dynamic Random Access Memory Memory (DRAM, Dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, Synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), Synchronous Link Dynamic Random Access Memory (SLDRAM, Sync Link Dynamic Random Access Memory), Direct Memory Bus Random Access Memory (DRRAM, Direct Rambus Random Access Memory) Memory).
  • SRAM Static Random Access Memory
  • SSRAM Synchronous Static Random Access Memory
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous Dynamic Random Access Memory
  • the methods disclosed in the foregoing embodiments of the present application may be applied to the processor 52 or implemented by the processor 52 .
  • the processor 52 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 52 or instructions in the form of software.
  • the aforementioned processor 52 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like.
  • the processor 52 may implement or execute various methods, steps, and logic block diagrams disclosed in the embodiments of the present application.
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a storage medium, and the storage medium is located in the memory 53, and the processor 52 reads the program in the memory 53, and completes the steps of the foregoing method in combination with its hardware.
  • the processor 52 executes the program, it implements a corresponding process implemented by the terminal in each method of the embodiment of the present application, and details are not repeated here for the sake of brevity.
  • the embodiment of the present application also provides a storage medium, that is, a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory 53 storing a computer program, and the above-mentioned computer program can be processed by the terminal
  • the device 52 is executed to complete the steps described in the foregoing method.
  • the computer-readable storage medium can be memories such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.
  • the disclosed devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division.
  • the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application can be integrated into one processing module, or each unit can be used as a single unit, or two or more units can be integrated into one unit; the above-mentioned integration
  • the unit can be realized in the form of hardware or in the form of hardware plus software functional unit.
  • the term "and/or" in the embodiments of the present application is only an association relationship describing associated objects, which means that there may be three kinds of relationships, for example, A and/or B, which may mean that A exists alone , both A and B exist, and B exists alone.
  • the term "at least one" herein means any combination of any one or more of at least two of a plurality, for example, including at least one of A, B, and C, which may mean including from A, Any one or more elements selected from the set formed by B and C.

Abstract

Provided in the embodiments of the present application are a data processing method, a server, and a storage medium. The data processing method comprises: a server receiving a data storage request, wherein the data storage request carries at least one type of identifier and configuration information; on the basis of the at least one type of identifier, constructing a first label; allocating a first index value to the first label; and storing, in a first data table and in an associated manner, the first label and the first index value, and storing, in a second data table and in an associated manner, the first index value and the configuration information carried in the data storage request, wherein the configuration information is used for configuring a big data engine.

Description

数据处理方法、服务器及存储介质Data processing method, server and storage medium
相关申请的交叉引用Cross References to Related Applications
本申请基于申请号为202110653633.2,申请日为2021年06月11日的中国专利申请提出,并要求上述中国专利申请的优先权,上述中国专利申请的全部内容在此引入本申请作为参考。This application is based on a Chinese patent application with application number 202110653633.2 and a filing date of June 11, 2021, and claims the priority of the above-mentioned Chinese patent application. The entire content of the above-mentioned Chinese patent application is hereby incorporated by reference into this application.
技术领域technical field
本申请涉及计算机技术领域,具体涉及一种数据处理方法、服务器及存储介质。The present application relates to the field of computer technology, and in particular to a data processing method, server and storage medium.
背景技术Background technique
随着计算机技术的发展,越来越多的技术(例如,大数据等)应用在金融领域,传统金融业正在逐步向金融科技转变,然而,由于金融行业的安全性、实时性要求,金融科技也对技术提出了更高的要求。金融科技领域下,在对大数据引擎进行多层分级配置时,存在不同层级的配置信息,相关技术中,通过至少两张关联表,将所有层级对应的配置项和对应的配置参数关联起来,但至少两张关联表之间存在大量重复的数据,例如,配置项和/或配置参数,导致内存浪费。With the development of computer technology, more and more technologies (for example, big data, etc.) are applied in the financial field, and the traditional financial industry is gradually transforming into financial technology. It also puts forward higher requirements for technology. In the field of financial technology, there are different levels of configuration information in the multi-level configuration of big data engines. In related technologies, at least two association tables are used to associate configuration items corresponding to all levels with corresponding configuration parameters. However, there is a large amount of duplicate data between at least two associated tables, for example, configuration items and/or configuration parameters, resulting in waste of memory.
发明内容Contents of the invention
为解决相关技术问题,本申请实施例提供了一种数据处理方法、服务器及存储介质。In order to solve related technical problems, embodiments of the present application provide a data processing method, a server, and a storage medium.
本申请实施例提供了一种数据处理方法,包括:The embodiment of the present application provides a data processing method, including:
接收数据存储请求;所述数据存储请求中携带至少一类标识和配置信息;Receive a data storage request; the data storage request carries at least one type of identification and configuration information;
基于所述至少一类标识,构造出第一标签;Constructing a first tag based on the at least one type of identifier;
为所述第一标签分配第一索引值;assigning a first index value to the first tag;
将所述第一标签和所述第一索引值关联存储至第一数据表,以及将所述第一索引值和所述数据存储请求中携带的配置信息,关联存储至第二数据表;所述配置信息用于配置大数据引擎。storing the first tag and the first index value in a first data table associatively, and storing the first index value and the configuration information carried in the data storage request in a second data table in association; The above configuration information is used to configure the big data engine.
本申请实施例还提供了一种服务器,包括:The embodiment of the present application also provides a server, including:
接收单元,用于接收数据存储请求;所述数据存储请求中携带至少一类标识和配置信息;A receiving unit, configured to receive a data storage request; the data storage request carries at least one type of identification and configuration information;
构建单元,配置为基于所述至少一类标识,构造出第一标签;a construction unit configured to construct a first tag based on the at least one type of identifier;
分配单元,配置为为所述第一标签分配第一索引值;an allocation unit configured to allocate a first index value to the first tag;
存储单元,配置为将所述第一标签和所述第一索引值关联存储至第一数据表,以及将所述第一索引值和所述数据存储请求中携带的配置信息,关联存储至第二数据表;所述配置信息用于配置大数据引擎。The storage unit is configured to associate store the first tag and the first index value in a first data table, and associate store the first index value and the configuration information carried in the data storage request in a second table. Two data tables; the configuration information is used to configure the big data engine.
本申请实施例还提供了一种服务器,包括:处理器和配置为存储能够在处理器上运行的计算机程序的存储器,其中,所述处理器配置为运行所述计算机程序时, 执行上述数据处理方法的步骤。An embodiment of the present application also provides a server, including: a processor and a memory configured to store a computer program that can run on the processor, wherein the processor is configured to execute the above data processing when running the computer program method steps.
本申请实施例还提供了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述数据处理方法的步骤。The embodiment of the present application also provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above data processing method are realized.
本申请实施例中,为接收到的数据存储请求中携带的第一标签分配第一索引值,将第一标签和第一索引值关联存储至第一数据表,以及将第一索引值和数据存储请求中携带的配置信息,关联存储至第二数据表。由此,通过一张第一数据表(即,关联表)和一张第二数据表来存储大数据引擎的配置信息,不需要设置多张关联表,可以减少关联表占用的内存资源,关联表中不存在重复的关联数据,相对于相关技术中存储的配置信息方法而言,本申请中只有一张关联表,且关联表中不存在重复关联的配置项和/或配置参数,可以避免大量重复的关联数据浪费系统资源;第一数据表和第二数据表通过索引值进行关联,可以降低处理大数据引擎的配置信息的复杂度,提高处理效率。In the embodiment of the present application, the first index value is assigned to the first tag carried in the received data storage request, the first tag and the first index value are associated and stored in the first data table, and the first index value and the data The configuration information carried in the storage request is associated and stored in the second data table. Therefore, the configuration information of the big data engine is stored by using a first data table (that is, an association table) and a second data table, without setting up multiple association tables, which can reduce the memory resources occupied by the association table. There is no repeated associated data in the table. Compared with the configuration information method stored in the related art, there is only one associated table in this application, and there are no repeatedly associated configuration items and/or configuration parameters in the associated table, which can avoid A large amount of repeated associated data wastes system resources; the first data table and the second data table are associated through index values, which can reduce the complexity of processing the configuration information of the big data engine and improve processing efficiency.
附图说明Description of drawings
图1为本申请实施例提供的数据处理方法的实现流程示意图;FIG. 1 is a schematic diagram of the implementation flow of the data processing method provided by the embodiment of the present application;
图2为本申请实施例提供的数据处理方法中查询配置信息的实现流程示意图;FIG. 2 is a schematic diagram of the implementation flow of querying configuration information in the data processing method provided by the embodiment of the present application;
图3为本申请应用实施例提供的数据处理方法中查询配置信息的实现流程示意图;FIG. 3 is a schematic diagram of the implementation flow of querying configuration information in the data processing method provided by the application embodiment of the present application;
图4为本申请实施例提供的服务器的结构示意图;FIG. 4 is a schematic structural diagram of a server provided by an embodiment of the present application;
图5为本申请实施例提供的服务器的硬件组成结构示意图。FIG. 5 is a schematic diagram of a hardware composition structure of a server provided by an embodiment of the present application.
具体实施方式Detailed ways
在对大数据引擎进行多层级配置时,存在不同层级的配置信息,相关技术中,通过一张配置表存储配置项以及配置项对应的配置参数,通过至少两张关联表,将所有层级对应的配置项和对应的配置参数关联起来。将所有层级对应的配置项和对应的配置参数关联起来,然而,关联表的数量随着配置层级的增多而增多,例如,对于三层配置结构,最少需要设置两张关联表;对于5层配置结构,最少需要设置4张关联表;对于10层配置结构,至少需要设置9张关联表。当配置层级较多时,导致以下问题:In the multi-level configuration of the big data engine, there are different levels of configuration information. In related technologies, a configuration table is used to store the configuration items and configuration parameters corresponding to the configuration items, and at least two association tables are used to store the configuration information corresponding to all levels. Configuration items are associated with corresponding configuration parameters. Associate the configuration items corresponding to all levels with the corresponding configuration parameters. However, the number of association tables increases with the increase in configuration levels. For example, for a three-tier configuration structure, at least two association tables need to be set; for a five-tier configuration structure, at least 4 association tables need to be set; for a 10-layer configuration structure, at least 9 association tables need to be set. When there are many configuration levels, the following problems are caused:
1、占用系统资源较多:关联表中过多的关联关系占用了较大的存储空间,大量重复的数据导致资源浪费;1. Occupies a lot of system resources: too many association relationships in the association table occupy a large storage space, and a large amount of repeated data leads to waste of resources;
2、管理复杂:过多的关联关系导致在对大数据引擎的配置信息进行存储、更新和查询等处理时,操作过于繁琐;2. Complicated management: Too many associations lead to cumbersome operations when storing, updating, and querying the configuration information of the big data engine;
3、拓展性差:在增加层级或者拓展某一层级的配置项的数量时,需要在所有关联表中构建新的关联关系,无法实现动态拓展。3. Poor expandability: When increasing levels or expanding the number of configuration items at a certain level, new association relationships need to be constructed in all association tables, and dynamic expansion cannot be achieved.
例如,在对大数据引擎进行“用户级-引擎级-应用级”的三级配置的情况下,需要保存用户级的配置信息、引擎级的配置信息和应用级的配置信息,用户级的配置信息至少包括用户标识、引擎信息、配置项和对应的配置参数,还可以包括应用标识;引擎级的配置信息至少包括引擎信息、配置项和对应的配置参数;应用级的配置信息至少包括应用标识、引擎信息、配置项和对应的配置参数。For example, in the case of a three-level configuration of "user level-engine level-application level" for a big data engine, it is necessary to save user-level configuration information, engine-level configuration information, and application-level configuration information. The information includes at least user identification, engine information, configuration items and corresponding configuration parameters, and may also include application identification; engine-level configuration information includes at least engine information, configuration items and corresponding configuration parameters; application-level configuration information includes at least application identification , engine information, configuration items and corresponding configuration parameters.
相关技术中,需要配置一张配置表存储引擎级的配置信息,以及配置至少两张关联表,其中一张关联表用于存储用户标识、引擎信息、配置项和配置参数之间的对应关系、另一张关联表用于存储引擎信息、应用标识、配置项和配置参数之间的对应关系。由此,不管是同一张关联表中,还是不同的关联表之间均可能存在大量重复的配置项和/或配置 参数。In related technologies, it is necessary to configure a configuration table to store engine-level configuration information, and to configure at least two association tables, one of which is used to store correspondence between user IDs, engine information, configuration items, and configuration parameters. Another association table is used to store the correspondence between engine information, application identifiers, configuration items, and configuration parameters. Therefore, there may be a large number of repeated configuration items and/or configuration parameters in the same association table or between different association tables.
为了解决上述技术问题,在本申请的实施例中,接收数据存储请求;所述数据存储请求中携带第一标签和配置信息;为所述第一标签分配第一索引值;将所述第一标签和所述第一索引值关联存储至第一数据表,以及将所述第一索引值和所述数据存储请求中包括的配置信息,关联存储至第二数据表;所述配置信息用于配置大数据引擎。由此,通过一张第一数据表(即,关联表)和一张第二数据表来存储大数据引擎的配置信息,不需要设置多张关联表,可以减少关联表占用的内存资源,关联表中不存在重复的关联数据,可以避免大量重复的关联数据浪费系统资源;第一数据表和第二数据表通过索引值进行关联,可以降低处理大数据引擎的配置信息的复杂度,提高处理效率。In order to solve the above technical problems, in the embodiment of the present application, a data storage request is received; the data storage request carries the first label and configuration information; the first label is assigned a first index value; the first The tag and the first index value are associated and stored in the first data table, and the first index value and the configuration information included in the data storage request are associated and stored in the second data table; the configuration information is used for Configure the big data engine. Therefore, the configuration information of the big data engine is stored by using a first data table (that is, an association table) and a second data table, without setting up multiple association tables, which can reduce the memory resources occupied by the association table. There is no repeated associated data in the table, which can avoid a large amount of repeated associated data from wasting system resources; the first data table and the second data table are associated through index values, which can reduce the complexity of processing the configuration information of the big data engine and improve the processing efficiency. efficiency.
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
图1为本申请实施例提供的数据处理方法的实现流程示意图,其中,流程的执行主体为服务器,例如大数据平台对应的服务器。如图1示出的,数据处理方法包括:FIG. 1 is a schematic diagram of the implementation flow of the data processing method provided by the embodiment of the present application, wherein the execution body of the flow is a server, such as a server corresponding to a big data platform. As shown in Figure 1, the data processing method includes:
步骤101:接收数据存储请求;所述数据存储请求中携带至少一类标识和配置信息;其中,所述配置信息用于配置大数据引擎。Step 101: Receive a data storage request; the data storage request carries at least one type of identification and configuration information; wherein the configuration information is used to configure the big data engine.
服务器接收终端发送的数据存储请求;数据存储请求用于请求存储配置信息。数据存储请求中携带至少一类标识和配置信息;配置信息用于在调用大数据引擎执行数据处理任务时配置大数据引擎。其中,数据处理请求可以是在终端对大数据引擎或第一应用进行初始化的场景下发送,也可以是用户对大数据引擎进行个性化设置的场景下发送。第一应用为需要调用大数据引擎执行数据处理任务的应用。The server receives the data storage request sent by the terminal; the data storage request is used to request storage of configuration information. The data storage request carries at least one type of identification and configuration information; the configuration information is used to configure the big data engine when calling the big data engine to perform data processing tasks. Wherein, the data processing request may be sent when the terminal initializes the big data engine or the first application, and may also be sent when the user personalizes the big data engine. The first application is an application that needs to call a big data engine to perform data processing tasks.
示例性地,在用户通过设定的交互界面对大数据引擎进行初始化的场景下,触发终端向服务器发送第一数据存储请求,第一数据存储请求中携带的配置信息为大数据引擎对应的引擎级的配置信息,第一数据存储请求中携带的至少一类标识用于构造引擎级的第一标签。引擎级的配置信息表征在未指定用户和应用的情况下,大数据引擎采用的配置信息。实际应用时,引擎级的配置信息为默认的配置信息。Exemplarily, in the scenario where the user initializes the big data engine through the set interactive interface, the trigger terminal sends a first data storage request to the server, and the configuration information carried in the first data storage request is the engine corresponding to the big data engine The configuration information of the stage, at least one type of identifier carried in the first data storage request is used to construct the first label of the engine stage. Engine-level configuration information represents the configuration information adopted by the big data engine when no user or application is specified. In actual application, the engine-level configuration information is the default configuration information.
示例性地,在用户通过设定操作对第一应用进行初始化的场景下,安装有第一应用的终端向服务器发送第二数据存储请求,第二数据存储请求中携带的配置信息为大数据引擎对应的应用级的配置信息。第二数据存储请求中携带的至少一类标识用于构造应用级的第一标签。应用级的配置信息表征在未指定用户的情况下,对应应用在调用大数据引擎执行数据处理任务时,所采用的配置信息。实际应用时,应用级的配置信息也是默认的配置信息。For example, in the scenario where the user initializes the first application through a setting operation, the terminal installed with the first application sends a second data storage request to the server, and the configuration information carried in the second data storage request is the big data engine Corresponding application-level configuration information. At least one type of identifier carried in the second data storage request is used to construct the first tag at the application level. The application-level configuration information represents the configuration information used by the corresponding application when calling the big data engine to perform data processing tasks when no user is specified. In actual application, the application-level configuration information is also the default configuration information.
示例性地,在用户通过设定的交互界面对大数据引擎进行个性化配置的场景下,触发终端向服务器发送第三数据存储请求,第三数据存储请求中携带的配置信息为大数据引擎对应的用户级的配置信息,第三数据存储请求中携带的至少一类标识用于构造用户级的第一标签。用户级的配置信息是指用户对大数据引擎的个性化配置信息,表征用户在使用某个应用的过程中,触发该应用调用大数据引擎执行数据处理任务时所采用的配置信息。需要说明的是,引擎级的第一标签、应用级的第一标签以及用户级的第一标签中所包括标识的类别至少有部分不同。在一些实施例中,所述至少一类标识包括以下至少之一:Exemplarily, in the scenario where the user performs personalized configuration on the big data engine through the set interactive interface, the terminal is triggered to send a third data storage request to the server, and the configuration information carried in the third data storage request is corresponding to the big data engine. The user-level configuration information, at least one type of identification carried in the third data storage request is used to construct the user-level first label. User-level configuration information refers to the user's personalized configuration information for the big data engine, which represents the configuration information used when the user triggers the application to call the big data engine to perform data processing tasks in the process of using an application. It should be noted that the categories of the identifiers included in the first tag at the engine level, the first tag at the application level, and the first tag at the user level are at least partially different. In some embodiments, the at least one type of identifier includes at least one of the following:
用户标识;User ID;
应用标识;application identification;
大数据引擎的类别标识;Category identification of the big data engine;
大数据引擎的版本标识。The version identifier of the big data engine.
这里,用户标识表征用户身份,应用标识表征应用类型。不同层级的第一标签中至少有一类标识不同。Here, the user identifier represents the user identity, and the application identifier represents the application type. At least one class of identifiers in the first labels of different levels is different.
本实施例中,通过不同类别的标识来区分第一标签所属的层级,从而可以便捷地存储不同层级的第一标签对应的配置信息。In this embodiment, the levels to which the first tags belong are distinguished by different types of identifiers, so that the configuration information corresponding to the first tags of different levels can be conveniently stored.
实际应用时,引擎级的第一标签包括大数据引擎的类别标识和大数据引擎的版本标识。应用级的第一标签包括应用标识、大数据引擎的类别标识和大数据引擎的版本标识。用户级的第一标签包括用户标识、应用标识、大数据引擎的类别标识和大数据引擎的版本标识。In actual application, the first tag at the engine level includes the category identifier of the big data engine and the version identifier of the big data engine. The first tag at the application level includes an application identifier, a category identifier of the big data engine, and a version identifier of the big data engine. The first tag at the user level includes a user ID, an application ID, a category ID of the big data engine, and a version ID of the big data engine.
在实际应用中,配置信息包括配置项和配置项对应的配置参数。不同层级的第一标签对应的配置信息中至少一项配置项对应的配置参数不同。配置项包括内存的最大使用阈值、最大并发数等。In practical applications, the configuration information includes configuration items and configuration parameters corresponding to the configuration items. The configuration parameters corresponding to at least one configuration item in the configuration information corresponding to the first tags of different levels are different. Configuration items include the maximum usage threshold of memory, the maximum number of concurrency, and so on.
步骤102:基于所述至少一类标识,构造出第一标签。Step 102: Construct a first label based on the at least one type of identifier.
考虑到在存储配置信息的阶段,第一标签和配置信息是一一对应的,并且第一标签只能是其中一种设定层级的标签,例如,第一标签为引擎级的标签、应用级的标签或用户级的标签,因此,服务器基于获取到的标识的类别和数量,确定出对应的设定标签构造方法,并采用确定出的设定标签构造方法,构造出对应的第一标签。其中,Considering that at the stage of storing configuration information, the first label and configuration information have a one-to-one correspondence, and the first label can only be a label of one of the setting levels, for example, the first label is an engine-level label, an application-level tags or user-level tags, therefore, the server determines the corresponding setting tag construction method based on the type and quantity of the obtained identifiers, and uses the determined setting tag construction method to construct the corresponding first tag. in,
服务器在获取到一类标识的情况下,服务器将该类标识确定为第一标签。When the server obtains a category identifier, the server determines the category identifier as the first label.
服务器在获取到至少两类标识的情况下,将不同类别的标识按照设定的排列顺序进行排列,得到对应的第二标签。When the server obtains at least two types of identifiers, the server arranges the identifiers of different types according to a set sequence to obtain the corresponding second label.
在数据存储请求中携带至少两类标识的情况下,为了统一第一标签的格式,从而便于管理第一标签和对应的配置信息,在一些实施例中,所述基于所述至少一类标识,构造出所述第一标签,包括:In the case where at least two types of identifiers are carried in the data storage request, in order to unify the format of the first label so as to facilitate the management of the first label and corresponding configuration information, in some embodiments, based on the at least one type of identification, Constructing the first label, including:
基于至少两类设定标识与设定标签构造方法之间的设定对应关系,确定出所述数据存储请求中携带的至少两类标识对应的设定标签构造方法;Based on the setting correspondence between the at least two types of setting identifiers and the setting tag construction method, determine the setting tag construction method corresponding to the at least two types of identifiers carried in the data storage request;
按照确定出的设定标签构造方法,构造出所述至少两类标识对应的第一标签。According to the determined set label construction method, the first label corresponding to the at least two types of identifiers is constructed.
这里,设定标签构造方法表征不同类别的标签的排列格式、设定连接符和设定分隔符,设定连接符用于连接不同类别的标识,设定分隔符用于分隔采用设定连接符连接的两个标识。数据库中存储有至少两类设定标识与设定标签构造方法之间的设定对应关系;该数据库可以是本地数据库,也可以是非本地数据库,例如,云端数据库。Here, the setting label construction method represents the arrangement format of different categories of labels, setting connectors and setting separators. The setting connectors are used to connect different types of identifiers, and the setting separators are used to separate The two identities for the connection. The database stores at least two types of setting correspondences between setting identifiers and setting label construction methods; the database can be a local database or a non-local database, for example, a cloud database.
电子设备在数据存储请求中携带至少两类标识,情况下,基于数据库中存储的至少两类设定标识类别与设定标签构造方法之间的设定对应关系,确定出获取到的至少两类标识对应的设定标签构造方法;按照确定出的设定标签构造方法表征的排列格式,对获取到的至少两类标识进行排列,得到排序后的至少两类标识;采用确定出的设定标签构造方法表征的设定连接符,连接排序后的至少两类标识中每两类标识,并采用设定分隔符,来分隔采用设定连接符连接的两个标识,从而得到第一标签。The electronic device carries at least two types of identifiers in the data storage request. In this case, based on the setting correspondence between the at least two types of set identifier categories stored in the database and the set label construction method, determine the obtained at least two types of identifiers. The construction method of the setting label corresponding to the identification; according to the arrangement format represented by the determined setting label construction method, arrange the obtained at least two types of identifications to obtain at least two types of identifications after sorting; use the determined setting label The setting connector represented by the construction method connects every two types of identifiers in at least two types of identifiers after sorting, and uses the setting separator to separate the two identifiers connected by the setting connector, so as to obtain the first label.
需要说明的是,在一些实施例中,也可以将至少两类标识按照设定的排序顺序进行排列,并采用设定连接符连接相邻的标识,得到第一标签。当然,第一标签还可以是用户设置的,也就是说,服务器接收到的数据存储请求中携带第一标签和配置信息。It should be noted that, in some embodiments, at least two types of identifiers may also be arranged according to a set sort order, and adjacent identifiers are connected by a set connector to obtain the first label. Of course, the first label may also be set by the user, that is, the data storage request received by the server carries the first label and configuration information.
步骤103:为所述第一标签分配第一索引值。Step 103: Assign a first index value to the first tag.
服务器在接收到数据存储请求的情况下,为接收到的数据存储请求中携带的第一标签分配对应的第一索引值。其中,不同的第一标签对应的第一索引值不同。实际应用时,服务器为不同的第一标签分配的第一索引值构成一组连续的数字。When receiving the data storage request, the server assigns a corresponding first index value to the first tag carried in the received data storage request. Wherein, different first labels correspond to different first index values. In actual application, the first index values assigned by the server to different first tags form a set of continuous numbers.
步骤104:将所述第一标签和所述第一索引值关联存储至第一数据表,以及将所述第一索引值和所述数据存储请求中携带的配置信息,关联存储至第二数据表;所述配置 信息用于配置大数据引擎。Step 104: Store the first tag and the first index value in a first data table, and store the first index value and the configuration information carried in the data storage request in a second data table Table; the configuration information is used to configure the big data engine.
这里,服务器中存储有按照设定表结构设置的第一数据表和第二数据表。第一数据表用于存储标签和索引值,第二数据表用于存储标签对应的索引值和配置信息,第一数据表和第二数据表通过标签的索引值进行关联。Here, the server stores the first data table and the second data table configured according to the setting table structure. The first data table is used to store tags and index values, the second data table is used to store index values and configuration information corresponding to tags, and the first data table and the second data table are associated through the index values of tags.
服务器在为第一标签分配了第一索引值的情况下,将第一标签和为第一标签分配的第一索引值关联存储至第一数据表中,以及将为第一标签分配的第一索引值和数据存储请求中携带的配置信息,关联存储至第二数据表。When the server assigns the first index value to the first tag, it associates and stores the first tag and the first index value assigned to the first tag in the first data table, and the first tag assigned to the first tag The index value and the configuration information carried in the data storage request are associated and stored in the second data table.
实际应用时,第一数据表至少包括第一设定字段和第二设定字段。第一设定字段用于写入标签的索引值;第二设定字段用于写入标签的具体内容,第二字段的字段名可以是label_key_value。当然,第一数据表还可以包括第三设定字段和第四设定字段,第三设定字段用于写入创建第一数据表的时间;第四设定字段用于写入更新第一数据表的时间。第二数据表包括第五设定字段和第六设定字段,第五设定字段用于写入标签的索引值,第六设定字段用于写入配置信息。In actual application, the first data table includes at least a first setting field and a second setting field. The first setting field is used to write the index value of the label; the second setting field is used to write the specific content of the label, and the field name of the second field may be label_key_value. Of course, the first data table may also include a third setting field and a fourth setting field, the third setting field is used for writing the time when the first data table was created; the fourth setting field is used for writing and updating the first The time of the data table. The second data table includes a fifth setting field and a sixth setting field, the fifth setting field is used for writing the index value of the tag, and the sixth setting field is used for writing configuration information.
在实际应用中,第二字段的字段值的格式为(label_key,label_stringvalue)。label_key表示label对应的labelKey,即,标签的键;label_stringvalue表示label对应的StringValue,即标签的键值,用于标识标签的具体内容。In practical applications, the format of the field value of the second field is (label_key, label_stringvalue). label_key indicates the labelKey corresponding to the label, that is, the key of the label; label_stringvalue indicates the StringValue corresponding to the label, that is, the key value of the label, which is used to identify the specific content of the label.
示例性地,第一标签的label_key可以是Combine_UserCreator_EngineType。当用户A对应用A下版本号为A的大数据引擎A进行配置时,第一标签的label_stringvalue对应为“userA-creatorA,engineA-A”。userA表征用户标识,creatorA表征应用标识,engineA表征大数据引擎的类别标识,A表征大数据引擎的版本标识。Exemplarily, the label_key of the first label may be Combine_UserCreator_EngineType. When user A configures big data engine A with version A under application A, the label_stringvalue of the first label corresponds to "userA-creatorA, engineA-A". userA represents the user ID, creatorA represents the application ID, engineA represents the category ID of the big data engine, and A represents the version ID of the big data engine.
在本实施例中,接收数据存储请求;数据存储请求中携带第一标签和配置信息;为第一标签分配第一索引值;将第一标签和第一索引值关联存储至第一数据表,以及将第一索引值和数据存储请求中包括的配置信息,关联存储至第二数据表;配置信息用于配置大数据引擎。由此,通过一张第一数据表(即,关联表)和一张第二数据表(配置表)来存储大数据引擎的配置信息,不需要设置多张关联表,可以减少关联表占用的内存资源,关联表中不存在重复的关联数据,可以避免大量重复的关联数据浪费系统资源;第一数据表和第二数据表通过索引值进行关联,可以降低处理大数据引擎的配置信息的复杂度,提高处理效率。In this embodiment, a data storage request is received; the data storage request carries the first tag and configuration information; the first tag is assigned a first index value; the first tag and the first index value are associated and stored in the first data table, And associating and storing the first index value and the configuration information included in the data storage request to the second data table; the configuration information is used to configure the big data engine. Therefore, the configuration information of the big data engine is stored through a first data table (that is, an association table) and a second data table (configuration table), without setting up multiple association tables, which can reduce the occupied space of the association table. Memory resources, there is no repeated associated data in the associated table, which can avoid a large amount of repeated associated data wasting system resources; the first data table and the second data table are associated through index values, which can reduce the complexity of processing the configuration information of the big data engine degree, improve processing efficiency.
考虑到在对大数据引擎进行多层级配置的应用场景下,一些层级的配置信息是不可修改的,例如默认的配置信息,一些层级的配置信息是允许修改的,例如个性化的配置信息,为了更好地满足用户修改配置信息的需求,在一些实施例中,在将第一标签和第一索引值关联存储至第一数据表,以及将第一标签对应的第一索引值和配置信息关联存储至第二数据表的基础上,所述方法还包括:Considering that in the application scenario of multi-level configuration of the big data engine, some levels of configuration information cannot be modified, such as the default configuration information, and some levels of configuration information are allowed to be modified, such as personalized configuration information. To better meet the needs of users to modify configuration information, in some embodiments, after storing the first label and the first index value in the first data table, and associating the first index value corresponding to the first label with the configuration information On the basis of storing to the second data table, the method further includes:
接收更新请求;所述更新请求用于请求更新所述第一标签和/或所述配置信息;receiving an update request; the update request is used to request to update the first tag and/or the configuration information;
基于所述第一索引值,在所述第一数据表中更新所述第一标签和/或在所述第二数据表中更新所述配置信息。Based on the first index value, the first tag is updated in the first data table and/or the configuration information is updated in the second data table.
这里,用户在想要更新某个层级的配置信息的情况下,可以通过设定的交互界面修改大数据引擎的配置信息,并触发终端向服务器发送更新请求,以请求更新第一数据表中的第一标签和/或配置信息。Here, when the user wants to update the configuration information of a certain level, he can modify the configuration information of the big data engine through the set interactive interface, and trigger the terminal to send an update request to the server to request to update the data in the first data table. First label and/or configuration information.
示例性地,在用户通过设定的交互界面修改大数据引擎的个性化配置的场景下,触发终端向服务器发送更新请求。Exemplarily, in the scenario where the user modifies the personalized configuration of the big data engine through the set interactive interface, the terminal is triggered to send an update request to the server.
服务器在接收到更新请求的情况下,基于该更新请求和第一数据表中的第一索引值,在第一数据表中更新第一标签,和/或,在第二数据表中更新配置信息。具体实现过程如下:When the server receives the update request, based on the update request and the first index value in the first data table, update the first tag in the first data table, and/or update the configuration information in the second data table . The specific implementation process is as follows:
服务器在接收到更新请求的情况下,从第一数据表中查找与更新请求中携带的第一标签匹配的第一标签,得到查找结果。When the server receives the update request, it searches the first data table for a first tag that matches the first tag carried in the update request, and obtains a search result.
在查找结果表征未查找到匹配的第一标签的情况下,第一数据表中未存储更新请求中携带的第一标签,更新请求用于请求更新第一数据表中的第一标签和第二数据表中的配置信息,此时,服务器为更新请求中携带的第一标签分配第一索引值,将更新请求中携带的第一标签以及为该第一标签分配的第一索引值关联存储至第一数据表,从而对第一数据表中的第一标签进行更新。When the search result indicates that no matching first label is found, the first label carried in the update request is not stored in the first data table, and the update request is used to request to update the first label and the second label in the first data table. The configuration information in the data table, at this time, the server assigns the first index value to the first tag carried in the update request, and associates and stores the first tag carried in the update request and the first index value assigned to the first tag in the The first data table, so as to update the first label in the first data table.
在查找结果表征查找到匹配的第一标签的情况下,更新请求用于请求更新第二数据表中配置信息,服务器从第一数据表中确定出更新请求中携带的第一标签对应的第一索引值,并从第二数据表中查找与确定出的第一索引值匹配的第一索引值,将第二数据表中该匹配的第一索引值对应的配置信息替换为更新请求中携带的配置信息。In the case where the search result indicates that a matching first tag is found, the update request is used to request to update the configuration information in the second data table, and the server determines from the first data table the first tag corresponding to the first tag carried in the update request. index value, and look up the first index value matching the determined first index value from the second data table, and replace the configuration information corresponding to the matching first index value in the second data table with the one carried in the update request configuration information.
需要说明的是,在用户的用户名发生变更的情况下,更新请求用于更新第一数据表中的第一标签。It should be noted that, when the user name of the user is changed, the update request is used to update the first label in the first data table.
示例性地,在用户的用户名发生变更的情况下,用户触发终端发送的更新请求中携带变更前的第一标签和变更后的第一标签。服务器在接收到更新请求的情况下,从第一数据表中查找与更新请求中携带的变更前的第一标签匹配的第一标签,并将查找到的第一标签替换为更新请求中携带的变更后的第一标签。Exemplarily, when the user name of the user is changed, the user triggers the update request sent by the terminal to carry the first tag before the change and the first tag after the change. When the server receives the update request, it searches the first data table for the first label that matches the first label before the change carried in the update request, and replaces the found first label with the one carried in the update request. The first label after the change.
示例性地,在用户的用户名发生变更,且用户已获取到变更前的第一标签对应的第一索引值的情况下,用户触发终端发送的更新请求中携带第一索引值和变更后的第一标签。服务器在接收到更新请求的情况下,从第一数据表中查找更新请求中携带的第一索引值匹配的第一索引值,在查找到匹配的第一索引值的情况下,基于查找到的匹配的第一索引值,将第一数据表中该匹配的第一索引值对应的第一标签替换为更新请求中携带的变更后的第一标签。For example, when the user's username is changed, and the user has obtained the first index value corresponding to the first label before the change, the user triggers the update request sent by the terminal to carry the first index value and the changed first tab. When the server receives the update request, it searches the first data table for the first index value that matches the first index value carried in the update request, and if a matching first index value is found, based on the found For the matched first index value, replace the first tag corresponding to the matched first index value in the first data table with the changed first tag carried in the update request.
本实施例中,通过一张第一数据表(即,关联表)和一张第二数据表(配置表)来存储大数据引擎的配置信息,不存在重复的关联关系,在需要更新大数据引擎的配置信息时,用户只需要更新第一数据表中的第一标签和/或第二数据表中的配置信息即可,可以提高数据更新效率。In this embodiment, a first data table (that is, association table) and a second data table (configuration table) are used to store the configuration information of the big data engine, there is no repeated association, and when it is necessary to update the big data When configuring engine configuration information, the user only needs to update the first label in the first data table and/or the configuration information in the second data table, which can improve data update efficiency.
考虑到在用户更新第一数据表中的第一标签或第二数据表中的配置信息的场景下,或者,在调用大数据引擎执行数据处理任务的场景下,需要查询大数据引擎的配置信息,如图2所示,在一些实施例中,所述方法还包括:Considering that in the scenario where the user updates the first label in the first data table or the configuration information in the second data table, or in the scenario of invoking the big data engine to perform data processing tasks, it is necessary to query the configuration information of the big data engine , as shown in Figure 2, in some embodiments, the method also includes:
步骤201:接收配置信息的查询请求;所述查询请求中携带至少一类标识;Step 201: Receive a query request for configuration information; the query request carries at least one type of identifier;
步骤202:基于所述查询请求中的至少一类标识,构造出至少一个第二标签;Step 202: Construct at least one second tag based on at least one type of identifier in the query request;
步骤203:在所述第一数据表中查找出与所述至少一个第二标签中每个第二标签匹配的标签对应的第一索引值;Step 203: Find out in the first data table the first index value corresponding to the tag matching each second tag in the at least one second tag;
步骤204:从所述第二数据表中获取确定出的每个第一索引值对应的配置信息;Step 204: Obtain configuration information corresponding to each determined first index value from the second data table;
步骤205:基于获取到的配置信息,输出关于所述查询请求的查询结果。Step 205: Based on the obtained configuration information, output a query result about the query request.
这里,服务器在接收到终端发送的配置信息的查询请求的情况下,基于查询请求中的至少一类标识,采用对应设定的标签构造方法构造出至少一个第二标签。其中,采用对应设定的标签构造方法构造出至少一个第二标签的实现过程如下:Here, when the server receives the configuration information query request sent by the terminal, based on at least one type of identifier in the query request, the server constructs at least one second tag using a correspondingly set tag construction method. Wherein, the implementation process of constructing at least one second label by using the correspondingly set label construction method is as follows:
当查询请求中只携带一类标识时,服务器将该类标识确定为第二标签。When the query request carries only one type of identifier, the server determines the type of identifier as the second label.
当查询请求中携带至少两类标识时,服务器基于获取到的每个标识所属的类别,以及基于数据库中存储的第一设定对应关系和第二设定对应关系,从数据库中确定出对应的设定的标签构造方法,并采用该设定的标签构造方法,构造出获取到至少两类标识对应的至少一个第二标签。其中,第一设定对应关系表征不同设定层级的标签与标签类别 之间的设定对应关系;第二设定对应关系表征不同设定层级的标签与设定的标签构造方法之间的设定对应关系。实际应用时,当查询请求中携带至少两类标识时,服务器可以构造出不同层级的第二标签。例如,在对大数据引擎进行了用户级、引擎级和应用级的配置的情况下,设定的标签构造方法包括用于构造用户级标签的方法、用于构造引擎级标签的方法和用于构造应用级标签的方法;当查询请求中携带大数据引擎的类别标识和大数据引擎的版本标识时,服务器可以基于用于构造引擎级标签的方法,构造出引擎级的第二标签;当查询请求中携带应用标识、大数据引擎的类别标识和大数据引擎的版本标识的情况下,服务器可以基于用于构造引擎级标签的方法和用于构造应用级标签的方法,构造出引擎级的第二标签和应用级的第二标签;当查询请求中携带用户标识、应用标识、大数据引擎的类别标识和大数据引擎的版本标识的情况下,服务器可以构造出用户级的第二标签、引擎级的第二标签和应用级的第二标签。When the query request carries at least two types of identifiers, the server determines the corresponding identifiers from the database based on the acquired category of each identifier, and based on the first set corresponding relationship and the second set corresponding relationship stored in the database. The set label construction method, and using the set label construction method to construct at least one second label corresponding to the obtained at least two types of identifiers. Among them, the first setting correspondence represents the setting correspondence between labels and label categories at different setting levels; the second setting correspondence represents the setting correspondence between labels at different setting levels and the set label construction method. Determine the corresponding relationship. In practical applications, when the query request carries at least two types of identifiers, the server can construct second labels of different levels. For example, in the case where user-level, engine-level and application-level configurations are performed on the big data engine, the set label construction methods include methods for constructing user-level labels, methods for constructing engine-level labels, and methods for Method for constructing application-level tags; when the query request carries the category identifier of the big data engine and the version identifier of the big data engine, the server can construct a second engine-level tag based on the method used to construct the engine-level tag; when querying When the request carries the application identifier, the category identifier of the big data engine, and the version identifier of the big data engine, the server can construct the engine-level tag Two tags and the second tag at the application level; when the query request carries the user ID, application ID, category ID of the big data engine, and version ID of the big data engine, the server can construct the second tag at the user level, the engine The second tab at the level and the second tab at the application level.
示例性地,在对大数据引擎进行了用户级、引擎级和应用级的配置的情况下,由于只有用户级的配置信息可修改,因此,在用户想要更新用户级的配置信息的应用场景下,用户可以在终端中用于查询大数据引擎的配置信息的交互界面,输入或输入用户名、应用标识、大数据引擎的类别标识和版本标识,并触发终端向服务器发送查询请求,查询请求中携带用户标识、应用标识、大数据引擎的类别标识和大数据引擎的版本标识,服务器在接收到终端发送的查询请求的情况下,可以基于查询请求中携带的用户标识、应用标识、大数据引擎的类别标识和大数据引擎的版本标识,采用对应设定的标签构造方法构造出用户级的第二标签、引擎级的第二标签和应用级的第二标签。Exemplarily, in the case where user-level, engine-level and application-level configurations are performed on the big data engine, since only user-level configuration information can be modified, in the application scenario where the user wants to update the user-level configuration information Next, the user can use the interactive interface for querying the configuration information of the big data engine in the terminal, input or enter the user name, application ID, category ID and version ID of the big data engine, and trigger the terminal to send a query request to the server. The query request Carry the user ID, application ID, category ID of the big data engine, and version ID of the big data engine. When the server receives the query request sent by the terminal, it can The category identification of the engine and the version identification of the big data engine use the correspondingly set label construction method to construct the second label of the user level, the second label of the engine level and the second label of the application level.
在构造出第二标签的情况下,在第一数据表中查找出与第二标签匹配的标签对应的第一索引值,得到每个第二标签对应的第一索引值;从第二数据表中获取每个第一索引值对应的配置信息,得到每个第二标签对应的配置信息。In the case of constructing the second label, the first index value corresponding to the label matching the second label is found in the first data table, and the first index value corresponding to each second label is obtained; from the second data table The configuration information corresponding to each first index value is acquired in , and the configuration information corresponding to each second label is obtained.
在构造出的第二标签的数量为一个的情况下,将第二标签对应的配置信息确定为查询请求的查询结果,并输出第一标签对应的配置信息。When the number of the constructed second tags is one, the configuration information corresponding to the second tag is determined as the query result of the query request, and the configuration information corresponding to the first tag is output.
在构造出的第二标签的数量为至少两个的情况下,基于每个第二标签对应的设定优先级以及每个第二标签对应的配置信息,确定出关于查询请求的查询结果,并输出该查询结果。When the number of constructed second labels is at least two, based on the set priority corresponding to each second label and the configuration information corresponding to each second label, determine the query result about the query request, and Output the query result.
实际应用时,配置信息包括配置项和配置项对应的配置参数。在构造出两个不同层级的第二标签的情况下,服务器可以采用优先级高的第二标签对应的配置信息,对优先级低的第二标签对应的配置信息中相同的配置项对应的配置参数进行替换,输出替换后的配置信息。在构造出至少三个不同层级的第二标签的情况下,按照优先级从高到低的顺序,采用最高优先级的第二标签对应的配置信息对次高优先级的第二标签对应的配置信息进行替换处理,得到处理结果,基于处理结果对下一优先级的第二标签对应的配置信息进行替换处理,依此类推,直至完成对优先级最低的第二标签对应的配置信息进行替换处理。In actual application, the configuration information includes configuration items and configuration parameters corresponding to the configuration items. In the case of constructing two second labels of different levels, the server can use the configuration information corresponding to the second label with higher priority, and configure the configuration information corresponding to the same configuration item in the configuration information corresponding to the second label with lower priority Parameters are replaced, and the configuration information after replacement is output. In the case of constructing at least three second tags of different levels, according to the order of priority from high to low, the configuration information corresponding to the second tag with the highest priority is used to configure the configuration corresponding to the second tag with the second highest priority The information is replaced, and the processing result is obtained. Based on the processing result, the configuration information corresponding to the second label with the next priority is replaced, and so on, until the configuration information corresponding to the second label with the lowest priority is replaced. .
实际应用时,输出关于查询请求的查询结果是指将查询结果发送给发送查询请求的终端。在用户需要更新用户级的配置信息的应用场景下,终端在接收到服务器发送的关于查询请求的查询结果的情况下,显示该查询结果,以基于该查询结果修改用户级的配置信息;在用户操控某个应用,触发该应用调用大数据引擎执行数据处理任务的场景下,终端在接收到服务器发送的关于查询请求的查询结果的情况下,采用查询结果中的配置信息对被调用的大数据引擎进行配置,并通过大数据引擎执行相应的数据处理任务。In practical application, outputting the query result about the query request refers to sending the query result to the terminal sending the query request. In the application scenario where the user needs to update the user-level configuration information, the terminal displays the query result after receiving the query result about the query request sent by the server, so as to modify the user-level configuration information based on the query result; In the scenario of manipulating an application and triggering the application to call the big data engine to perform data processing tasks, the terminal uses the configuration information in the query result to update the called big data engine after receiving the query result sent by the server. The engine is configured, and the corresponding data processing tasks are performed through the big data engine.
在本实施例中,通过配置信息的查询请求中携带的标识构造出第二标签,从第一数据表中查找出与构造出的第二标签匹配的匹配对应的第一索引值,再从第二数据表中获取查找到的第一索引值对应的配置信息,由此,服务器通过第二标签对应的索引值即可 查找到对应的配置信息,不需要通过多个关联关系查询配置信息,可以减少查询配置信息所消耗的时间,提供查询配置信息的效率。In this embodiment, the second label is constructed through the identifier carried in the query request of the configuration information, the first index value corresponding to the match with the constructed second label is found from the first data table, and then the The configuration information corresponding to the searched first index value is obtained from the second data table, so that the server can find the corresponding configuration information through the index value corresponding to the second label, and there is no need to query the configuration information through multiple association relationships. Reduce the time consumed for querying configuration information and improve the efficiency of querying configuration information.
考虑到不同层级的标签对应的配置信息中包含的配置项不完全相同,为了获得与大数据引擎的调用对象的使用习惯或运行需求匹配的配置信息,需要基于查询请求构造出不同层级的第二标签,以从第二数据表中查询出不同层级的第二标签对应的配置信息,其中,调用对象包括用户或应用。在一些实施例中,在步骤202中,所述基于所述查询请求中的至少一类标识,构造出至少一个第二标签,包括:Considering that the configuration items contained in the configuration information corresponding to tags at different levels are not exactly the same, in order to obtain configuration information that matches the usage habits or running requirements of the calling object of the big data engine, it is necessary to construct second label, so as to query configuration information corresponding to the second label at different levels from the second data table, wherein the calling object includes a user or an application. In some embodiments, in step 202, at least one second tag is constructed based on at least one type of identifier in the query request, including:
基于查询请求中的用户标识和应用标识构造出第三标签,以及基于查询请求中的大数据引擎的类别标识和版本标识构造出第四标签;Constructing a third label based on the user identification and application identification in the query request, and constructing a fourth label based on the category identification and version identification of the big data engine in the query request;
将所述第三标签和所述第四标签进行组合,得到第一优先级的第二标签;combining the third tag and the fourth tag to obtain a second tag with a first priority;
采用第一设定字符替代所述第一优先级的第二标签中的用户标识和应用标识,得到第二优先级的第二标签;Using the first setting character to replace the user ID and application ID in the second label of the first priority to obtain the second label of the second priority;
采用第二设定字符替代所述第一优先级的第二标签中的用户标识,得到第三优先级的第二标签;其中,Using the second setting character to replace the user identification in the second label of the first priority to obtain the second label of the third priority; wherein,
所述第一优先级高于所述第二优先级;所述第二优先级高于所述第三优先级。The first priority is higher than the second priority; the second priority is higher than the third priority.
这里,查询请求中携带用户标识、应用标识、大数据引擎的类别标识和大数据引擎的版本标识。Here, the query request carries the user identifier, the application identifier, the category identifier of the big data engine, and the version identifier of the big data engine.
服务器按照用户标识和应用标识各自对应的设定优先级,确定出查询请求中携带的用户标识和应用标识的排列顺序,按照确定出的排列顺序对用户标识和应用标识进行排列,得到第三标签。The server determines the arrangement sequence of the user identifiers and application identifiers carried in the query request according to the corresponding setting priorities of the user identifiers and application identifiers, arranges the user identifiers and application identifiers according to the determined arrangement order, and obtains the third tag .
服务器按照大数据引擎的类别标识和版本标识各自对应的设定优先级,确定出查询请求中携带的大数据引擎的类别标识和版本标识的排列顺序,按照确定出的排列顺序对大数据引擎的类别标识和版本标识进行排列,得到第四标签。The server determines the arrangement order of the category identifiers and version identifiers of the big data engines carried in the query request according to the set priorities corresponding to the category identifiers and version identifiers of the big data engines, and performs the sorting order of the big data engine according to the determined arrangement order. The category identifier and the version identifier are arranged to obtain a fourth label.
在确定出第三标签和第四标签的情况下,按照设定规则将第三标签和第四标签进行组合,得到第一优先级的第二标签,即用户级的第二标签。例如,当第三标签为userA-creatorA,第四标签为engineA-A时,第一优先级的第二标签为“userA-creatorA,engineA-A”。When the third label and the fourth label are determined, the third label and the fourth label are combined according to the set rules to obtain the second label with the first priority, that is, the second label at the user level. For example, when the third label is userA-creatorA and the fourth label is engineA-A, the second label with the first priority is "userA-creatorA, engineA-A".
在确定出第一优先级的第二标签的情况下,采用第一设定字符替代第一优先级的第二标签中的用户标识和应用标识,得到第二优先级的第二标签;以及采用第二设定字符替代第一优先级的第二标签中的用户标识,得到第三优先级的第二标签。第一设定字符和第二设定字符均表征空值,第一设定字符和第二设定字符可以相同,也可以不同。实际应用时,第一设定字符和第二设定字符均为“*”。In the case that the second label of the first priority is determined, the user identification and the application identification in the second label of the first priority are replaced by the first set character to obtain the second label of the second priority; and using The second set character replaces the user identification in the second label of the first priority to obtain the second label of the third priority. Both the first set character and the second set character represent a null value, and the first set character and the second set character may be the same or different. In actual application, both the first setting character and the second setting character are "*".
示例性地,在第一优先级的第二标签为“userA-creatorA,engineA-A”的情况下,第二优先级的第二标签为engineA-A,第三优先级的第二标签为=<creatorA,engineA-A>。Exemplarily, in the case that the second label of the first priority is "userA-creatorA, engineA-A", the second label of the second priority is engineA-A, and the second label of the third priority is = <creatorA, engineA-A>.
实际应用时,标签的格式为(label_key,label_stringvalue)。需要说明的是,在本申请各实施例中的标签涉及四种实体类:通用标签(GenericLabel)、用户-应用标签(UserCreatorLabel)、引擎类别标签(EngineTypeLabel)、组合标签(CombineLabel);UserCreatorLabel、EngineTypeLabel和CombineLabel均继承GenericLabel的属性。其中,In actual application, the format of the label is (label_key, label_stringvalue). It should be noted that the labels in each embodiment of the present application involve four types of entities: generic label (GenericLabel), user-application label (UserCreatorLabel), engine category label (EngineTypeLabel), combination label (CombineLabel); UserCreatorLabel, EngineTypeLabel Both GenericLabel and CombineLabel inherit the properties of GenericLabel. in,
GenericLabel、UserCreatorLabel、EngineTypeLabel和CombineLabel包含的字段和方法解释如下:The fields and methods contained in GenericLabel, UserCreatorLabel, EngineTypeLabel and CombineLabel are explained as follows:
(1)GenericLabel包含的字段和方法解释如下:(1) The fields and methods contained in GenericLabel are explained as follows:
第一字段labelKey:固定的字符串常量,用于标识值所属的标签类型;The first field labelKey: a fixed string constant used to identify the label type to which the value belongs;
第二字段labelValue:该标签对应存储的map数据,类型为Map<String,String>,该map中存储标签对应的键值对信息,在实体类构建时需要进行初始化设置对应的值;The second field labelValue: the label corresponds to the stored map data, the type is Map<String, String>, the key-value pair information corresponding to the label is stored in the map, and the corresponding value needs to be initialized when the entity class is constructed;
第三字段value_separator:值连接分隔符,用于连接map中的value值;The third field value_separator: the value connection separator, used to connect the value value in the map;
第四字段stringValue:用于存储map中value通过value_separator连接的结果,也是数据库中存储的核心值。The fourth field stringValue: used to store the result of connecting value in the map through value_separator, which is also the core value stored in the database.
getStringValue():构造StringValue的核心方法,根据value_separator和labelValue对stringValue进行连接构造,构造顺序基于继承类中labelKey的set方法中的自定义注解ValueSerialNum进行解析。解析流程:通过class.getDeclaredMethods获取继承类的所有方法-->通过每个方法的method.isAnnotationPresent(ValueSerialNum.class)对方法进行过滤,得到被注解标注的方法--->获取被注解标注的方法的注释ValueSerialNum中对应的值-->根据ValueSerialNum的值标识的优先级,对labelValue中的键(key)进行排序,以确定出labelValue的key的排列顺序。这种设计的好处在于只需要在顶层设计好排序方法,在继承类中通过引入注解的方式设置key的排列顺序,大幅度减少了继承类的代码实现内容,而传统方法则需要通过继承类设置额外的变量用于自定义键的排列顺序,然后再重新实现getStringValue方法进行排序。getStringValue(): The core method of constructing StringValue. StringValue is connected and constructed according to value_separator and labelValue. The construction sequence is parsed based on the custom annotation ValueSerialNum in the set method of labelKey in the inherited class. Parsing process: Obtain all methods of the inherited class through class.getDeclaredMethods --> filter the method through method.isAnnotationPresent(ValueSerialNum.class) of each method to get the annotated method ---> obtain the annotated method The corresponding value in the annotation ValueSerialNum --> sort the keys (keys) in the labelValue according to the priority identified by the value of the ValueSerialNum to determine the order in which the keys of the labelValue are arranged. The advantage of this design is that you only need to design the sorting method at the top level, and set the sorting order of the keys by introducing annotations in the inherited class, which greatly reduces the code implementation content of the inherited class, while the traditional method needs to be set through the inherited class Additional variables are used to customize the sort order of the keys, and then reimplement the getStringValue method for sorting.
setStringValue():构造StringValue的核心方法,处理逻辑与getStringValue相似,此处不做赘述。setStringValue(): The core method of constructing StringValue, the processing logic is similar to that of getStringValue, and will not be described here.
(2)UserCreatorLabel包含的字段和方法解释如下:(2) The fields and methods contained in UserCreatorLabel are explained as follows:
labelKey:重写字段,固定的字符串常量“userCreator”,主要用于标识该labelValue所属的Label类型;labelKey: Rewrite field, fixed string constant "userCreator", mainly used to identify the Label type to which the labelValue belongs;
labelValue:重写字段,该label对应存储的map数据,类型为Map<String,String>,该map中键值对存储的键值对包含两种,即<'user',value>、<'creator',value>,在实体类构建时需要进行初始化设置对应的值;labelValue: rewrite field, the label corresponds to the stored map data, the type is Map<String, String>, the key-value pair stored in the map contains two types, namely <'user', value>, <'creator ', value>, the corresponding value needs to be initialized and set when the entity class is constructed;
setUser():设置标签用户的方法,被ValueSerialNum(0)注释,代表最高优先级,用于GenericLabel中进行标签key优先级解析;setUser(): The method of setting the label user, annotated by ValueSerialNum(0), representing the highest priority, used for label key priority analysis in GenericLabel;
setCreator():设置标签所属应用的方法,被ValueSerialNum(1)注释,代表次优先级,用于GenericLabel中进行标签key优先级解析。setCreator(): The method for setting the application to which the label belongs, annotated by ValueSerialNum(1), which represents the sub-priority, and is used for label key priority analysis in GenericLabel.
default_user:代表无指定用户时,user的值。default_user: represents the value of user when no user is specified.
(3)EngineTypeLabel包含主要字段和方法解释如下:(3)EngineTypeLabel contains main fields and methods explained as follows:
labelKey:重写字段,固定的字符串常量“engineType”,主要用于标识该labelValue所属的Label类型;labelKey: Rewrite field, fixed string constant "engineType", mainly used to identify the Label type to which the labelValue belongs;
labelValue:重写字段,该label对应存储的map数据,类型为Map<String,String>,该map中键值对存储的键值对包含两种,即<'engineType',value>、<'version',value>,在实体类构建时需要进行初始化设置对应的值;labelValue: rewrite field, the label corresponds to the stored map data, the type is Map<String, String>, the key-value pair stored in the map contains two types, namely <'engineType', value>, <'version ', value>, the corresponding value needs to be initialized and set when the entity class is constructed;
setEngine:设置标签引擎的方法,被ValueSerialNum(0)注释,代表最高优先级;setEngine: The method of setting the tag engine, annotated by ValueSerialNum(0), representing the highest priority;
setType:设置标签引擎所属版本的方法,被ValueSerialNum(1)注释,代表次优先级。setType: The method to set the version of the tag engine, annotated by ValueSerialNum(1), representing the secondary priority.
(4)CombineLabel用于将UserCreatorLabel和EngineTypeLabel进行组合转换,是真正用于存储的标签,核心类和方法如下:(4) CombineLabel is used to combine and convert UserCreatorLabel and EngineTypeLabel. It is a real label for storage. The core classes and methods are as follows:
labelKey:组合型LabelKey,内容必须为对被组合的标签的键labelKey经过一定规则排序的结果。labelKey: Combined LabelKey, the content must be the result of sorting the key labelKey of the combined label after certain rules.
labelValue:map数据,用于存储记录被组合的标签;labelValue: map data, used to store the label of the record being combined;
COMBINED_LABEL_KEY_PREFIX:labelKey前缀,用于标识该标签类型COMBINED_LABEL_KEY_PREFIX: labelKey prefix, used to identify the label type
LABEL_KEY_JOIN_SYMBOL:labelKey分隔符,用于构造和解析CombineLabel的labelKey;LABEL_KEY_JOIN_SYMBOL: labelKey delimiter, used to construct and parse the labelKey of CombineLabel;
LABEL_VALUE_JOIN_SYMBOL:labelValue分隔符,用于构造和解析CombineLabel的labelValue;LABEL_VALUE_JOIN_SYMBOL: labelValue delimiter, used to construct and parse the labelValue of CombineLabel;
getStringValue():构造StringValue的核心方法;该方法步骤如下:解析labelKey优先级并进行排序-->对labelValue进行相同顺序的排序-->根据LABEL_VALUE_JOIN_SYMBOL的值组合labelValue-->返回StringValue。getStringValue(): The core method of constructing StringValue; the steps of this method are as follows: parse labelKey priority and sort --> sort labelValue in the same order --> combine labelValue according to the value of LABEL_VALUE_JOIN_SYMBOL --> return StringValue.
下面结合具体的例子对服务器基于查询请求中携带的用户标识、应用标识、大数据引擎的类别标识和版本标识,构造出不同层级的第二标签的实现过程进行详细说明:The implementation process of constructing the second label of different levels by the server based on the user identification, application identification, category identification and version identification of the big data engine carried in the query request will be described in detail below with specific examples:
在对大数据引擎进行三层级配置的场景下,优先级由高到低为:用户级、引擎级和应用级。In the scenario of three-level configuration of the big data engine, the priority from high to low is: user level, engine level and application level.
在查询请求中携带userA、应用A、引擎类型A和版本A的情况下,服务器构造第二标签的实现过程为:In the case where userA, application A, engine type A and version A are carried in the query request, the implementation process for the server to construct the second label is as follows:
服务器获取设定参数,设定参数包括值连接分隔符(value_separator)、组合标签的前缀、组合标签的labelKey对应的第一分隔符、组合标签的labelValue对应的第二分隔符和设定字符。实际应用时,value_separator=“-”;组合标签的前缀COMBINED_LABEL_KEY_PREFIX=“Combined”;组合标签的labelKey对应的第一分隔符LABEL_KEY_JOIN_SYMBOL=“_”;组合标签的labelValue对应的第二分隔符LABEL_VALUE_JOIN_SYMBOL=“,”;设定字符为“*”,即default_user=“*”。The server obtains the setting parameters, and the setting parameters include the value connection separator (value_separator), the prefix of the combined label, the first separator corresponding to the labelKey of the combined label, the second separator corresponding to the labelValue of the combined label, and the setting character. In actual application, value_separator="-"; the prefix of the combined label COMBINED_LABEL_KEY_PREFIX="Combined"; the first separator corresponding to the labelKey of the combined label LABEL_KEY_JOIN_SYMBOL="_"; the second separator corresponding to the labelValue of the combined label LABEL_VALUE_JOIN_SYMBOL=", "; Set the character as "*", that is, default_user="*".
服务器基于查询请求中的用户标识、应用标识以及设定参数中的值连接分隔符,构造出UserCreatorLabel;基于查询请求中的大数据引擎的类别标识、版本标识以及设定参数中的值连接分隔符,构造出EngineTypeLabel;基于设定参数中的第一分隔符和第二分隔符,将构造出UserCreatorLabel和构造出的EngineTypeLabel进行组合,得到第一优先级的第二标签。其中,The server constructs a UserCreatorLabel based on the user ID, application ID, and value in the setting parameters in the query request, and connects the delimiter; based on the category ID, version ID of the big data engine in the query request, and the value in the setting parameters, connect the delimiter , to construct an EngineTypeLabel; based on the first delimiter and the second delimiter in the setting parameters, combine the constructed UserCreatorLabel and the constructed EngineTypeLabel to obtain the second label with the first priority. in,
服务器基于查询请求中的用户标识和应用标识,构造出UserCreatorLabel的实现过程如下:Based on the user ID and application ID in the query request, the server constructs the UserCreatorLabel as follows:
新建UserCreatorLabel对象,调用setUser()方法设置'user'的值为userA,得到键值对<'user',userA>;调用setUser()方法设置'creator'的值为creatorA,得到键值对<'creator',creatorA>。也就是说,UserCreatorLabel中包括两个键值对:<'user',userA>和<'creator',creatorA>。Create a new UserCreatorLabel object, call the setUser() method to set the value of 'user' to userA, and get the key-value pair <'user', userA>; call the setUser() method to set the value of 'creator' to creatorA, and get the key-value pair <' creator', creatorA>. That is to say, UserCreatorLabel includes two key-value pairs: <'user', userA> and <'creator', creatorA>.
服务器调用UserCreatorLabel的getStringValue方法,基于设定参数中包括的值连接分隔符(value_separator),构建出UserCreatorLabel的StringValue。由于'user'的优先级高于'creator'的优先级,因此,在值连接分隔符为“-”的情况下,UserCreatorLabel的StringValue为userA-creatorA。The server calls the getStringValue method of UserCreatorLabel, connects the separator (value_separator) based on the value included in the setting parameter, and constructs the StringValue of UserCreatorLabel. Since the priority of 'user' is higher than that of 'creator', the StringValue of UserCreatorLabel is userA-creatorA when the value concatenation separator is "-".
也就是说,构建出的UserCreatorLabel的labelKey为userCreator;构建出的UserCreatorLabel的labelValue包括:<'user',userA>和<'creator',creatorA>;构建出的UserCreatorLabel的StringValue为userA-creatorA。That is to say, the labelKey of the constructed UserCreatorLabel is userCreator; the labelValue of the constructed UserCreatorLabel includes: <'user', userA> and <'creator', creatorA>; the StringValue of the constructed UserCreatorLabel is userA-creatorA.
服务器基于查询请求中的大数据引擎的类别标识和版本标识,构造出EngineTypeLabel:The server constructs EngineTypeLabel based on the category identifier and version identifier of the big data engine in the query request:
服务器新建EngineTypeLabel对象,调用setUser()方法设置'engineType'的值为engineA,得到键值对<'engineType',engineA>;调用setUser()方法设置'version'的值为A,得到键值对<'version',A>。也就是说,EngineTypeLabel中包括两个键值对:<'engineType',engineA>和<'version',A>。The server creates a new EngineTypeLabel object, calls the setUser() method to set the value of 'engineType' to engineA, and obtains the key-value pair <'engineType', engineA>; calls the setUser() method to set the value of 'version' to A, and obtains the key-value pair < 'version', A>. That is to say, EngineTypeLabel includes two key-value pairs: <'engineType', engineA> and <'version', A>.
服务器调用EngineTypeLabel的getStringValue方法,基于设定参数中包括的值连接分隔符(value_separator),构建出EngineTypeLabel的StringValue。由于'engineType'的优先级高于'version'的优先级,因此,在值连接分隔符为“-”的情况下,EngineTypeLabel的stringValue为engineA-A。The server calls the getStringValue method of the EngineTypeLabel, and connects the separator (value_separator) based on the value included in the setting parameter to construct the StringValue of the EngineTypeLabel. Since the priority of 'engineType' is higher than that of 'version', the stringValue of EngineTypeLabel is engineA-A when the value concatenation delimiter is "-".
服务器将构造出UserCreatorLabel和构造出的EngineTypeLabel进行组合,得到第一 优先级的第二标签的实现过程如下:The server combines the constructed UserCreatorLabel with the constructed EngineTypeLabel to obtain the second label with the first priority. The implementation process is as follows:
服务器在构造出的UserCreatorLabel和EngineTypeLabel的情况下,新建CombinLabel对象,从构造出的UserCreatorLabel中获取UserCreatorLabel的labelKey,得到userCreator;从构造出的EngineTypeLabel中获取EngineTypeLabel的labelKey,得到engineType;从设定参数中获取组合标签的labelKey对应的第一分隔符;基于构造出的UserCreatorLabel的labelKey、构造出的EngineTypeLabel的labelKey和组合标签的labelKey对应的第一分隔符,构造出第一优先级的第二标签的labelKey;第一优先级的第二标签的labelKey=Combined_UserCreator_EngineType。其中,在构造组合标签的过程中,将构造出的UserCreatorLabel和EngineTypeLabel作为组合标签的传入参数。也就是说,服务器将构造出的UserCreatorLabel的labelKey以及构造出的EngineTypeLabel的labelKey传入新建的CombinLabel对象,并按照UserCreatorLabel和EngineTypeLabel的优先级,通过组合标签的labelKey对应的第一分隔符,分别连接组合标签的前缀、UserCreatorLabel的labelKey和EngineTypeLabel的labelKey,得到第一优先级的第二标签的labelKey。In the case of the constructed UserCreatorLabel and EngineTypeLabel, the server creates a new CombineLabel object, obtains the labelKey of UserCreatorLabel from the constructed UserCreatorLabel, and obtains userCreator; obtains the labelKey of EngineTypeLabel from the constructed EngineTypeLabel, and obtains engineType; obtains it from the setting parameters The first delimiter corresponding to the labelKey of the combined label; based on the constructed labelKey of the UserCreatorLabel, the constructed LabelKey of the EngineTypeLabel and the first delimiter corresponding to the labelKey of the combined label, the labelKey of the second label with the first priority is constructed; labelKey of the second label of the first priority=Combined_UserCreator_EngineType. Wherein, in the process of constructing the combined label, the constructed UserCreatorLabel and EngineTypeLabel are used as incoming parameters of the combined label. That is to say, the server transfers the constructed UserCreatorLabel's labelKey and the constructed EngineTypeLabel's labelKey to the newly created CombineLabel object, and according to the priorities of UserCreatorLabel and EngineTypeLabel, connect the combinations respectively through the first delimiter corresponding to the labelKey of the combined label The label prefix, the labelKey of UserCreatorLabel and the labelKey of EngineTypeLabel get the labelKey of the second label with the first priority.
服务器从构造出的UserCreatorLabel中获取UserCreatorLabel的stringValue,得到userA-creatorA;从构造出的EngineTypeLabel中获取EngineTypeLabel的stringValue,得到engineA-A,并按照UserCreatorLabel和EngineTypeLabel的优先级,通过组合标签的labelValue对应的第二分隔符,将UserCreatorLabel的stringValue和EngineTypeLabel的stringValue进行分隔,得到第一优先级的第二标签的stringValue=<userA-creatorA,engineA-A>。The server obtains the stringValue of UserCreatorLabel from the constructed UserCreatorLabel to obtain userA-creatorA; obtains the stringValue of EngineTypeLabel from the constructed EngineTypeLabel to obtain engineA-A, and according to the priority of UserCreatorLabel and EngineTypeLabel, combines the labelValue corresponding to the first The two delimiters separate the stringValue of UserCreatorLabel from the stringValue of EngineTypeLabel to obtain stringValue=<userA-creatorA, engineA-A> of the second label of the first priority.
在实际应用中,构建出的第一优先级的第二标签的labelKey为Combined_UserCreator_EngineType;构建出的第一优先级的第二标签的labelValue包括:<user-creator,userA-creatorA>和<engineType-version,engineA-A>;构建出的第一优先级的第二标签的stringValue为<userA-creatorA,engineA-A>。In practical applications, the constructed labelKey of the first-priority second label is Combined_UserCreator_EngineType; the constructed labelValue of the first-priority second label includes: <user-creator, userA-creatorA> and <engineType-version ,engineA-A>; the constructed stringValue of the first-priority second label is <userA-creatorA,engineA-A>.
服务器在确定出第一优先级的第二标签的情况下,将从查询请求中获取到的用户标识和应用标识均替换为设定字符“*”,基于替换后的用户标识、替换后的应用标识、大数据引擎的类别标识和版本标识,构造出第二优先级的第二标签;将从查询请求中获取到的用户标识替换为设定标识“*”,基于替换后的用户标识、应用标识、大数据引擎的类别标识和版本标识,构造出第三优先级的第二标签。其中,构造第二优先级或第三优先级的第二标签的方法与上文中构造第一优先级的第二标签的方法类似,请参照上文中的相关描述,此处不赘述。When the server determines the second tag with the first priority, it replaces both the user ID and the application ID obtained from the query request with the set character "*". Based on the replaced user ID and the replaced application ID, category ID and version ID of the big data engine to construct the second label with the second priority; replace the user ID obtained from the query request with the set ID "*", based on the replaced user ID, application The identifier, the category identifier and the version identifier of the big data engine construct the second label with the third priority. Wherein, the method of constructing the second tag of the second priority or the third priority is similar to the method of constructing the second tag of the first priority above, please refer to the relevant description above, and will not repeat it here.
在一些实施例中,这里,考虑到第一优先级、第二优先级和第三优先级的第二标签的labelKey是不变的,并且组合标签的StringValue由UserCreatorLabel中的StringValue和EngineTypeLabel中的StringValue组合得到,因此,服务器可以保持第一优先级的第二标签的labelKey不变,将第一优先级的第二标签的StringValue中的用户标识和应用标签用设定字符“*”替代,得到第二优先级的第二标签,将第一优先级的第二标签的StringValue中的用户标识用设定字符“*”替代,得到第二优先级的第三标签。例如,在第一优先级的第二标签的labelKey=Combined_UserCreator_EngineType,第一优先级的第二标签的StringValue=<userA-creatorA,engineA-A>的情况下,第二优先级的第二标签的StringValue=<*-*,engineA-A>,第三优先级的第二标签的StringValue=<*-creatorA,engineA-A>。In some embodiments, here, considering that the labelKey of the second label of the first priority, the second priority and the third priority is constant, and the StringValue of the combined label is determined by the StringValue in the UserCreatorLabel and the StringValue in the EngineTypeLabel Therefore, the server can keep the labelKey of the second label of the first priority unchanged, replace the user ID and application label in the StringValue of the second label of the first priority with the set character "*", and obtain the first For the second label of the second priority, replace the user identifier in the StringValue of the second label of the first priority with the set character "*" to obtain the third label of the second priority. For example, in the case of the labelKey of the second label of the first priority=Combined_UserCreator_EngineType, the StringValue of the second label of the first priority=<userA-creatorA, engineA-A>, the StringValue of the second label of the second priority =<*-*, engineA-A>, StringValue of the second label of the third priority=<*-creatorA, engineA-A>.
考虑到不同层级的标签对应的配置信息中包含的配置项不完全相同,为了获得与大数据引擎的调用对象的使用习惯或运行需求匹配的配置信息,在一些实施例中,在步骤205中所述基于获取到的配置信息,输出关于所述查询请求的查询结果,包括:Considering that the configuration items contained in the configuration information corresponding to tags at different levels are not exactly the same, in order to obtain configuration information that matches the usage habits or running requirements of the calling object of the big data engine, in some embodiments, the Based on the acquired configuration information, output query results about the query request, including:
基于每个第二标签对应的配置信息中包括的配置项,以及基于每个第二标签对应的优先级,从获取到的配置信息中包括的第一配置参数中确定出每个配置项对应的第二配置参数;Based on the configuration items included in the configuration information corresponding to each second tag, and based on the priority corresponding to each second tag, determine the configuration item corresponding to each configuration item from the first configuration parameters included in the obtained configuration information. The second configuration parameter;
输出每个配置项和对应的第二配置参数。Output each configuration item and the corresponding second configuration parameter.
这里,在所有第二标签对应的配置信息中包括的配置项均相同的情况下,服务器将第一优先级的第二标签对应的配置信息中每个配置项对应的第一配置参数,确定为对应配置项对应的第二配置参数,输出第一优先级的第二标签对应的配置信息。Here, in the case that all configuration items included in the configuration information corresponding to the second label are the same, the server determines the first configuration parameter corresponding to each configuration item in the configuration information corresponding to the second label of the first priority as Corresponding to the second configuration parameter corresponding to the configuration item, the configuration information corresponding to the second label of the first priority is output.
在第一优先级的第二标签对应的配置信息中包括的配置项与第二优先级的第二标签对应的配置信息中包括的配置项不完全相同的情况下,基于第一优先级的第二标签对应的配置信息对第二优先级的第二标签对应的配置信息中对应配置项的配置参数进行替换,得到第一配置信息。其中,对配置信息进行替换是指相同配置项对应的配置参数之间进行替换。If the configuration items included in the configuration information corresponding to the second label of the first priority are not exactly the same as the configuration items included in the configuration information corresponding to the second label of the second priority, based on the first priority The configuration information corresponding to the second label replaces the configuration parameter of the corresponding configuration item in the configuration information corresponding to the second label of the second priority to obtain the first configuration information. Wherein, replacing the configuration information refers to replacing configuration parameters corresponding to the same configuration item.
在第二优先级的第二标签对应的配置信息中包括的配置项与第三优先级的第二标签对应的配置信息中包括的配置项完全相同的情况下,将第一配置信息中每个配置项对应的第一配置参数,确定为对应配置项对应的第二配置参数;输出第一配置信息。If the configuration items included in the configuration information corresponding to the second label of the second priority are exactly the same as the configuration items included in the configuration information corresponding to the second label of the third priority, each of the first configuration information The first configuration parameter corresponding to the configuration item is determined as the second configuration parameter corresponding to the corresponding configuration item; and the first configuration information is output.
在第二优先级的第二标签对应的配置信息中包括的配置项与第三优先级的第二标签对应的配置信息中包括的配置项不完全相同的情况下,基于第一配置信息对第三优先级的第二标签对应的配置信息中对应配置项对应的配置参数进行替换,得到第二配置信息,输出第二配置信息。If the configuration items included in the configuration information corresponding to the second tag of the second priority are not exactly the same as the configuration items included in the configuration information corresponding to the second tag of the third priority, based on the first configuration information, the The configuration parameters corresponding to the corresponding configuration items in the configuration information corresponding to the second label of the three priorities are replaced to obtain the second configuration information, and output the second configuration information.
实际应用时,用户级的配置信息中包括的配置项的数量最少。引擎级的配置信息中包括的配置项与应用级的配置信息中包括的配置项可以完全相同,也可以部分相同。In actual application, the user-level configuration information includes the least number of configuration items. The configuration items included in the engine-level configuration information and the configuration items included in the application-level configuration information may be identical or partially identical.
由于不同用户、不同应用对应的大数据引擎的配置信息均不同,本实施例中,基于每个第二标签对应的配置信息中包括的配置项,以及基于每个第二标签对应的优先级,从获取到的配置信息中包括的第一配置参数中确定出每个配置项对应的第二配置参数;输出每个配置项和对应的第二配置参数,由此,可以输出与大数据引擎的调用对象的使用习惯或运行需求匹配的配置信息。Since the configuration information of the big data engine corresponding to different users and different applications is different, in this embodiment, based on the configuration items included in the configuration information corresponding to each second tag, and based on the priority corresponding to each second tag, Determine the second configuration parameter corresponding to each configuration item from the first configuration parameters included in the acquired configuration information; output each configuration item and the corresponding second configuration parameter, thus, output the big data engine Configuration information that matches the usage habits or running requirements of the calling object.
图3示出了本申请应用实施例提供的数据处理方法中查询配置信息的实现流程示意图,如图3所示,查询配置信息的方法包括:Fig. 3 shows a schematic diagram of the implementation flow of querying configuration information in the data processing method provided by the application embodiment of the present application. As shown in Fig. 3, the method for querying configuration information includes:
步骤301:接收配置信息的查询请求,查询请求中携带用户标识、应用标识、大数据引擎的类别标识和大数据引擎的版本标识。Step 301: Receive a query request for configuration information, the query request carries a user ID, an application ID, a category ID of a big data engine, and a version ID of a big data engine.
步骤302:基于所述用户标识和所述应用标识构造出用户-应用标签,以及基于所述大数据引擎的类别标识和所述版本标识构造出引擎类别标签。Step 302: Construct a user-application label based on the user identifier and the application identifier, and construct an engine category label based on the category identifier and the version identifier of the big data engine.
这里,服务器基于用户标识和应用标识构造出UserCreatorLabel,基于大数据引擎的类别标识和版本标识构造出EngineTypeLabel,具体实现过程请参照上文中构造第三标签和第四标签的相关描述,此处不赘述。Here, the server constructs the UserCreatorLabel based on the user ID and application ID, and constructs the EngineTypeLabel based on the category ID and version ID of the big data engine. For the specific implementation process, please refer to the relevant description of the construction of the third label and the fourth label above, which will not be repeated here. .
步骤303:将构造出的用户-应用标签和引擎类别标签进行组合,得到组合标签。Step 303: Combine the constructed user-application tags and engine category tags to obtain a combined tag.
这里,服务器将UserCreatorLabel和EngineTypeLabel进行组合,得到组合标签,具体实现方式请参照上文中将第三标签和第四标签进行组合,得到第一优先级的第二标签的相关描述,此处不赘述。Here, the server combines UserCreatorLabel and EngineTypeLabel to obtain a combined label. For specific implementation, please refer to the above description of combining the third label and the fourth label to obtain the second label with the first priority, which will not be repeated here.
步骤304:在第一数据表中查找出与组合标签匹配的标签对应的第一索引值。Step 304: Find the first index value corresponding to the label matching the combined label in the first data table.
其中,步骤304与步骤203类似,的具体实现过程请步骤203中的相关描述,此处不赘述。Wherein, step 304 is similar to step 203, please refer to the relevant description in step 203 for the specific implementation process, and will not repeat them here.
步骤305:从第二数据表中获取确定出的第一索引值对应的配置信息。Step 305: Obtain configuration information corresponding to the determined first index value from the second data table.
其中,步骤305与步骤204类似,具体实现过程请参照步骤204中的相关描述,此 处不赘述。Wherein, step 305 is similar to step 204, please refer to the relevant description in step 204 for the specific implementation process, and details are not repeated here.
步骤306:判断组合标签的优先级是否为最低优先级。Step 306: Determine whether the priority of the combined tag is the lowest priority.
服务器判断组合标签的优先级是否为最低优先级,得到判断结果。在判断结果表征组合标签的优先级不是最低优先级的情况下,执行步骤307,在判断结果表征组合标签的优先级为最低优先级的情况下,执行步骤308。The server judges whether the priority of the combined tag is the lowest priority, and obtains a judgment result. If the judging result indicates that the priority of the combined tag is not the lowest priority, execute step 307 , and if the judging result indicates that the priority of the combined tag is the lowest priority, execute step 308 .
步骤307:采用设定字符替代用户标识和应用标识,或者采用设定字符替代用户标识。Step 307: Use set characters to replace the user ID and application ID, or use set characters to replace the user ID.
需要说明的是,在首次执行步骤307时,将从查询请求中获取到的用户标识和应用标识均替换为设定字符“*”,再次执行步骤302至步骤306。It should be noted that when step 307 is executed for the first time, both the user identifier and the application identifier obtained from the query request are replaced with the setting character "*", and steps 302 to 306 are executed again.
在再次执行步骤306得到的判断结果表征组合标签的优先级不是最低优先级的情况下,再次执行步骤307时,将从查询请求中获取到的用户标识替换为设定字符“*”,再次执行步骤302至步骤306。If the judgment result obtained by executing step 306 again indicates that the priority of the combined label is not the lowest priority, when step 307 is executed again, the user ID obtained from the query request is replaced with the setting character "*", and the execution is executed again Step 302 to step 306.
需要说明的是,在本应用实施例中,对大数据引擎进行用户级、引擎级和应用级这3个层级的配置,优先级从高到低的顺序用户级、引擎级和应用级。服务器首次执行步骤302至步骤303,得到的组合标签为用户级的组合标签,第二次执行步骤302至步骤303,得到的组合标签为引擎级的组合标签,第三次执行步骤302至步骤303,得到的组合标签为应用级的组合标签。It should be noted that, in this application embodiment, the big data engine is configured at three levels: user level, engine level, and application level, and the priorities are user level, engine level, and application level in descending order. The server executes steps 302 to 303 for the first time, and the obtained combined tag is a user-level combined tag; the second time it executes steps 302 to 303, the obtained combined tag is an engine-level combined tag, and the third time it executes steps 302 to 303 , the resulting combined tag is an application-level combined tag.
步骤308:基于获取到的配置信息,输出关于所述查询请求的查询结果。Step 308: Based on the acquired configuration information, output a query result about the query request.
其中,步骤308的实现过程请求参照上文中,在构造出第一优先级的第二标签、第二优先级的第二标签和第三优先级的第二标签的情况下,基于这三个优先级的第二标签对应的配置信息,输出关于查询请求的查询结果的实现过程,此处不赘述。Among them, the implementation process of step 308 requires referring to the above, in the case of constructing the second tag of the first priority, the second tag of the second priority and the second tag of the third priority, based on these three priorities The configuration information corresponding to the second label of the level, and the implementation process of outputting the query result about the query request will not be described here.
为实现本申请实施例的方法,本申请实施例还提供了一种服务器,如图4所示,该服务器包括:In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a server, as shown in Figure 4, the server includes:
接收单元41,配置为接收数据存储请求;所述数据存储请求中携带至少一类标识和配置信息;The receiving unit 41 is configured to receive a data storage request; the data storage request carries at least one type of identification and configuration information;
构建单元42,配置为基于所述至少一类标识,构造出所述第一标签;A construction unit 42 configured to construct the first tag based on the at least one type of identifier;
分配单元43,配置为为所述第一标签分配第一索引值;An assigning unit 43 configured to assign a first index value to the first tag;
存储单元44,配置为将所述第一标签和所述第一索引值关联存储至第一数据表,以及将所述第一索引值和所述数据存储请求中携带的配置信息,关联存储至第二数据表;所述配置信息用于配置大数据引擎。The storage unit 44 is configured to associate store the first tag and the first index value in a first data table, and associate store the first index value and the configuration information carried in the data storage request in a The second data table; the configuration information is used to configure the big data engine.
在一些实施例中,所述至少一类标识包括以下至少之一:In some embodiments, the at least one type of identifier includes at least one of the following:
用户标识;User ID;
应用标识;application identification;
大数据引擎的类别标识;Category identification of the big data engine;
大数据引擎的版本标识。The version identifier of the big data engine.
在一些实施例中,构建单元42具体配置为:In some embodiments, the construction unit 42 is specifically configured as:
基于至少两类设定标识与设定标签构造方法之间的设定对应关系,确定出所述数据存储请求中携带的至少两类标识对应的设定标签构造方法;Based on the setting correspondence between the at least two types of setting identifiers and the setting tag construction method, determine the setting tag construction method corresponding to the at least two types of identifiers carried in the data storage request;
按照确定出的设定标签构造方法,构造出所述至少两类标识对应的第一标签。According to the determined set label construction method, the first label corresponding to the at least two types of identifiers is constructed.
在一些实施例中,接收单元41还配置为接收更新请求;所述更新请求用于请求更新所述第一标签和/或所述配置信息;该服务器还包括:In some embodiments, the receiving unit 41 is further configured to receive an update request; the update request is used to request to update the first label and/or the configuration information; the server further includes:
更新单元,配置为基于所述第一索引值,在所述第一数据表中更新所述第一标签和/或在所述第二数据表中更新所述配置信息。An updating unit configured to update the first tag in the first data table and/or update the configuration information in the second data table based on the first index value.
在一些实施例中,接收单元41还配置为接收配置信息的查询请求;所述查询请求 中携带至少一类标识;该服务器还包括:In some embodiments, the receiving unit 41 is also configured to receive a query request for configuration information; the query request carries at least one type of identification; the server also includes:
构造单元,配置为基于所述查询请求中的至少一类标识,构造出至少一个第二标签;A construction unit configured to construct at least one second tag based on at least one type of identifier in the query request;
查询单元,配置为在所述第一数据表中查找出与所述至少一个第二标签中每个第二标签匹配的标签对应的第一索引值;A query unit, configured to find out in the first data table a first index value corresponding to a tag matching each second tag in the at least one second tag;
确定单元,配置为从所述第二数据表中获取确定出的每个第一索引值对应的配置信息;The determining unit is configured to acquire the determined configuration information corresponding to each first index value from the second data table;
输出单元,配置为基于获取到的配置信息,输出关于所述查询请求的查询结果。An output unit configured to output a query result about the query request based on the acquired configuration information.
在一些实施例中,所述构造单元具体配置为:In some embodiments, the construction unit is specifically configured as:
基于查询请求中的用户标识和应用标识构造出第三标签,以及基于查询请求中的大数据引擎的类别标识和版本标识构造出第四标签;Constructing a third label based on the user identification and application identification in the query request, and constructing a fourth label based on the category identification and version identification of the big data engine in the query request;
将所述第三标签和所述第四标签进行组合,得到第一优先级的第二标签;combining the third tag and the fourth tag to obtain a second tag with a first priority;
采用第一设定字符替代所述第一优先级的第二标签中的用户标识和应用标识,得到第二优先级的第二标签;Using the first setting character to replace the user ID and application ID in the second label of the first priority to obtain the second label of the second priority;
采用第二设定字符替代所述第一优先级的第二标签中的用户标识,得到第三优先级的第二标签;其中,所述第一优先级高于所述第二优先级;所述第二优先级高于所述第三优先级。Using the second setting character to replace the user identification in the second label of the first priority to obtain the second label of the third priority; wherein, the first priority is higher than the second priority; The second priority is higher than the third priority.
在一些实施例中,所述配置信息包括至少一个配置项和对应的配置参数;所述输出单元具体配置为:In some embodiments, the configuration information includes at least one configuration item and corresponding configuration parameters; the output unit is specifically configured as:
基于每个第二标签对应的配置信息中包括的配置项,以及基于每个第二标签对应的优先级,从获取到的配置信息中包括的第一配置参数中确定出每个配置项对应的第二配置参数;Based on the configuration items included in the configuration information corresponding to each second tag, and based on the priority corresponding to each second tag, determine the configuration item corresponding to each configuration item from the first configuration parameters included in the obtained configuration information. The second configuration parameter;
输出每个配置项和对应的第二配置参数。Output each configuration item and the corresponding second configuration parameter.
实际应用时,服务器包括的各单元可通过服务器中的处理器,比如中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)、微控制单元(MCU,Microcontroller Unit)或可编程门阵列(FPGA,Field-Programmable Gate Array)等实现。In actual application, each unit included in the server can be controlled by a processor in the server, such as a central processing unit (CPU, Central Processing Unit), a digital signal processor (DSP, Digital Signal Processor), a micro control unit (MCU, Microcontroller Unit) Or programmable gate array (FPGA, Field-Programmable Gate Array) and other implementations.
需要说明的是:上述实施例提供的服务器在进行数据处理时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的服务器与数据处理方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the server provided in the above-mentioned embodiment performs data processing, the division of the above-mentioned program modules is used as an example for illustration. The internal structure of the program is divided into different program modules to complete all or part of the processing described above. In addition, the server and the data processing method embodiments provided in the above embodiments belong to the same idea, and the specific implementation process thereof is detailed in the method embodiments, and will not be repeated here.
基于上述程序模块的硬件实现,且为了实现本申请实施例的方法,本申请实施例还提供了一种服务器。图5为本申请实施例服务器的硬件组成结构示意图,如图5所示,服务器5包括:Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiment of the present application, the embodiment of the present application further provides a server. Fig. 5 is a schematic diagram of the hardware composition structure of the server of the embodiment of the present application. As shown in Fig. 5, the server 5 includes:
通信接口51,能够与其它设备比如网络设备等进行信息交互;Communication interface 51, capable of exchanging information with other devices such as network devices;
处理器52,与所述通信接口51连接,以实现与其它设备进行信息交互,配置为运行计算机程序时,执行上述一个或多个技术方案提供的方法。而所述计算机程序存储在存储器53上。The processor 52 is connected to the communication interface 51 to implement information interaction with other devices, and is configured to execute the methods provided by one or more of the above technical solutions when running a computer program. Instead, the computer program is stored on the memory 53 .
当然,实际应用时,服务器5中的各个组件通过总线系统54耦合在一起。可理解,总线系统54配置为实现这些组件之间的连接通信。总线系统54除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统54。Certainly, in actual application, various components in the server 5 are coupled together through the bus system 54 . It will be appreciated that the bus system 54 is configured to enable connection communication between these components. In addition to the data bus, the bus system 54 also includes a power bus, a control bus and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 54 in FIG. 5 .
本申请实施例中的存储器53配置为存储各种类型的数据以支持服务器5的操作。这些数据的示例包括:用于在服务器5上操作的任何计算机程序。The memory 53 in the embodiment of the present application is configured to store various types of data to support the operation of the server 5 . Examples of such data include: any computer program for operating on the server 5 .
可以理解,存储器53可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,Sync Link Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本申请实施例描述的存储器53旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 53 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. Among them, the non-volatile memory can be read-only memory (ROM, Read Only Memory), programmable read-only memory (PROM, Programmable Read-Only Memory), erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory) Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, ferromagnetic random access memory), Flash Memory (Flash Memory), Magnetic Surface Memory , CD, or CD-ROM (Compact Disc Read-Only Memory); magnetic surface storage can be disk storage or tape storage. The volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM, Static Random Access Memory), Synchronous Static Random Access Memory (SSRAM, Synchronous Static Random Access Memory), Dynamic Random Access Memory Memory (DRAM, Dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, Synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced Synchronous Dynamic Random Access Memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), Synchronous Link Dynamic Random Access Memory (SLDRAM, Sync Link Dynamic Random Access Memory), Direct Memory Bus Random Access Memory (DRRAM, Direct Rambus Random Access Memory) Memory). The memory 53 described in the embodiment of the present application is intended to include but not limited to these and any other suitable types of memory.
上述本申请实施例揭示的方法可以应用于处理器52中,或者由处理器52实现。处理器52可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器52中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器52可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器52可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器53,处理器52读取存储器53中的程序,结合其硬件完成前述方法的步骤。The methods disclosed in the foregoing embodiments of the present application may be applied to the processor 52 or implemented by the processor 52 . The processor 52 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 52 or instructions in the form of software. The aforementioned processor 52 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. The processor 52 may implement or execute various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, and the storage medium is located in the memory 53, and the processor 52 reads the program in the memory 53, and completes the steps of the foregoing method in combination with its hardware.
可选地,所述处理器52执行所述程序时实现本申请实施例的各个方法中由终端实现的相应流程,为了简洁,在此不再赘述。Optionally, when the processor 52 executes the program, it implements a corresponding process implemented by the terminal in each method of the embodiment of the present application, and details are not repeated here for the sake of brevity.
在示例性实施例中,本申请实施例还提供了一种存储介质,即计算机存储介质,具体为计算机可读存储介质,例如包括存储计算机程序的第一存储器53,上述计算机程序可由终端的处理器52执行,以完成前述方法所述步骤。计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、Flash Memory、磁表面存储器、光盘、或CD-ROM等存储器。In an exemplary embodiment, the embodiment of the present application also provides a storage medium, that is, a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory 53 storing a computer program, and the above-mentioned computer program can be processed by the terminal The device 52 is executed to complete the steps described in the foregoing method. The computer-readable storage medium can be memories such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or May be integrated into another system, or some features may be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各实施例中的各功能单元可以全部集成在一个处理模块中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application can be integrated into one processing module, or each unit can be used as a single unit, or two or more units can be integrated into one unit; the above-mentioned integration The unit can be realized in the form of hardware or in the form of hardware plus software functional unit.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the Including the steps of the foregoing method embodiments; and the foregoing storage medium includes: a removable storage device, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, etc. A medium on which program code can be stored.
需要说明的是:“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that: "first", "second", etc. are used to distinguish similar objects, and not necessarily used to describe a specific order or sequence.
需要说明的是,本申请实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。It should be noted that the technical solutions described in the embodiments of the present application may be combined arbitrarily if there is no conflict.
需要说明的是,本申请实施例中的术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多个中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。It should be noted that the term "and/or" in the embodiments of the present application is only an association relationship describing associated objects, which means that there may be three kinds of relationships, for example, A and/or B, which may mean that A exists alone , both A and B exist, and B exists alone. In addition, the term "at least one" herein means any combination of any one or more of at least two of a plurality, for example, including at least one of A, B, and C, which may mean including from A, Any one or more elements selected from the set formed by B and C.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (16)

  1. 一种数据处理方法,包括:A data processing method, comprising:
    接收数据存储请求;所述数据存储请求中携带至少一类标识和配置信息;Receive a data storage request; the data storage request carries at least one type of identification and configuration information;
    基于所述至少一类标识,构造出第一标签;Constructing a first tag based on the at least one type of identifier;
    为所述第一标签分配第一索引值;assigning a first index value to the first tag;
    将所述第一标签和所述第一索引值关联存储至第一数据表,以及将所述第一索引值和所述数据存储请求中携带的配置信息,关联存储至第二数据表;所述配置信息用于配置大数据引擎。storing the first tag and the first index value in a first data table associatively, and storing the first index value and the configuration information carried in the data storage request in a second data table in association; The above configuration information is used to configure the big data engine.
  2. 根据权利要求1所述的方法,其中,所述至少一类标识包括以下至少之一:The method according to claim 1, wherein the at least one type of identification includes at least one of the following:
    用户标识;User ID;
    应用标识;application identification;
    大数据引擎的类别标识;Category identification of the big data engine;
    大数据引擎的版本标识。The version identifier of the big data engine.
  3. 根据权利要求1或2所述的方法,其中,所述基于所述至少一类标识,构造出第一标签,包括:The method according to claim 1 or 2, wherein said constructing a first label based on said at least one type of identification comprises:
    基于至少两类设定标识与设定标签构造方法之间的设定对应关系,确定出所述数据存储请求中携带的至少两类标识对应的设定标签构造方法;Based on the setting correspondence between the at least two types of setting identifiers and the setting tag construction method, determine the setting tag construction method corresponding to the at least two types of identifiers carried in the data storage request;
    按照确定出的设定标签构造方法,构造出所述至少两类标识对应的第一标签。According to the determined set label construction method, the first label corresponding to the at least two types of identifiers is constructed.
  4. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    接收更新请求;所述更新请求用于请求更新所述第一标签和/或所述配置信息;receiving an update request; the update request is used to request to update the first tag and/or the configuration information;
    基于所述第一索引值,在所述第一数据表中更新所述第一标签和/或在所述第二数据表中更新所述配置信息。Based on the first index value, the first tag is updated in the first data table and/or the configuration information is updated in the second data table.
  5. 根据权利要求2所述的方法,其中,所述方法还包括:The method according to claim 2, wherein the method further comprises:
    接收配置信息的查询请求;所述查询请求中携带至少一类标识;Receive a query request for configuration information; the query request carries at least one type of identifier;
    基于所述查询请求中的至少一类标识,构造出至少一个第二标签;Constructing at least one second tag based on at least one type of identifier in the query request;
    在所述第一数据表中查找出与所述至少一个第二标签中每个第二标签匹配的标签对应的第一索引值;Finding, in the first data table, a first index value corresponding to a tag matching each second tag in the at least one second tag;
    从所述第二数据表中获取确定出的每个第一索引值对应的配置信息;Acquiring the determined configuration information corresponding to each first index value from the second data table;
    基于获取到的配置信息,输出关于所述查询请求的查询结果。Based on the obtained configuration information, a query result about the query request is output.
  6. 根据权利要求5所述的方法,其中,所述基于所述查询请求中的 至少一类标识,构造出至少一个第二标签,包括:The method according to claim 5, wherein said at least one second label is constructed based on at least one type of identification in said query request, comprising:
    基于查询请求中的用户标识和应用标识构造出第三标签,以及基于查询请求中的大数据引擎的类别标识和版本标识构造出第四标签;Constructing a third label based on the user identification and application identification in the query request, and constructing a fourth label based on the category identification and version identification of the big data engine in the query request;
    将所述第三标签和所述第四标签进行组合,得到第一优先级的第二标签;combining the third tag and the fourth tag to obtain a second tag with a first priority;
    采用第一设定字符替代所述第一优先级的第二标签中的用户标识和应用标识,得到第二优先级的第二标签;Using the first setting character to replace the user ID and application ID in the second label of the first priority to obtain the second label of the second priority;
    采用第二设定字符替代所述第一优先级的第二标签中的用户标识,得到第三优先级的第二标签;其中,Using the second setting character to replace the user identification in the second label of the first priority to obtain the second label of the third priority; wherein,
    所述第一优先级高于所述第二优先级;所述第二优先级高于所述第三优先级。The first priority is higher than the second priority; the second priority is higher than the third priority.
  7. 根据权利要求6所述的方法,其中,所述配置信息包括至少一个配置项和对应的配置参数;所述基于获取到的配置信息,输出关于所述查询请求的查询结果,包括:The method according to claim 6, wherein the configuration information includes at least one configuration item and corresponding configuration parameters; the outputting the query result about the query request based on the acquired configuration information includes:
    基于每个第二标签对应的配置信息中包括的配置项,以及基于每个第二标签对应的优先级,从获取到的配置信息中包括的第一配置参数中确定出每个配置项对应的第二配置参数;Based on the configuration items included in the configuration information corresponding to each second tag, and based on the priority corresponding to each second tag, determine the configuration item corresponding to each configuration item from the first configuration parameters included in the obtained configuration information. The second configuration parameter;
    输出每个配置项和对应的第二配置参数。Output each configuration item and the corresponding second configuration parameter.
  8. 一种服务器,包括:A server comprising:
    接收单元,配置为接收数据存储请求;所述数据存储请求中携带至少一类标识和配置信息;The receiving unit is configured to receive a data storage request; the data storage request carries at least one type of identification and configuration information;
    构建单元,配置为基于所述至少一类标识,构造出第一标签;A construction unit configured to construct a first tag based on the at least one type of identifier;
    分配单元,配置为为所述第一标签分配第一索引值;an allocation unit configured to allocate a first index value to the first tag;
    存储单元,配置为将所述第一标签和所述第一索引值关联存储至第一数据表,以及将所述第一索引值和所述数据存储请求中携带的配置信息,关联存储至第二数据表;所述配置信息用于配置大数据引擎。The storage unit is configured to associate store the first tag and the first index value in a first data table, and associate store the first index value and the configuration information carried in the data storage request in a second table. Two data tables; the configuration information is used to configure the big data engine.
  9. 根据权利要求8所述的服务器,其中,所述至少一类标识包括以下至少之一:The server according to claim 8, wherein the at least one type of identifier includes at least one of the following:
    用户标识;User ID;
    应用标识;application identification;
    大数据引擎的类别标识;Category identification of big data engine;
    大数据引擎的版本标识。The version identifier of the big data engine.
  10. 根据权利要求8或9所述的服务器,其中,所述构建单元具体配置为:The server according to claim 8 or 9, wherein the construction unit is specifically configured as:
    基于至少两类设定标识与设定标签构造方法之间的设定对应关系,确定出所述数据存储请求中携带的至少两类标识对应的设定标签构造方法;Based on the setting correspondence between the at least two types of setting identifiers and the setting tag construction method, determine the setting tag construction method corresponding to the at least two types of identifiers carried in the data storage request;
    按照确定出的设定标签构造方法,构造出所述至少两类标识对应的第一标签。According to the determined set label construction method, the first label corresponding to the at least two types of identifiers is constructed.
  11. 根据权利要求8所述的服务器,其中,所述接收单元还配置为:接收更新请求;所述更新请求用于请求更新所述第一标签和/或所述配置信息;所述服务器还包括:The server according to claim 8, wherein the receiving unit is further configured to: receive an update request; the update request is used to request to update the first label and/or the configuration information; the server further includes:
    更新单元,配置为基于所述第一索引值,在所述第一数据表中更新所述第一标签和/或在所述第二数据表中更新所述配置信息。An updating unit configured to update the first tag in the first data table and/or update the configuration information in the second data table based on the first index value.
  12. 根据权利要求9所述的服务器,其中,所述接收单元还配置为接收配置信息的查询请求;所述查询请求中携带至少一类标识;所述服务器还包括:The server according to claim 9, wherein the receiving unit is further configured to receive a query request for configuration information; the query request carries at least one type of identification; the server further includes:
    构造单元,配置为基于所述查询请求中的至少一类标识,构造出至少一个第二标签;A construction unit configured to construct at least one second tag based on at least one type of identifier in the query request;
    查询单元,配置为在所述第一数据表中查找出与所述至少一个第二标签中每个第二标签匹配的标签对应的第一索引值;A query unit, configured to find out in the first data table a first index value corresponding to a tag matching each second tag in the at least one second tag;
    确定单元,配置为从所述第二数据表中获取确定出的每个第一索引值对应的配置信息;The determining unit is configured to acquire the determined configuration information corresponding to each first index value from the second data table;
    输出单元,配置为基于获取到的配置信息,输出关于所述查询请求的查询结果。An output unit configured to output a query result about the query request based on the acquired configuration information.
  13. 根据权利要求12所述的服务器,其中,所述构造单元具体配置为:The server according to claim 12, wherein the construction unit is specifically configured as:
    基于查询请求中的用户标识和应用标识构造出第三标签,以及基于查询请求中的大数据引擎的类别标识和版本标识构造出第四标签;Constructing a third label based on the user identification and application identification in the query request, and constructing a fourth label based on the category identification and version identification of the big data engine in the query request;
    将所述第三标签和所述第四标签进行组合,得到第一优先级的第二标签;combining the third tag and the fourth tag to obtain a second tag with a first priority;
    采用第一设定字符替代所述第一优先级的第二标签中的用户标识和应用标识,得到第二优先级的第二标签;Using the first setting character to replace the user ID and application ID in the second label of the first priority to obtain the second label of the second priority;
    采用第二设定字符替代所述第一优先级的第二标签中的用户标识,得到第三优先级的第二标签;其中,Using the second setting character to replace the user identification in the second label of the first priority to obtain the second label of the third priority; wherein,
    所述第一优先级高于所述第二优先级;所述第二优先级高于所述第三优先级。The first priority is higher than the second priority; the second priority is higher than the third priority.
  14. 根据权利要求13所述的服务器,其中,所述配置信息包括至少一个配置项和对应的配置参数;所述输出单元具体配置为:The server according to claim 13, wherein the configuration information includes at least one configuration item and corresponding configuration parameters; the output unit is specifically configured as:
    基于每个第二标签对应的配置信息中包括的配置项,以及基于每个第二标签对应的优先级,从获取到的配置信息中包括的第一配置参数中确定出每个配置项对应的第二配置参数;Based on the configuration items included in the configuration information corresponding to each second tag, and based on the priority corresponding to each second tag, determine the configuration item corresponding to each configuration item from the first configuration parameters included in the acquired configuration information. The second configuration parameter;
    输出每个配置项和对应的第二配置参数。Output each configuration item and the corresponding second configuration parameter.
  15. 一种服务器,包括:处理器和配置为存储能够在处理器上运行的计算机程序的存储器,A server comprising: a processor and a memory configured to store a computer program capable of running on the processor,
    其中,所述处理器配置为运行所述计算机程序时,执行权利要求1至7任一项所述的方法的步骤。Wherein, the processor is configured to execute the steps of the method according to any one of claims 1 to 7 when running the computer program.
  16. 一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至7任一项所述的方法的步骤。A storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
PCT/CN2021/136011 2021-06-11 2021-12-07 Data processing method, server, and storage medium WO2022257390A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110653633.2 2021-06-11
CN202110653633.2A CN113326264A (en) 2021-06-11 2021-06-11 Data processing method, server and storage medium

Publications (1)

Publication Number Publication Date
WO2022257390A1 true WO2022257390A1 (en) 2022-12-15

Family

ID=77420642

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/136011 WO2022257390A1 (en) 2021-06-11 2021-12-07 Data processing method, server, and storage medium

Country Status (2)

Country Link
CN (1) CN113326264A (en)
WO (1) WO2022257390A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116521198A (en) * 2023-04-13 2023-08-01 广州汽车集团股份有限公司 Data processing method, device, equipment and computer readable storage medium
CN116842223A (en) * 2023-08-29 2023-10-03 天津鑫宝龙电梯集团有限公司 Working condition data management method, device, equipment and medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113326264A (en) * 2021-06-11 2021-08-31 深圳前海微众银行股份有限公司 Data processing method, server and storage medium
CN113810235B (en) * 2021-09-22 2024-02-23 国网吉林省电力有限公司 CMDB automatic operation and maintenance management method and system based on configuration intelligent discovery
CN115291913B (en) * 2022-08-16 2023-10-24 广州汽车集团股份有限公司 System and method for updating configuration data of whole vehicle ECU

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100030995A1 (en) * 2008-07-30 2010-02-04 International Business Machines Corporation Method and apparatus for applying database partitioning in a multi-tenancy scenario
CN110351107A (en) * 2018-04-03 2019-10-18 华为技术有限公司 Configuring management method and device
CN110825358A (en) * 2019-11-22 2020-02-21 广联达科技股份有限公司 Multi-level system configuration service design method based on preorder priority matching rule
CN112000748A (en) * 2020-07-14 2020-11-27 北京神州泰岳智能数据技术有限公司 Data processing method and device, electronic equipment and storage medium
CN113326264A (en) * 2021-06-11 2021-08-31 深圳前海微众银行股份有限公司 Data processing method, server and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100030995A1 (en) * 2008-07-30 2010-02-04 International Business Machines Corporation Method and apparatus for applying database partitioning in a multi-tenancy scenario
CN110351107A (en) * 2018-04-03 2019-10-18 华为技术有限公司 Configuring management method and device
CN110825358A (en) * 2019-11-22 2020-02-21 广联达科技股份有限公司 Multi-level system configuration service design method based on preorder priority matching rule
CN112000748A (en) * 2020-07-14 2020-11-27 北京神州泰岳智能数据技术有限公司 Data processing method and device, electronic equipment and storage medium
CN113326264A (en) * 2021-06-11 2021-08-31 深圳前海微众银行股份有限公司 Data processing method, server and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116521198A (en) * 2023-04-13 2023-08-01 广州汽车集团股份有限公司 Data processing method, device, equipment and computer readable storage medium
CN116842223A (en) * 2023-08-29 2023-10-03 天津鑫宝龙电梯集团有限公司 Working condition data management method, device, equipment and medium
CN116842223B (en) * 2023-08-29 2023-11-10 天津鑫宝龙电梯集团有限公司 Working condition data management method, device, equipment and medium

Also Published As

Publication number Publication date
CN113326264A (en) 2021-08-31

Similar Documents

Publication Publication Date Title
WO2022257390A1 (en) Data processing method, server, and storage medium
WO2020233367A1 (en) Blockchain data storage and query method, apparatus and device, and storage medium
US7269593B2 (en) Data processing apparatus and method
US7593951B2 (en) Application programming interface for centralized storage of principal data
US7730099B2 (en) Storage and retrieval of richly typed hierarchical network models
US8924373B2 (en) Query plans with parameter markers in place of object identifiers
CN107679071B (en) Relational database-oriented general data service customized packaging method
JP2000089989A (en) Method for starting service using property imparted to document
CN109933571A (en) Database design documentation generation method, device and computer readable storage medium
WO2019015364A1 (en) Method and device for executing structured query language (sql) instruction
US20190050208A1 (en) Method and system for developing relation-context specific software applications
CN106095698A (en) OO caching write, read method and device
CN110134681B (en) Data storage and query method and device, computer equipment and storage medium
CN111708805A (en) Data query method and device, electronic equipment and storage medium
CN113721862A (en) Data processing method and device
CN110069248A (en) Call method, device, equipment and the computer readable storage medium of interface data
CN113407565B (en) Cross-database data query method, device and equipment
CN110019306B (en) SQL statement searching method and system based on XML format file
US11531706B2 (en) Graph search using index vertices
CN113779068B (en) Data query method, device, equipment and storage medium
CN111163060A (en) Application group-based forwarding method, device and system
CN110597827A (en) Storage method and system of interface control file data
CN112162731B (en) Data expansion method, device, storage medium and electronic device
CN115221360A (en) Tree structure configuration method and system
CN112434189A (en) Data query method, device and equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21944886

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE