CN116401418B - Data reading and writing method, device, equipment and storage medium - Google Patents

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

Info

Publication number
CN116401418B
CN116401418B CN202310671919.2A CN202310671919A CN116401418B CN 116401418 B CN116401418 B CN 116401418B CN 202310671919 A CN202310671919 A CN 202310671919A CN 116401418 B CN116401418 B CN 116401418B
Authority
CN
China
Prior art keywords
read
write
target
data
data storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310671919.2A
Other languages
Chinese (zh)
Other versions
CN116401418A (en
Inventor
王雄儒
张晖
赵鑫鑫
姜凯
王帅
于帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Inspur Scientific Research Institute Co Ltd
Original Assignee
Shandong Inspur Scientific Research Institute 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 Shandong Inspur Scientific Research Institute Co Ltd filed Critical Shandong Inspur Scientific Research Institute Co Ltd
Priority to CN202310671919.2A priority Critical patent/CN116401418B/en
Publication of CN116401418A publication Critical patent/CN116401418A/en
Application granted granted Critical
Publication of CN116401418B publication Critical patent/CN116401418B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; 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/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9035Filtering based on additional data, e.g. user or group profiles
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a data read-write method, a device, equipment and a storage medium, which are applied to a first data storage layer in a preset meta universe database, relate to the field of the meta universe database and comprise the following steps: determining a corresponding target data storage layer and a corresponding target communication channel based on the read-write target storage level information corresponding to the current meta-universe role; determining a read-write attribute corresponding to the target data storage layer to obtain corresponding target read-write attribute information; the read-write attribute comprises a read-only attribute and a readable-write attribute; and when the target read-write attribute information indicates that the target data storage layer is the readable-write attribute, jumping to a corresponding readable-write state, and executing corresponding data reading or data writing operation based on the local read-write requirement corresponding to the current meta-universe role and the target communication channel. The application can effectively improve the information transmission efficiency and flexibility of the metauniverse user and reduce the operation cost of the metauniverse database.

Description

Data reading and writing method, device, equipment and storage medium
Technical Field
The present application relates to the field of metadata databases, and in particular, to a method, an apparatus, a device, and a storage medium for reading and writing data.
Background
Metauniverse (Metaverse) is a digital living space constructed by human beings using digital technology, mapped by or exceeding the real world, and capable of interacting with the real world, and provided with a novel social system.
With the continuous progress of metauniverse research in recent years, the variety and quantity of information supporting normal operation of metauniverse are exponentially increasing. As one of the metauniverse five-earth foundation techniques, the reliability of information storage is of great importance. At present, most of the metadata realizes data storage through an erasure code database, however, the erasure code technology storage mechanism is not perfectly matched with the operation mode of the metadata, the operation error rate is high, the recovery efficiency is low, the operation cost is huge, the flexibility is low, and the storage of massive data cannot be satisfied, so that the serious hidden danger is brought to the information support reliability of the metadata users.
Disclosure of Invention
Accordingly, the application aims to provide a data read-write method, a device, equipment and a storage medium, which can effectively improve the information transmission efficiency and flexibility of metauniverse users and reduce the operation cost of a metauniverse database. The specific scheme is as follows:
in a first aspect, the present application provides a data read-write method, applied to a first data storage layer in a preset meta-universe database, where the preset meta-universe database includes a plurality of data storage layers, the method includes:
determining a corresponding target data storage layer and a corresponding target communication channel based on the read-write target storage level information corresponding to the current meta-universe role;
determining a read-write attribute corresponding to the target data storage layer to obtain corresponding target read-write attribute information; the read-write attribute comprises a read-only attribute and a readable-write attribute;
and when the target read-write attribute information indicates that the target data storage layer is the readable-write attribute, jumping to a corresponding readable-write state, and executing corresponding data reading or data writing operation based on the local read-write requirement corresponding to the current meta-universe role and the target communication channel.
Optionally, the performing, based on the read-write requirement locally corresponding to the metauniverse role and the target communication channel, a corresponding data reading or data writing operation includes:
judging the local read-write requirements corresponding to the current meta-universe role to obtain a corresponding judging result;
and executing corresponding data reading or data writing operation based on the judging result and the target communication channel.
Optionally, the performing, based on the determination result and the target communication channel, a corresponding data reading or data writing operation includes:
and when the judging result shows that the local read-write requirement corresponding to the current meta-space character is a data read requirement, sending a local storage address of the current meta-space character and a corresponding read instruction to the target data storage layer through the address bus of the target communication channel.
Optionally, after the sending, to the target data storage layer through the address bus of the target communication channel, the local storage address of the metauniverse role and the corresponding read instruction, the method further includes:
and receiving corresponding data to be read fed back by the target data storage layer through the target communication channel.
Optionally, the performing, based on the determination result and the target communication channel, a corresponding data reading or data writing operation includes:
and when the judging result shows that the local read-write requirement corresponding to the current meta-space character is a data write requirement, sending the local storage address of the current meta-space character and a corresponding write instruction to the target data storage layer through the address bus of the target communication channel.
Optionally, after the sending, to the target data storage layer through the address bus of the target communication channel, the local storage address of the metauniverse role and the corresponding writing instruction, the method further includes:
and writing corresponding data to be stored into the target data storage layer through the data bus of the target communication channel.
Optionally, after determining the read-write attribute corresponding to the target data storage layer to obtain the corresponding target read-write attribute information, the method further includes:
and when the target read-write attribute information indicates that the target data storage layer is of a read-only attribute, jumping to a corresponding read-only state, and executing corresponding data reading operation based on the target communication channel.
In a second aspect, the present application provides a data read-write device, applied to a first data storage layer in a preset meta-universe database, where the preset meta-universe database includes a plurality of data storage layers, the device includes:
the channel determining module is used for determining a corresponding target data storage layer and a corresponding target communication channel based on the read-write target storage level information corresponding to the current meta-universe role;
the read-write attribute determining module is used for determining read-write attributes corresponding to the target data storage layer so as to obtain corresponding target read-write attribute information; the read-write attribute comprises a read-only attribute and a readable-write attribute;
and the data read-write module is used for jumping to a corresponding readable-writable state when the target read-write attribute information indicates that the target data storage layer is the readable-writable attribute, and executing corresponding data read-write operation or data write operation based on the read-write requirement locally corresponding to the current meta-universe role and the target communication channel.
In a third aspect, the present application provides an electronic device, comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the steps of the data reading and writing method.
In a fourth aspect, the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the aforementioned data read-write method.
In the application, the first data storage layer in the preset meta-universe database firstly determines a corresponding target data storage layer and a corresponding target communication channel based on the read-write target storage level information corresponding to the current meta-universe role; then determining the read-write attribute corresponding to the target data storage layer to obtain corresponding target read-write attribute information; the read-write attribute comprises a read-only attribute and a readable-write attribute; and then when the target read-write attribute information indicates that the target data storage layer is a readable-write attribute, jumping to a corresponding readable-write state, and executing corresponding data reading or data writing operation based on the local read-write requirement corresponding to the current meta-universe role and the target communication channel. According to the application, the preset meta space database is hierarchically divided, and the target data storage layer and the corresponding target communication channel are determined when the first data storage layer reads and writes data, so that the information transmission efficiency and flexibility of the meta space user can be effectively improved and the operation cost of the meta space database can be reduced on the premise of ensuring the reliability when the data is read and written on the basis of the specific communication channel.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a data read-write method provided by the application;
FIG. 2 is a diagram of the overall architecture of a metauniverse database according to the present application;
FIG. 3 is a schematic diagram of a data read-write process according to the present application;
FIG. 4 is a schematic diagram of an implementation of a metauniverse database application provided by the present application;
FIG. 5 is a flowchart of a specific data reading and writing method according to the present application;
FIG. 6 is a schematic diagram of a data read-write device according to the present application;
fig. 7 is a block diagram of an electronic device according to the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
With the continuous progress of metauniverse research in recent years, the variety and quantity of information supporting normal operation of metauniverse are exponentially increasing. As one of the metauniverse five-earth foundation techniques, the reliability of information storage is of great importance. At present, most of the metadata realizes data storage through an erasure code database, however, the erasure code technology storage mechanism is not perfectly matched with the operation mode of the metadata, the operation error rate is high, the recovery efficiency is low, the operation cost is huge, the flexibility is low, and the storage of massive data cannot be satisfied, so that the serious hidden danger is brought to the information support reliability of the metadata users. Therefore, the application provides a data read-write scheme, which can effectively improve the information transmission efficiency and flexibility of the metauniverse user and reduce the operation cost of the metauniverse database.
Referring to fig. 1, an embodiment of the present application discloses a data read-write method, which is applied to a first data storage layer in a preset meta-universe database, wherein the preset meta-universe database includes a plurality of data storage layers, and the method includes:
and S11, determining a corresponding target data storage layer and a corresponding target communication channel based on the read-write target storage level information corresponding to the current meta-universe character.
It should be understood that, in this embodiment, in order to meet the high-reliability storage requirement of the metauniverse user in the context of artificial intelligence and big data age, the preset metauniverse database adopts an element layering method, and the database storage array is layered into a plurality of data storage layers based on the metauniverse function, and the memory space scale of each layer can be set by the metauniverse developer according to the actual requirement, and is specifically divided into: a role layer (i.e., the first data storage layer), an experience layer (i.e., the second data storage layer), a discovery layer (i.e., the third data storage layer), a co-creation layer (i.e., the fourth data storage layer), and other user-defined levels. The unused data storage layers are connected by communication channels between layers, wherein each communication channel connects the role layer and other data storage layers in the pre-set meta-universe database, respectively. Therefore, the storage functions of the data storage layers are independent and do not interfere with each other, so that the information transmission efficiency and flexibility of a metauniverse user are improved to the greatest extent on the premise of ensuring the working reliability of the metauniverse system, and the system operation cost is reduced.
It is further understood that the internal roles of the metauniverse are divided into: biological people, electronic people, digital people, virtual people, information people. Each metauniverse user has a metauniverse character, and each character has different attributes. The character layer is a top data storage layer of the preset metauniverse database and is also a layer closest to the metauniverse character, the layer is decomposed into a plurality of small storage partitions, and each partition stores personal information of each character in the metauniverse, including but not limited to identity information, image information and social information of the character in the metauniverse. The character data stored in each small independent partition of the character layer can be set and modified according to the attribute of the metauniverse user, and each independent partition has a unique storage address for identifying the character and the user attribution of the current partition by the metauniverse database. In fig. 2, a (a 1 、A 2 And A is a 3 )、B(B 1 、B 2 And B is connected with 3 )、C(C 1 、C 2 And C 3 )、D(D 1 And D 2 )、E(E 1 And E is connected with 2 ) Representing the different roles of three biometric persons, three electronic persons, three digital persons, two virtual persons and two information persons and their corresponding storage partition locations, respectively.
The environment layer is used for storing information necessary for ecology and environment appearance of the current metauniverse, including but not limited to metauniverse natural environment information, ecology climate information, civilization system information, science and technology level information and social order information. The layer provides environment information for all roles in the current meta-universe, the access does not need to distinguish the types of the roles, the specific storage address is not needed, and the stored information is shared by all roles. The information stored by the environment layer can only be modified by the meta-universe development administrator, and the layer storage partition is a read-only attribute for all roles of the meta-universe.
The discovery layer stores economic and ecological information existing in the meta-universe, and in short digitizes the content or product created by the character in the meta-universe to obtain profits, including but not limited to the ecological information mainly including the production, vending and consumption of the character. The information of the layer is shared by roles, the roles can access and modify the economic and ecological information of the roles, and the economic and ecological information stored by each role in the layer is marked with the storage address of the current role in the layer of the roles, so that the meta space development manager can manage in an overall mode.
For the co-creation layer, the meta-universe has extremely strong co-creation and decentralization characteristics, namely, all roles can produce contents, and the meta-universe functions and ecological space are expanded. For this purpose, the information stored by the co-creation layer is provided by all roles together and marks the storage address of the information provider at the role layer. And after the output content is inspected by a meta-universe development manager, the meta-universe upgrading optimization operation corresponding to the information can be executed. The role co-creation information of the metauniverse is stored in a co-creation layer of a metauniverse database. Besides the necessary data storage hierarchy, the preset meta-universe database can expand more custom data storage layers according to other requirements of users.
Step S12, determining the read-write attribute corresponding to the target data storage layer to obtain corresponding target read-write attribute information; the read-write attributes include read-only attributes and readable-write attributes.
In this embodiment, after the target communication channel is determined as shown in fig. 3, since the function of the target communication channel is related to the target data storage layer, the read-write attribute of the target data storage layer needs to be determined to determine the operations that can be performed through the target communication channel.
Specifically, as shown in connection with fig. 2, each communication channel may be classified into a unidirectional channel (data bus is read/write only) and a bidirectional channel (data bus is read/write capable) according to each hierarchy attribute. The experience layer is of a read-only property, and the discovery layer and the co-creation layer are of a readable and writable property because the discovery layer is role-sharing and the information stored in the co-creation layer is provided by all roles. Similarly, the read-write properties of other data storage layers may be determined. Furthermore, for the unidirectional channel, for example, channel 1 connecting the role layer and the experience layer, the experience layer may also perform a corresponding data reading operation to the decision layer based on the channel 1. For the bi-directional channel, for example, channel 2 connecting the role layer and the discovery layer, the discovery layer may also perform a corresponding data read or data write operation based on the channel 2 to enable inter-layer information exchange.
And step S13, when the target read-write attribute information indicates that the target data storage layer is a readable-write attribute, jumping to a corresponding readable-write state, and executing corresponding data reading or data writing operation based on the local read-write requirement corresponding to the current meta-universe role and the target communication channel.
In conjunction with fig. 3, in this embodiment, when it is determined that the target communication channel is a bidirectional channel, it is first determined that a specific read-write requirement type is to be executed after the target communication channel is skipped to a readable-writable state, so that the executing corresponding data reading or data writing operation based on the local read-write requirement corresponding to the meta-space role and the target communication channel may specifically include: judging the local read-write requirements corresponding to the current meta-universe role to obtain a corresponding judging result; and executing corresponding data reading or data writing operation based on the judging result and the target communication channel.
Further, in one embodiment, the determining result indicates that the local read-write requirement corresponding to the meta-space character is a data read requirement, and then the local storage address of the meta-space character and the corresponding read instruction are sent to the target data storage layer through the address bus of the target communication channel. And then receiving corresponding data to be read fed back by the target data storage layer through the target communication channel, so as to verify, and finishing the data reading operation. In another embodiment, the judging result indicates that the local read-write requirement corresponding to the current metauniverse role is a data write requirement, and then the local storage address of the current metauniverse role and a corresponding write instruction are sent to the target data storage layer through the address bus of the target communication channel. And then writing corresponding data to be stored into the target data storage layer through the data bus of the target communication channel so as to complete the data reading operation. It should be understood that the preset meta-universe database has N-1 communication channels (where N is the number of data storage layers), where each communication channel includes 1 address bus with a bit width of a and 1 data bus with a bit width of d.
It should be further understood that, referring to fig. 4, in this embodiment, the preset metauniverse database and the control CPU (Central Processing Unit ) of the corresponding metauniverse database server together form a metauniverse database control terminal, and a metauniverse database development manager may manage and maintain the metauniverse database by using the corresponding preset metauniverse database development application software through the metauniverse database server.
For many users, different terminals (such as a computer, a wearable device, chip implantation and the like) can be used for calling multiple technologies (such as a blockchain, artificial intelligence, the internet of things, edge calculation, virtual reality technology and the like), and a control CPU (central processing unit) connected with the metauniverse database server through a network or a radio and the like can acquire user data (such as character data, environment data, economic ecological data and the like) stored in the preset metauniverse database, so that the application of the metauniverse data is realized.
Therefore, in the embodiment of the application, the first data storage layer in the preset meta-universe database firstly determines the corresponding target data storage layer and the corresponding target communication channel based on the read-write target storage level information corresponding to the current meta-universe role; then determining the read-write attribute corresponding to the target data storage layer to obtain corresponding target read-write attribute information; the read-write attribute comprises a read-only attribute and a readable-write attribute; and then when the target read-write attribute information indicates that the target data storage layer is a readable-write attribute, jumping to a corresponding readable-write state, and executing corresponding data reading or data writing operation based on the local read-write requirement corresponding to the current meta-universe role and the target communication channel. According to the application, the preset meta space database is hierarchically divided, and the target data storage layer and the corresponding target communication channel are determined when the first data storage layer reads and writes data, so that the information transmission efficiency and flexibility of the meta space user can be effectively improved and the operation cost of the meta space database can be reduced on the premise of ensuring the reliability when the data is read and written on the basis of the specific communication channel.
Referring to fig. 5, an embodiment of the present application discloses a data read-write method, which is applied to a first data storage layer in a preset meta-universe database, where the preset meta-universe database includes a plurality of data storage layers, and the method includes:
and S21, determining a corresponding target data storage layer and a corresponding target communication channel based on the read-write target storage level information corresponding to the current meta-universe character.
Step S22, determining the read-write attribute corresponding to the target data storage layer to obtain corresponding target read-write attribute information; the read-write attributes include read-only attributes and readable-write attributes.
Step S23, when the target read-write attribute information indicates that the target data storage layer is of a read-only attribute, jumping to a corresponding read-only state, and executing corresponding data reading operation based on the target communication channel.
Specifically, in this embodiment, when it is determined that the target communication channel is a unidirectional channel, the specific read-write request type is not required to be determined after the target communication channel jumps to the read-only state, and the corresponding data reading operation can be directly performed when there is a request. That is, the local storage address of the metauniverse role and the corresponding read instruction are first sent to the target data storage layer through the address bus of the target communication channel. And then receiving corresponding data to be read fed back by the target data storage layer through the target communication channel, so as to verify, and finishing the data reading operation.
For the specific process of steps S21 to S22, reference may be made to the corresponding content disclosed in the foregoing embodiment, and no further description is given here.
Therefore, in the embodiment of the application, when the first data storage layer in the preset meta-universe database reads and writes data, the corresponding target data storage layer and the corresponding target communication channel are determined based on the read-write target storage level information corresponding to the current meta-universe role; then determining the read-write attribute corresponding to the target data storage layer to obtain corresponding target read-write attribute information; the read-write attribute comprises a read-only attribute and a readable-write attribute; and then when the target read-write attribute information indicates that the target data storage layer is of a read-only attribute, jumping to a corresponding read-only state, and executing corresponding data reading operation based on the target communication channel. Thus, when the demand corresponding to the current metauniverse role exists for the target communication channel, the data reading operation can be directly executed, and the efficiency is improved.
Referring to fig. 6, the embodiment of the application also correspondingly discloses a data read-write device, which is applied to a first data storage layer in a preset meta-universe database, wherein the preset meta-universe database comprises a plurality of data storage layers, and the device comprises:
a channel determining module 11, configured to determine a corresponding target data storage layer and a corresponding target communication channel based on the read-write target storage level information corresponding to the current meta-universe role;
the read-write attribute determining module 12 is configured to determine a read-write attribute corresponding to the target data storage layer, so as to obtain corresponding target read-write attribute information; the read-write attribute comprises a read-only attribute and a readable-write attribute;
and the data read-write module 13 is used for jumping to a corresponding readable-writable state when the target read-write attribute information indicates that the target data storage layer is a readable-writable attribute, and executing corresponding data reading or data writing operation based on the local read-write requirement corresponding to the current meta-universe role and the target communication channel.
The more specific working process of each module may refer to the corresponding content disclosed in the foregoing embodiment, and will not be described herein.
Therefore, in the embodiment of the application, the first data storage layer in the preset meta-universe database firstly determines the corresponding target data storage layer and the corresponding target communication channel based on the read-write target storage level information corresponding to the current meta-universe role; then determining the read-write attribute corresponding to the target data storage layer to obtain corresponding target read-write attribute information; the read-write attribute comprises a read-only attribute and a readable-write attribute; and then when the target read-write attribute information indicates that the target data storage layer is a readable-write attribute, jumping to a corresponding readable-write state, and executing corresponding data reading or data writing operation based on the local read-write requirement corresponding to the current meta-universe role and the target communication channel. According to the application, the preset meta space database is hierarchically divided, and the target data storage layer and the corresponding target communication channel are determined when the first data storage layer reads and writes data, so that the information transmission efficiency and flexibility of the meta space user can be effectively improved and the operation cost of the meta space database can be reduced on the premise of ensuring the reliability when the data is read and written on the basis of the specific communication channel.
In some specific embodiments, the data read/write module 13 may specifically include:
the read-write requirement judging unit is used for judging the read-write requirement corresponding to the current meta-universe role locally to obtain a corresponding judging result;
and the read-write execution sub-module is used for executing corresponding data reading or data writing operation based on the judging result and the target communication channel.
In some specific embodiments, the read-write execution sub-module may specifically include:
and the reading request sending unit is used for sending the local storage address of the current metauniverse character and a corresponding reading instruction to the target data storage layer through the address bus of the target communication channel when the judging result shows that the local reading and writing requirement corresponding to the current metauniverse character is a data reading requirement.
In some specific embodiments, the data read-write device may specifically further include:
and the data reading unit is used for receiving corresponding data to be read fed back by the target data storage layer through the target communication channel.
In some specific embodiments, the read-write execution sub-module may specifically include:
and the writing request sending unit is used for sending the local storage address of the current metauniverse role and a corresponding writing instruction to the target data storage layer through the address bus of the target communication channel when the judging result shows that the local reading and writing requirement corresponding to the current metauniverse role is a data writing requirement.
In some specific embodiments, the data read-write device may specifically further include:
and the data feedback unit is used for writing corresponding data to be stored into the target data storage layer through the data bus of the target communication channel.
In some specific embodiments, the data read-write device may specifically further include:
and the read-only attribute skip module is used for skipping to a corresponding read-only state when the target read-write attribute information indicates that the target data storage layer is of a read-only attribute, and executing corresponding data reading operation based on the target communication channel.
Further, the embodiment of the present application further discloses an electronic device, and fig. 7 is a block diagram of an electronic device 20 according to an exemplary embodiment, where the content of the figure is not to be considered as any limitation on the scope of use of the present application.
Fig. 7 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is configured to store a computer program, which is loaded and executed by the processor 21 to implement relevant steps in the data read-write method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon may include an operating system 221, a computer program 222, and the like, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and computer programs 222, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the data read-write method performed by the electronic device 20 disclosed in any of the previous embodiments.
Further, the application also discloses a computer readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the data read-write method disclosed above. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing has outlined rather broadly the more detailed description of the application in order that the detailed description of the application that follows may be better understood, and in order that the present principles and embodiments may be better understood; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. The data reading and writing method is characterized by being applied to a first data storage layer in a preset meta-universe database, wherein the preset meta-universe database comprises a plurality of data storage layers, and the method comprises the following steps:
determining a corresponding target data storage layer and a corresponding target communication channel based on the read-write target storage level information corresponding to the current meta-universe role;
determining a read-write attribute corresponding to the target data storage layer to obtain corresponding target read-write attribute information; the read-write attribute comprises a read-only attribute and a readable-write attribute;
and when the target read-write attribute information indicates that the target data storage layer is the readable-write attribute, jumping to a corresponding readable-write state, and executing corresponding data reading or data writing operation based on the local read-write requirement corresponding to the current meta-universe role and the target communication channel.
2. The method of claim 1, wherein the performing a respective data read or data write operation based on the read-write requirements locally corresponding to the current meta-space character and the target communication channel comprises:
judging the local read-write requirements corresponding to the current meta-universe role to obtain a corresponding judging result;
and executing corresponding data reading or data writing operation based on the judging result and the target communication channel.
3. The data read-write method according to claim 2, wherein said performing a corresponding data read or data write operation based on the determination result and the target communication channel includes:
and when the judging result shows that the local read-write requirement corresponding to the current meta-space character is a data read requirement, sending a local storage address of the current meta-space character and a corresponding read instruction to the target data storage layer through the address bus of the target communication channel.
4. The method according to claim 3, further comprising, after said transmitting the local storage address of the metauniverse character and the corresponding read instruction to the target data storage layer via the address bus of the target communication channel:
and receiving corresponding data to be read fed back by the target data storage layer through the target communication channel.
5. The data read-write method according to claim 2, wherein said performing a corresponding data read or data write operation based on the determination result and the target communication channel includes:
and when the judging result shows that the local read-write requirement corresponding to the current meta-space character is a data write requirement, sending the local storage address of the current meta-space character and a corresponding write instruction to the target data storage layer through the address bus of the target communication channel.
6. The method according to claim 5, further comprising, after said transmitting the local storage address of the metauniverse character and the corresponding write instruction to the target data storage layer via the address bus of the target communication channel:
and writing corresponding data to be stored into the target data storage layer through the data bus of the target communication channel.
7. The method according to any one of claims 1 to 6, wherein after determining the read-write attribute corresponding to the target data storage layer to obtain the corresponding target read-write attribute information, further comprising:
and when the target read-write attribute information indicates that the target data storage layer is of a read-only attribute, jumping to a corresponding read-only state, and executing corresponding data reading operation based on the target communication channel.
8. A data read-write device, characterized by being applied to a first data storage layer in a preset meta-universe database, wherein the preset meta-universe database comprises a plurality of data storage layers, the device comprising:
the channel determining module is used for determining a corresponding target data storage layer and a corresponding target communication channel based on the read-write target storage level information corresponding to the current meta-universe role;
the read-write attribute determining module is used for determining read-write attributes corresponding to the target data storage layer so as to obtain corresponding target read-write attribute information; the read-write attribute comprises a read-only attribute and a readable-write attribute;
and the data read-write module is used for jumping to a corresponding readable-writable state when the target read-write attribute information indicates that the target data storage layer is the readable-writable attribute, and executing corresponding data read-write operation or data write operation based on the read-write requirement locally corresponding to the current meta-universe role and the target communication channel.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the data read-write method according to any one of claims 1 to 7.
10. A computer readable storage medium for storing a computer program which, when executed by a processor, implements the data read-write method according to any one of claims 1 to 7.
CN202310671919.2A 2023-06-08 2023-06-08 Data reading and writing method, device, equipment and storage medium Active CN116401418B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310671919.2A CN116401418B (en) 2023-06-08 2023-06-08 Data reading and writing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310671919.2A CN116401418B (en) 2023-06-08 2023-06-08 Data reading and writing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116401418A CN116401418A (en) 2023-07-07
CN116401418B true CN116401418B (en) 2023-08-15

Family

ID=87012739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310671919.2A Active CN116401418B (en) 2023-06-08 2023-06-08 Data reading and writing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116401418B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9846784B1 (en) * 2013-02-26 2017-12-19 Rockwell Collins, Inc. Multi-level storage system and method
CN112162699A (en) * 2020-09-18 2021-01-01 北京浪潮数据技术有限公司 Data reading and writing method, device and equipment and computer readable storage medium
CN115202576A (en) * 2022-06-22 2022-10-18 成都飞机工业(集团)有限责任公司 Data reading and writing method based on layered shelf type storage structure

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9846784B1 (en) * 2013-02-26 2017-12-19 Rockwell Collins, Inc. Multi-level storage system and method
CN112162699A (en) * 2020-09-18 2021-01-01 北京浪潮数据技术有限公司 Data reading and writing method, device and equipment and computer readable storage medium
CN115202576A (en) * 2022-06-22 2022-10-18 成都飞机工业(集团)有限责任公司 Data reading and writing method based on layered shelf type storage structure

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
A data security model based on heterogeneous network;Zhou Jing et al.;Computer Engineering and Science;第2160-2165页 *

Also Published As

Publication number Publication date
CN116401418A (en) 2023-07-07

Similar Documents

Publication Publication Date Title
Xu et al. Unleashing the power of edge-cloud generative ai in mobile networks: A survey of aigc services
CN110945513B (en) Domain addition system and method for language understanding system
CN111541570B (en) Cloud service QoS prediction method based on multi-source feature learning
CN103593434A (en) Application recommendation method and device and server equipment
CN111708641B (en) Memory management method, device, equipment and computer readable storage medium
CN112766596B (en) Construction method of building energy consumption prediction model, energy consumption prediction method and device
US20080235598A1 (en) Sequential restructuring of a collaborative context
CN108363684A (en) List creation method, device and server
CN113835693A (en) Code generation method and device, electronic equipment and storage medium
US8103559B2 (en) Maintenance of group shared inventories in a virtual universe
CN108351766A (en) Slave mobile device creates and modification application
Zhao et al. Design of
US10706225B2 (en) Form management system and method
CN116401418B (en) Data reading and writing method, device, equipment and storage medium
CN113110843A (en) Contract generation model training method, contract generation method and electronic equipment
US20100316987A1 (en) Educational services and contracts
CN116109102A (en) Resource allocation method and system based on genetic algorithm
Lian et al. Towards effective personalized service QoS prediction from the perspective of multi-task learning
CN116362800A (en) System for accelerating consumption feedback wetting
CN112860869B (en) Dialogue method, device and storage medium based on hierarchical reinforcement learning network
CN110362305A (en) A kind of form component state switching method and device
Valdez et al. Toolbox for bio‐inspired optimization of mathematical functions
CN113553514A (en) Object recommendation method and device based on artificial intelligence and electronic equipment
CN101378406A (en) Method for selecting data grid copy
CN110162579A (en) A kind of intelligence learning platform

Legal Events

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