CN115757036A - Data reading method and device, storage medium and computer equipment - Google Patents

Data reading method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN115757036A
CN115757036A CN202211477227.6A CN202211477227A CN115757036A CN 115757036 A CN115757036 A CN 115757036A CN 202211477227 A CN202211477227 A CN 202211477227A CN 115757036 A CN115757036 A CN 115757036A
Authority
CN
China
Prior art keywords
configuration
attribute
reading
data
level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211477227.6A
Other languages
Chinese (zh)
Inventor
徐栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202211477227.6A priority Critical patent/CN115757036A/en
Publication of CN115757036A publication Critical patent/CN115757036A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses a data reading method and device, a storage medium and computer equipment. The method comprises the following steps: acquiring object attributes of an object to be read, and analyzing the object attributes to identify configuration item attributes from the object attributes; determining the configuration level of the attribute of the configuration item, calling a configuration reading mode corresponding to the configuration level, and reading configuration data to be assigned; assigning the attribute of the configuration item through the configuration data to be assigned; and reading the attribute value of the attribute of the configuration item, and performing service processing based on the read attribute value. The method and the device can realize reading of the configuration data, so that business processing can be carried out based on the read configuration data.

Description

Data reading method and device, storage medium and computer equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a data reading method and apparatus, a computer-readable storage medium, and a computer device.
Background
In the operation of an application system, reading of configuration data is an important component, and when performing service processing, it is usually necessary to read the configuration data first and then perform service processing based on the read configuration data.
Disclosure of Invention
Embodiments of the present application provide a data reading method and apparatus, a computer-readable storage medium, and a computer device, which can read configuration data, so that service processing can be performed based on the read configuration data.
In a first aspect, an embodiment of the present application provides a data reading method, including:
acquiring object attributes of an object to be read, and analyzing the object attributes to identify configuration item attributes from the object attributes;
determining the configuration level of the configuration item attribute, calling a configuration reading mode corresponding to the configuration level, and reading configuration data to be assigned;
assigning the configuration item attribute through the configuration data to be assigned;
and reading the attribute value of the attribute of the configuration item, and performing service processing based on the read attribute value.
In a second aspect, an embodiment of the present application provides a data reading apparatus, including:
the attribute identification module is used for acquiring the object attributes of the object to be read and analyzing the object attributes to identify the attributes of the configuration items from the object attributes;
the data reading module is used for determining the configuration level of the configuration item attribute, calling a configuration reading mode corresponding to the configuration level and reading the configuration data to be assigned;
the attribute assignment module is used for assigning the configuration item attributes through the configuration data to be assigned;
and the attribute reading module is used for reading the attribute value of the attribute of the configuration item and carrying out service processing based on the read attribute value.
In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the data reading method provided in the embodiment of the present application when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the steps of the data reading method provided by the present application.
In the embodiment of the application, the attribute of the configuration item is identified from the object attributes by acquiring the object attributes of the object to be read and analyzing the object attributes; determining the configuration level of the configuration item attribute, calling a configuration reading mode corresponding to the configuration level, and reading configuration data to be assigned; assigning the configuration item attribute through the configuration data to be assigned; reading the attribute value of the attribute of the configuration item, and performing service processing based on the read attribute value, so that the configuration data can be read, and the service processing can be performed based on the read configuration data.
Drawings
The technical solutions and advantages of the present application will become apparent from the following detailed description of specific embodiments of the present application when taken in conjunction with the accompanying drawings.
Fig. 1 is a schematic flowchart of a first data reading method according to an embodiment of the present disclosure.
Fig. 2 is a schematic flowchart of a second data reading method according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a data reading apparatus according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
It should be noted that the terms "first" and "second", etc. in this application are used to distinguish different objects, and are not used to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The embodiment of the application provides a data reading method, a data reading device, a storage medium and a computer device, wherein an execution main body of the data reading method can be the data reading device provided by the embodiment of the application or the computer device integrated with the data reading device, and the data reading device can be realized in a hardware or software mode. The computer device may be a smart phone, a tablet computer, a palm computer, a notebook computer, or the like having a data reading capability and configured with a processor.
Referring to fig. 1, fig. 1 is a schematic flow chart of a data reading method according to an embodiment of the present application, where the flow chart may include:
in step 101, object attributes of an object to be read are obtained and analyzed to identify configuration item attributes from the object attributes.
The object to be read is an object that needs to read configuration data, such as a configuration item attribute of a certain component in the application system. The object to be read may include not only the attribute of the configuration item but also other attributes, and therefore, the object attribute of the object to be read needs to be analyzed to identify the attribute of the configuration item from the object attribute of the object to be read.
For example, assuming that the object attribute of the object to be read includes an object attribute M1, an object attribute M2, and an object attribute M3, it may be determined that the object attribute M1 is a configuration item attribute by analyzing the object attribute M1, the object attribute M2, and the object attribute M3, and then the configuration item attribute identified from the object attribute M1, the object attribute M2, and the object attribute M3 is the object attribute M1.
In step 102, the configuration level of the attribute of the configuration item is determined, and a configuration reading mode corresponding to the configuration level is called to read the configuration data to be assigned.
It should be noted that, for an object to be read, a developer usually sets a corresponding configuration level for the attribute of its configuration item, and sets different configuration reading modes for different configuration levels. One configuration item attribute may correspond to one configuration level, and one configuration item attribute may also correspond to a plurality of configuration levels. And the specific number of the configuration levels is set by a developer according to the actual situation. For example, one configuration item attribute may correspond to an item level and another configuration item attribute may correspond to both an item level and a transaction level. And a configuration level corresponds to a configuration read mode. For example, the item level may correspond to the configuration reading mode F1, and the transaction level may correspond to the configuration reading mode F2. The configuration reading mode includes which specific position to read the configuration data, wherein the main difference of the configuration reading modes corresponding to different configuration levels is that the specific position to read the configuration data is different.
In this embodiment, after the configuration item attribute is identified, the configuration level of the configuration item attribute may be determined, and a configuration reading manner corresponding to the configuration level is called to read the configuration data as the configuration data to be assigned.
For example, assuming that the configuration level of the attribute of the configuration item is an item level, and the configuration reading manner corresponding to the item level includes reading configuration data from the specific position P1, the configuration data may be read from the specific position P1 as configuration data to be assigned.
For another example, assuming that the configuration level of the attribute of the configuration item is the transaction level, and the configuration reading manner corresponding to the transaction level includes reading the configuration data from the specific position P2, then the configuration data may be read from the specific position P2 as the configuration data to be assigned.
In step 103, the configuration item attribute is assigned through the configuration data to be assigned.
In this embodiment, after the configuration data to be assigned is obtained, the configuration item attribute may be assigned through the configuration data to be assigned, that is, the attribute value of the configuration item attribute is set as the configuration data to be assigned, so that when the configuration data to be assigned needs to be read subsequently, the attribute value of the configuration item attribute is directly read.
In step 104, the attribute value of the attribute of the configuration item is read, and the business process is performed based on the read attribute value.
In this embodiment, since the attribute value of the configuration item attribute is set as the configuration data to be assigned in step 103, when the configuration data needs to be read in the service processing process, the attribute value of the configuration item attribute can be directly read, and the service processing is performed based on the read attribute value.
In the embodiment, the attribute of the configuration item is identified from the object attributes by acquiring the object attributes of the object to be read and analyzing the object attributes; determining the configuration level of the configuration item attribute, calling a configuration reading mode corresponding to the configuration level, and reading configuration data to be assigned; assigning the configuration item attribute through the configuration data to be assigned; reading the attribute value of the attribute of the configuration item, and performing service processing based on the read attribute value, thereby realizing reading configuration data and performing service processing based on the read configuration data.
In an optional embodiment, the invoking a configuration reading manner corresponding to the configuration level to read the configuration data to be assigned may include:
(1) If a plurality of configuration levels exist, acquiring priority information corresponding to each configuration level;
(2) And calling a configuration reading mode corresponding to the configuration level with the highest priority indicated by the priority information, and reading the configuration data to be assigned.
It should be noted that when one configuration item attribute corresponds to multiple configuration levels, in the service processing, it is usually necessary to read configuration data corresponding to a configuration level with the highest priority, so in this embodiment, when one configuration item attribute corresponds to multiple configuration levels, priority information corresponding to each configuration level may be obtained; and then calling a configuration reading mode corresponding to the configuration level with the highest priority indicated by the priority information to read the configuration data to be assigned, and assigning the configuration item attribute through the configuration data to be assigned.
For example, it is assumed that the configuration item attribute of a certain object to be read corresponds to a transaction level and an item level, where the priority corresponding to the transaction level is a first priority, the priority corresponding to the item level is a second priority, and the first priority is higher than the second priority.
In an optional embodiment, the invoking a configuration reading manner corresponding to the configuration level to read the configuration data to be assigned may include:
(1) If a plurality of configuration levels exist, calling a configuration reading mode corresponding to each configuration level, and reading the configuration data to be selected;
(2) Acquiring priority information corresponding to each configuration level;
(3) And taking the to-be-selected configuration data corresponding to the configuration level with the highest priority indicated by the priority information as to-be-assigned configuration data.
When a configuration item attribute corresponds to multiple configuration levels, configuration data corresponding to the configuration level with the highest priority level generally needs to be read during service processing, and therefore, in this embodiment, when a configuration item attribute corresponds to multiple configuration levels, a configuration reading mode corresponding to each configuration level may be called first, configuration data is read at the same time as to-be-selected configuration data, priority information corresponding to each configuration level is obtained, to-be-selected configuration data corresponding to the configuration level with the highest priority level indicated by the priority information is used as to-be-assigned configuration data, and assignment is performed on the configuration item attribute through the to-be-assigned configuration data.
For example, it is assumed that the configuration item attribute of a certain object to be read corresponds to a transaction level and an item level, where the priority corresponding to the transaction level is a first priority, the priority corresponding to the item level is a second priority, and the first priority is higher than the second priority, the configuration reading mode corresponding to the item level and the configuration reading mode corresponding to the transaction level may be called first, and the configuration data may be read at the same time as the configuration data to be selected.
In an optional embodiment, the invoking a configuration reading manner corresponding to the configuration level to read the configuration data to be assigned may include:
(1) Acquiring a preset mapping relation between a configuration level and a configuration reading mode;
(2) Acquiring a configuration reading mode corresponding to the configuration level according to the preset mapping relation;
(3) And calling a configuration reading mode corresponding to the configuration level, and reading the configuration data to be assigned.
It should be noted that the configuration levels and the configuration reading modes are generally in one-to-one correspondence. The developer sets a mapping relation between the configuration level and the configuration reading mode in advance as a preset mapping relation, and when the configuration level is determined subsequently, the configuration reading mode corresponding to the configuration level can be obtained according to the preset mapping relation, so that the configuration reading mode corresponding to the configuration level is called, and the configuration data to be assigned is read.
For example, assume that the predetermined mapping relationship is: and if the configuration level of the configuration item attribute of a certain object to be read is the transaction level, the configuration reading mode F2 can be called to read the configuration data to be assigned.
In an optional embodiment, the analyzing the object property to identify the configuration item property from the object property may include:
(1) Acquiring mark information of the object attribute;
(2) And determining the object attribute of which the marked object attribute is the attribute of the configuration item as the attribute of the configuration item.
It should be noted that, a developer may set different tag information for different object attributes in advance, and the tag information of a certain object attribute uniquely tags the object attribute, so that the configuration item attribute may be identified from the object attributes of the object to be read based on the tag information of the object attribute. Based on this, in this embodiment, the mark information of the object attribute of the object to be read may be obtained, and the object attribute whose marked object attribute is indicated by the mark information is determined as the configuration item attribute.
In an optional embodiment, the analyzing the object property to identify the configuration item property from the object property may include:
(1) Performing semantic recognition processing on the attribute name of the object attribute to obtain a semantic recognition result corresponding to the attribute name of the object attribute;
(2) And identifying the attribute of the configuration item from the object attribute according to the semantic identification result.
It should be noted that, for different object attributes, developers may set different names for the object attributes, and therefore, the configuration item attributes may be identified from the object attributes based on the attribute names of the object attributes. Specifically, when the object attribute of the object to be read is obtained, semantic recognition may be performed on the attribute name of the object attribute, a semantic recognition result corresponding to the attribute name of the object attribute is obtained, and the object attribute whose attribute name indicated by the semantic recognition result is the attribute name of the configuration item attribute is used as the configuration item attribute.
In an optional embodiment, the analyzing the object property to identify the configuration item property from the object property may include:
and determining the object attribute with the preset keyword in the object attribute as the configuration item attribute.
It should be noted that, for different object attributes, different names are set by the developer, so that the configuration item attribute can be identified from the object attributes based on the attribute name of the object attribute. Specifically, the attribute name of the configuration item attribute may be used as a preset keyword, and when the object attribute of the object to be read is obtained, the object attribute having the preset keyword in the object attribute is determined as the configuration item attribute.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data reading method according to an embodiment of the present application, where the flow chart may include:
in step 201, an object attribute of an object to be read is acquired.
In step 202, tag information for the object properties is obtained.
In step 203, the object attribute whose marked object attribute is indicated by the marking information is the attribute of the configuration item is determined as the attribute of the configuration item.
The object to be read is an object that needs to read configuration data, such as a configuration item attribute of a certain component in the application system. The object to be read may include not only the attribute of the configuration item but also other attributes, and therefore, the object attribute of the object to be read needs to be analyzed to identify the attribute of the configuration item from the object attribute of the object to be read.
It should be noted that, a developer may set different tag information for different object attributes in advance, and tag information of a certain object attribute uniquely tags the object attribute, so that the configuration item attribute may be identified from the object attributes of the object to be read based on the tag information of the object attribute. Based on this, in this embodiment, the mark information of the object attribute of the object to be read may be obtained, and the object attribute whose marked object attribute is indicated by the mark information is determined as the configuration item attribute.
For example, assuming that the object attributes of the object to be read include an object attribute M1, an object attribute M2, and an object attribute M3, it may be determined that the object attribute M1 is a configuration item attribute by analyzing the tag information of the object attribute M1, the object attribute M2, and the object attribute M3, and then the configuration item attribute identified from the object attribute M1, the object attribute M2, and the object attribute M3 is the object attribute M1.
In step 204, a configuration level for the configuration item attribute is determined.
It should be noted that, for an object to be read, a developer will usually set a corresponding configuration level for its configuration item attribute. One configuration item attribute may correspond to one configuration level, and one configuration item attribute may also correspond to a plurality of configuration levels. And the specific number of the configuration levels is set by a developer according to the actual situation. For example, one configuration item attribute may correspond to an item level, and another configuration item attribute may correspond to both an item level and a transaction level. In this embodiment, after identifying the property of the configuration item, the configuration level of the property of the configuration item can be determined
In step 205, if there are a plurality of configuration levels, the priority information corresponding to each configuration level is acquired.
In step 206, a preset mapping relationship between the configuration level and the configuration reading manner is obtained.
In step 207, according to the preset mapping relationship, the configuration reading manner corresponding to the configuration level with the highest priority indicated by the priority information is obtained.
In step 208, a configuration reading mode corresponding to the configuration level with the highest priority indicated by the priority information is called, and the configuration data to be assigned is read.
It should be noted that, when one configuration item attribute corresponds to multiple configuration levels, during service processing, it is usually necessary to read configuration data corresponding to a configuration level with the highest priority, and therefore, in this embodiment, when one configuration item attribute corresponds to multiple configuration levels, priority information corresponding to each configuration level may be obtained; and then calling a configuration reading mode corresponding to the configuration level with the highest priority indicated by the priority information to read the configuration data to be assigned, and assigning the attribute of the configuration item through the configuration data to be assigned.
For example, it is assumed that the configuration item attribute of a certain object to be read corresponds to a transaction level and an item level, where the priority corresponding to the transaction level is a first priority, the priority corresponding to the item level is a second priority, and the first priority is higher than the second priority.
It should be noted that the configuration levels and the configuration reading modes are generally in one-to-one correspondence. The developer sets a mapping relation between the configuration level and the configuration reading mode in advance as a preset mapping relation, and when the configuration level is determined subsequently, the configuration reading mode corresponding to the configuration level can be obtained according to the preset mapping relation, so that the configuration reading mode corresponding to the configuration level is called, and the configuration data to be assigned is read. That is to say, in this embodiment, when the configuration level with the highest priority is determined, the configuration reading manner corresponding to the configuration level with the highest priority may be obtained according to the preset mapping relationship, and the configuration reading manner corresponding to the configuration level with the highest priority is called to read the configuration data to be assigned.
For example, assume that the predetermined mapping relationship is: the reading mode F1 is configured corresponding to the item level, the reading mode F2 is configured corresponding to the transaction level, and if the configuration level with the highest priority in the plurality of configuration levels of the configuration item attributes of a certain object to be read is the transaction level, the configuration reading mode F2 can be called to read the configuration data to be assigned.
In step 209, the configuration item attribute is assigned by the configuration data to be assigned.
In this embodiment, after the configuration data to be assigned is obtained, the configuration item attribute may be assigned through the configuration data to be assigned, that is, the attribute value of the configuration item attribute is set as the configuration data to be assigned, so that when the configuration data to be assigned needs to be read subsequently, the attribute value of the configuration item attribute is directly read.
In step 210, the attribute value of the attribute of the configuration item is read, and the business process is performed based on the read attribute value.
In this embodiment, since the attribute value of the configuration item attribute is set as the configuration data to be assigned in step 209, when the configuration data needs to be read in the service processing process, the attribute value of the configuration item attribute can be directly read, and the service processing is performed based on the read attribute value.
In the embodiment, the object attribute of the object to be read is obtained; acquiring mark information of object attributes; determining the object attribute of which the marked object attribute is the attribute of the configuration item as the attribute of the configuration item according to the marking information; determining the configuration level of the attribute of the configuration item; if a plurality of configuration levels exist, acquiring priority information corresponding to each configuration level; acquiring a preset mapping relation between a configuration level and a configuration reading mode; acquiring a configuration reading mode corresponding to the configuration level with the highest priority indicated by the priority information according to a preset mapping relation; calling a configuration reading mode corresponding to the configuration level with the highest priority indicated by the priority information, and reading configuration data to be assigned; assigning the attribute of the configuration item through the configuration data to be assigned; reading the attribute value of the attribute of the configuration item, and performing service processing based on the read attribute value, so that the configuration data can be read, and the service processing can be performed based on the read configuration data.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a data reading apparatus according to an embodiment of the present disclosure. The data reading apparatus 300 includes: an attribute identification module 301, a data reading module 302, an attribute assignment module 303, and an attribute reading module 304.
The attribute identification module 301 is configured to obtain object attributes of an object to be read, and analyze the object attributes to identify configuration item attributes from the object attributes.
The data reading module 302 is configured to determine a configuration level of the attribute of the configuration item, and call a configuration reading manner corresponding to the configuration level to read configuration data to be assigned.
And the attribute assignment module 303 is configured to assign the configuration item attribute according to the configuration data to be assigned.
An attribute reading module 304, configured to read an attribute value of the attribute of the configuration item, and perform service processing based on the read attribute value.
In an alternative embodiment, the data reading module 302 may be configured to:
if a plurality of configuration levels exist, acquiring priority information corresponding to each configuration level;
and calling a configuration reading mode corresponding to the configuration level with the highest priority indicated by the priority information, and reading the configuration data to be assigned.
In an alternative embodiment, the data reading module 302 may be configured to:
if a plurality of configuration levels exist, calling a configuration reading mode corresponding to each configuration level, and reading configuration data to be selected;
acquiring priority information corresponding to each configuration level;
and taking the configuration data to be selected corresponding to the configuration level with the highest priority indicated by the priority information as the configuration data to be assigned.
In an alternative embodiment, the data reading module 302 may be configured to:
acquiring a preset mapping relation between a configuration level and a configuration reading mode;
acquiring a configuration reading mode corresponding to the configuration level according to the preset mapping relation;
and calling a configuration reading mode corresponding to the configuration level, and reading the configuration data to be assigned.
In an alternative embodiment, the attribute identification module 301 may be configured to:
acquiring mark information of the object attribute;
and determining the object attribute of which the marked object attribute is the attribute of the configuration item as the attribute of the configuration item.
In an alternative embodiment, the attribute identification module 301 may be configured to:
performing semantic recognition processing on the attribute names of the object attributes to obtain semantic recognition results corresponding to the attribute names of the object attributes;
and identifying the attribute of the configuration item from the object attribute according to the semantic identification result.
In an alternative embodiment, the attribute identification module 301 may be configured to:
and determining the object attribute with the preset keyword in the object attributes as the configuration item attribute.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In this embodiment, the attribute identification module 301 obtains the object attributes of the object to be read, and analyzes the object attributes to identify the attributes of the configuration items from the object attributes; the data reading module 302 determines the configuration level of the configuration item attribute, and calls a configuration reading mode corresponding to the configuration level to read configuration data to be assigned; the attribute assignment module 303 assigns the configuration item attribute according to the configuration data to be assigned; the attribute reading module 304 reads the attribute value of the attribute of the configuration item, and performs service processing based on the read attribute value, thereby reading the configuration data, and performing service processing based on the read configuration data.
In addition, an embodiment of the present application further provides a computer device, where the computer device may be a terminal or a server, as shown in fig. 4, which shows a schematic structural diagram of the computer device according to the embodiment of the present application, and specifically:
the computer device 400 may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the configuration of computer device 400 shown in FIG. 4 is not intended to be limiting of computer device 400, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the computer device 400, connects the respective parts of the entire computer device 400 using various interfaces and lines, performs various functions of the computer device 400 and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the computer device 400 as a whole. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the computer device 400, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The computer device 400 further includes a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 via a power management system, so that functions of managing charging, discharging, and power consumption are implemented via the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The computer device 400 may also include an input unit 404, the input unit 404 being operable to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the computer device 400 may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the computer device 400 loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application programs stored in the memory 402, so as to implement various functions as follows:
acquiring object attributes of an object to be read, and analyzing the object attributes to identify configuration item attributes from the object attributes;
determining the configuration level of the configuration item attribute, calling a configuration reading mode corresponding to the configuration level, and reading configuration data to be assigned;
assigning the configuration item attribute through the configuration data to be assigned;
and reading the attribute value of the attribute of the configuration item, and performing service processing based on the read attribute value.
In an optional embodiment, the processor 401 executes the configuration reading method corresponding to the calling configuration level, and when the configuration data to be assigned is read, may execute:
if a plurality of configuration levels exist, acquiring priority information corresponding to each configuration level;
and calling a configuration reading mode corresponding to the configuration level with the highest priority indicated by the priority information, and reading the configuration data to be assigned.
In an optional embodiment, the processor 401 executes the configuration reading method corresponding to the calling configuration level, and when the configuration data to be assigned is read, may execute:
if a plurality of configuration levels exist, calling a configuration reading mode corresponding to each configuration level, and reading the configuration data to be selected;
acquiring priority information corresponding to each configuration level;
and taking the to-be-selected configuration data corresponding to the configuration level with the highest priority indicated by the priority information as to-be-assigned configuration data.
In an optional embodiment, the processor 401 executes the configuration reading method corresponding to the calling configuration level, and when the configuration data to be assigned is read, may execute:
acquiring a preset mapping relation between a configuration level and a configuration reading mode;
acquiring a configuration reading mode corresponding to the configuration level according to the preset mapping relation;
and calling a configuration reading mode corresponding to the configuration level, and reading the configuration data to be assigned.
In an alternative embodiment, the processor 401, when performing the analysis on the object attributes to identify the configuration item attribute from the object attributes, may perform:
acquiring mark information of the object attribute;
and determining the object attribute of which the marked object attribute is the attribute of the configuration item as the attribute of the configuration item.
In an alternative embodiment, the processor 401, when performing the analysis on the object attributes to identify the configuration item attribute from the object attributes, may perform:
performing semantic recognition processing on the attribute names of the object attributes to obtain semantic recognition results corresponding to the attribute names of the object attributes;
and identifying the attribute of the configuration item from the object attribute according to the semantic identification result.
In an alternative embodiment, the processor 401, when performing the analysis on the object attributes to identify the configuration item attribute from the object attributes, may perform:
and determining the object attribute with the preset keyword in the object attributes as the configuration item attribute.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The computer device provided by this embodiment identifies the attribute of the configuration item from the object attributes by acquiring the object attributes of the object to be read and analyzing the object attributes; determining the configuration level of the configuration item attribute, calling a configuration reading mode corresponding to the configuration level, and reading configuration data to be assigned; assigning the configuration item attribute through the configuration data to be assigned; reading the attribute value of the attribute of the configuration item, and performing service processing based on the read attribute value, so that the configuration data can be read, and the service processing can be performed based on the read configuration data.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the embodiments of the present application also provide a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the method provided in various optional implementation manners in the embodiments of the present application.
According to an aspect of the application, there is also provided a computer program product or a computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations in the embodiments described above.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and the like.
Because the instructions stored in the storage medium can execute the steps in the method provided by the embodiment of the present application, the beneficial effects that can be achieved by the method provided by the embodiment of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
The foregoing detailed description is directed to a data reading method, an apparatus, a computer device, and a computer-readable storage medium provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A data reading method, comprising:
acquiring object attributes of an object to be read, and analyzing the object attributes to identify configuration item attributes from the object attributes;
determining the configuration level of the configuration item attribute, calling a configuration reading mode corresponding to the configuration level, and reading configuration data to be assigned;
assigning the configuration item attribute through the configuration data to be assigned;
and reading the attribute value of the attribute of the configuration item, and performing service processing based on the read attribute value.
2. The data reading method according to claim 1, wherein the calling the configuration reading manner corresponding to the configuration level to read the configuration data to be assigned includes:
if a plurality of configuration levels exist, acquiring priority information corresponding to each configuration level;
and calling a configuration reading mode corresponding to the configuration level with the highest priority indicated by the priority information, and reading the configuration data to be assigned.
3. The data reading method according to claim 1, wherein the calling the configuration reading mode corresponding to the configuration level to read the configuration data to be assigned includes:
if a plurality of configuration levels exist, calling a configuration reading mode corresponding to each configuration level, and reading the configuration data to be selected;
acquiring priority information corresponding to each configuration level;
and taking the configuration data to be selected corresponding to the configuration level with the highest priority indicated by the priority information as the configuration data to be assigned.
4. The data reading method according to claim 1, wherein the calling the configuration reading mode corresponding to the configuration level to read the configuration data to be assigned includes:
acquiring a preset mapping relation between a configuration level and a configuration reading mode;
acquiring a configuration reading mode corresponding to the configuration level according to the preset mapping relation;
and calling a configuration reading mode corresponding to the configuration level, and reading the configuration data to be assigned.
5. The data reading method according to any one of claims 1 to 4, wherein the analyzing the object attributes to identify configuration item attributes from the object attributes comprises:
acquiring mark information of the object attribute;
and determining the object attribute of which the marked object attribute is the attribute of the configuration item as the attribute of the configuration item.
6. The data reading method according to any one of claims 1 to 4, wherein the analyzing the object attributes to identify configuration item attributes from the object attributes comprises:
performing semantic recognition processing on the attribute name of the object attribute to obtain a semantic recognition result corresponding to the attribute name of the object attribute;
and identifying the attribute of the configuration item from the object attribute according to the semantic identification result.
7. The data reading method according to any one of claims 1 to 4, wherein the analyzing the object attributes to identify configuration item attributes from the object attributes comprises:
and determining the object attribute with the preset keyword in the object attributes as the configuration item attribute.
8. A data reading apparatus, comprising:
the attribute identification module is used for acquiring the object attributes of the object to be read and analyzing the object attributes to identify the attributes of the configuration items from the object attributes;
the data reading module is used for determining the configuration level of the configuration item attribute, calling a configuration reading mode corresponding to the configuration level and reading the configuration data to be assigned;
the attribute assignment module is used for assigning the configuration item attribute through the configuration data to be assigned;
and the attribute reading module is used for reading the attribute value of the configuration item attribute and carrying out service processing based on the read attribute value.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the data reading method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when the computer program is run on a computer, causes the computer to carry out the steps of the data reading method according to any one of claims 1 to 7.
CN202211477227.6A 2022-11-23 2022-11-23 Data reading method and device, storage medium and computer equipment Pending CN115757036A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211477227.6A CN115757036A (en) 2022-11-23 2022-11-23 Data reading method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211477227.6A CN115757036A (en) 2022-11-23 2022-11-23 Data reading method and device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN115757036A true CN115757036A (en) 2023-03-07

Family

ID=85336318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211477227.6A Pending CN115757036A (en) 2022-11-23 2022-11-23 Data reading method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN115757036A (en)

Similar Documents

Publication Publication Date Title
US7581047B2 (en) Usage of keyboard driver in extensible firmware interface for adding new hot keys at firmware level
US7979864B2 (en) Apparatus for setting used license of executing job into unused license state and allocating the set unused license to a to be executed job based on priority
CN108287708B (en) Data processing method and device, server and computer readable storage medium
CN103984538A (en) Application scenario identification method, power consumption management method, devices and terminal equipment
CN111831441A (en) Memory recovery method and device, storage medium and electronic equipment
CN111831440A (en) Memory recovery method and device, storage medium and electronic equipment
CN110908865A (en) Memory leakage monitoring method and device and electronic equipment
CN113032105B (en) Kubernetes cluster access control method, system and related equipment
CN113568833A (en) Test case determination method and device, computer equipment and readable storage medium
CN111831411A (en) Task processing method and device, storage medium and electronic equipment
CN115576600A (en) Code change-based difference processing method and device, terminal and storage medium
CN113127050B (en) Application resource packaging process monitoring method, device, equipment and medium
CN114237743A (en) Interface loading method and device, electronic equipment and storage medium
CN111831432B (en) IO request scheduling method and device, storage medium and electronic equipment
CN110750346B (en) Task operation optimization method, device, terminal and storage medium
CN111078587B (en) Memory allocation method and device, storage medium and electronic equipment
CN111831437A (en) Device management method, device, storage medium and electronic device
CN111831439A (en) IO request processing method and device, storage medium and electronic equipment
CN111831436A (en) Scheduling method and device of IO (input/output) request, storage medium and electronic equipment
CN115757036A (en) Data reading method and device, storage medium and computer equipment
US20090198842A1 (en) System And Method For Identifying Lost/Stale Hardware In A Computing System
CN114579136A (en) Code processing method and device, computer equipment and storage medium
CN114238391A (en) Data paging query method and device, electronic equipment and storage medium
CN108958929B (en) Method and device for applying algorithm library, storage medium and electronic equipment
CN113282282B (en) Business requirement form publishing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination