A metadata processing method, device, electronic device and storage medium

CN113590616BActive Publication Date: 2024-10-22SANGFOR TECH INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110809040.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-16
Publication Date
2024-10-22
Estimated Expiration
2041-07-16

AI Technical Summary

Technical Problem

[0002]目前,常用的元数据管理和治理产品,如目前用于分析数据血缘关系的框架的apache atlas,可以方便的分析数据表的表级血缘、字段血缘,可以采集大部分关于数据表的元数据信息,包括注释、表注释、最近更新时间等,但是却缺少相关手段调取数据表占用的内存的大小

Benefits of technology

[0043]本申请实施例的技术方案,通过获取至少一个数据表的元数据属性标识符;基于所述至少一个数据表的元数据属性标识符确定所述至少一个数据表中的每个数据表的存储量信息;将所述至少一个数据表中的各数据表的存储量信息记录至各数据表的元数据属性信息中。如此,能够基于数据表的元数据来确定数据表的存储量信息,通过对数据表存储量信息的确定及存储,便于用户后续根据数据表存储量的大小对数据表进行处理,例如,根据数据表的存储量信息选择合适的备份服务器对数据表进行备份。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113590616B_ABST
    Figure CN113590616B_ABST
Patent Text Reader

Abstract

The present application discloses a metadata processing method, device, electronic device and storage medium, wherein the method comprises: obtaining a metadata attribute identifier of at least one data table; determining storage capacity information of each data table in the at least one data table based on the metadata attribute identifier of the at least one data table; and recording the storage capacity information of each data table in the at least one data table into the metadata attribute information of each data table.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular, to a metadata processing method, device, electronic device, and storage medium. Background Art

[0002] At present, commonly used metadata management and governance products, such as Apache Atlas, a framework currently used to analyze data lineage, can easily analyze the table-level lineage and field lineage of data tables, and can collect most of the metadata information about data tables, including comments, table comments, and last update time, etc. However, there is a lack of relevant means to retrieve the size of the memory occupied by the data table. Summary of the invention

[0003] To solve the above technical problems, the embodiments of the present application provide a metadata processing method, device, electronic device and storage medium.

[0004] The present application provides a metadata processing method, the method comprising:

[0005] Get a metadata attribute identifier of at least one data table;

[0006] determining storage capacity information of each data table in the at least one data table based on the metadata attribute identifier of the at least one data table;

[0007] The storage capacity information of each data table in the at least one data table is recorded in the metadata attribute information of each data table.

[0008] In an optional implementation manner of the present application, obtaining a metadata attribute identifier of at least one data table includes:

[0009] Obtaining at least one data table, and determining an identifier of the at least one data table;

[0010] A metadata attribute identifier of the at least one data table is obtained based on the identifier of the at least one data table.

[0011] In an optional implementation manner of the present application, obtaining at least one data table includes:

[0012] At least one data table is acquired using a filtering condition; the filtering condition includes at least one of the following: a paging parameter, a data table type, and an attribute value indicating that the data table has not been deleted.

[0013] In an optional implementation manner of the present application, obtaining a metadata attribute identifier of at least one data table includes:

[0014] Get metadata attributes of at least one data table;

[0015] A metadata attribute identifier of the at least one data table is obtained based on the metadata attribute of the at least one data table.

[0016] In an optional implementation manner of the present application, determining the storage capacity information of each data table in the at least one data table based on the metadata attribute identifier of the at least one data table includes:

[0017] Determine a storage path of each data table in the at least one data table in the file system based on the metadata attribute identifier of the at least one data table;

[0018] Based on the storage path of each data table in the at least one data table in the file system, storage capacity information of each data table in the at least one data table under the corresponding storage path is determined.

[0019] In an optional implementation manner of the present application, after obtaining the metadata attribute identifier of at least one data table, the method further includes:

[0020] Obtaining change data of metadata of the at least one data table;

[0021] Generate description information for describing the metadata change data;

[0022] The description information is parsed, and prompt information is generated based on the parsing result, where the prompt information is used to prompt the change of metadata of the at least one data table of the target object.

[0023] In an optional implementation manner of the present application, obtaining the metadata change data of the at least one data table includes:

[0024] Capturing operations on the at least one data table using a first preset method, and acquiring metadata of the at least one data table by periodic scanning using a second preset method;

[0025] Table update data of the metadata of the at least one data table is determined based on the metadata of the at least one data table acquired through periodic scanning.

[0026] The embodiment of the present application also provides a metadata processing device, the device comprising:

[0027] A first acquisition unit, used to acquire a metadata attribute identifier of at least one data table;

[0028] a determining unit, configured to determine storage capacity information of each data table in the at least one data table based on a metadata attribute identifier of the at least one data table;

[0029] The recording unit is used to record the storage capacity information of each data table in the at least one data table into the metadata attribute information of each data table.

[0030] In an optional implementation manner of the present application, the first acquisition unit is specifically used to acquire at least one data table and determine an identifier of the at least one data table;

[0031] A metadata attribute identifier of the at least one data table is obtained based on the identifier of the at least one data table.

[0032] In an optional implementation of the present application, the acquisition unit is specifically used to acquire at least one data table using a filtering condition; the filtering condition includes at least one of the following: a paging parameter, a data table type, and an attribute value representing that the data table has not been deleted.

[0033] In an optional implementation manner of the present application, the acquisition unit is specifically used to obtain metadata attributes of at least one data table;

[0034] A metadata attribute identifier of the at least one data table is obtained based on the metadata attribute of the at least one data table.

[0035] In an optional implementation of the present application, the determination unit is specifically used to: determine the storage path of each data table in the at least one data table in the file system based on the metadata attribute identifier of the at least one data table; determine the storage capacity information of each data table in the at least one data table under the corresponding storage path based on the storage path of each data table in the at least one data table in the file system.

[0036] In an optional implementation manner of the present application, after the first acquisition unit acquires the metadata attribute identifier of at least one data table, the device further includes:

[0037] A second acquisition unit, configured to acquire change data of metadata of the at least one data table;

[0038] A generating unit, used to generate description information for describing the metadata change data;

[0039] The parsing unit is used to parse the description information and generate prompt information based on the parsing result, wherein the prompt information is used to prompt the change of the metadata of the at least one data table of the target object.

[0040] In an optional embodiment of the present application, the second acquisition unit is specifically used to: capture operations on the at least one data table using a first preset method, and acquire metadata of the at least one data table through periodic scanning using a second preset method; and determine table update data of the metadata of the at least one data table based on the metadata of the at least one data table acquired through periodic scanning.

[0041] An embodiment of the present application further provides an electronic device, comprising: a memory and a processor, wherein the memory stores computer executable instructions, and when the processor runs the computer executable instructions on the memory, the metadata processing method described in the above embodiment can be implemented.

[0042] An embodiment of the present application further provides a computer storage medium, on which executable instructions are stored. When the executable instructions are executed by a processor, the metadata processing method described in the above embodiment is implemented.

[0043] The technical solution of the embodiment of the present application obtains the metadata attribute identifier of at least one data table; determines the storage capacity information of each data table in the at least one data table based on the metadata attribute identifier of the at least one data table; and records the storage capacity information of each data table in the at least one data table into the metadata attribute information of each data table. In this way, the storage capacity information of the data table can be determined based on the metadata of the data table. By determining and storing the storage capacity information of the data table, it is convenient for the user to process the data table according to the size of the data table storage capacity in the future, for example, select a suitable backup server to back up the data table according to the storage capacity information of the data table. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 Schematic diagram of the process of processing metadata provided in the embodiment of the present application Figure 1 ;

[0045] Figure 2 A schematic diagram of a method for obtaining storage capacity information of a data table provided in an embodiment of the present application;

[0046] Figure 3 Schematic diagram of the process of processing metadata provided in the embodiment of the present application Figure 2 ;

[0047] Figure 4 A schematic diagram of the Apache atlas metadata management and governance system provided in an embodiment of the present application for managing metadata;

[0048] Figure 5 A schematic diagram of the structure of a metadata processing device provided in an embodiment of the present application;

[0049] Figure 6 A schematic diagram of the structural composition of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.

[0051] The following are the key terms involved in the embodiments of the present application:

[0052] Metadata: Data about data, mainly information describing data properties, used to support functions such as indicating storage location, historical data, resource search, and file records.

[0053] Data lineage: From the generation, processing, integration, circulation, to the final extinction of data, a relationship will naturally form between data. Data lineage is part of the metadata. It analyzes the lineage path of tables and fields from the data source to the current table, and whether the relationship between lineage fields is satisfied, focusing on data consistency and the rationality of table design. It can be used to analyze the impact of changes in upstream data on downstream data, and to track the source of upstream problems when downstream data changes.

[0054] Figure 1 A flowchart of a method for processing metadata provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the metadata processing method provided in the embodiment of the present application includes the following steps:

[0055] Step 101: Obtain a metadata attribute identifier of at least one data table.

[0056] In the embodiments of the present application, a data table, which can also be called a database, is a component in the field of big data, and can specifically be a hive table, an hbase table, a redis table, or an Elasticsearch table, wherein Hive is written in Java and is a distributed data warehouse built on Hadoop; HBase is a distributed columnar database written in Java; Redis is a memory-based Key-Value pair database written in ANSI C; and Elasticsearch is a distributed full-text search engine built with Apache Lucene as the core.

[0057] In an optional implementation manner of the present application, the above step 101 can be implemented as follows:

[0058] Obtaining at least one data table, and determining an identifier of the at least one data table;

[0059] A metadata attribute identifier of the at least one data table is obtained based on the identifier of the at least one data table.

[0060] Specifically, taking the data table hive table as an example, the at least one data table in the embodiment of the present application can be all hive tables, such as Figure 2 In the first method shown in the left part, all hive tables are first obtained. After all hive tables are obtained, the globally unique identifiers (GUID, Globally Unique Identifier) ​​of all hive tables can be obtained, and then the globally unique identifiers SD GUIDs of the metadata attributes of all hive tables can be further obtained.

[0061] In an optional implementation of the present application, at least one data table may be acquired using a filtering condition; the filtering condition includes at least one of the following: a paging parameter, a data table type, and an attribute value indicating that the data table has not been deleted.

[0062] Specifically, to obtain all hive tables, you can use paging parameters, table types, and attribute values ​​that indicate that hive tables have not been physically deleted. Among them, paging parameters specifically include the number of pages and the size of each page, the table type is the hive table metadata storage object type hive_storagedesc, and the filtering condition that indicates that the attribute value of the data table has not been deleted is: excludeDeletedEntities, which does not include objects marked for deletion, is true.

[0063] The embodiment of the present application can obtain all hive tables that have not been marked for deletion by setting filtering conditions. Setting filtering conditions can achieve the following purposes: (1) the hive table must be obtained; (2) the hive table actually exists; (3) since the amount of data in the hive table is too large, setting filtering conditions can avoid the situation where the query is too slow or the memory cannot support it due to a single query.

[0064] In an optional implementation manner of the present application, the above step 101 can also be implemented in the following manner:

[0065] Get metadata attributes of at least one data table;

[0066] A metadata attribute identifier of the at least one data table is obtained based on the metadata attribute of the at least one data table.

[0067] Specifically, take the hive table as an example. Figure 2In the first method shown in the right half, metadata attributes (abbreviated as SD) of at least one data table are first obtained, and metadata attribute identifier SD GUID of at least one data table can be obtained from the obtained metadata attributes SD of at least one data table.

[0068] In an embodiment of the present application, before executing step 101, it is necessary to first collect metadata. The collection of metadata includes the process of obtaining metadata in the data life cycle, organizing the metadata, and then writing the metadata into the database. Here, when organizing the metadata, it is necessary to obtain metadata information about the data table, including annotations, table structure, table storage path and other attribute information, and create an object to store each attribute value into the database. In one embodiment, the database can be a graph database JanusGraph, which is supported by Es and hbase at the bottom layer.

[0069] Step 102: Determine storage capacity information of each data table in the at least one data table based on the metadata attribute identifier of the at least one data table.

[0070] In an optional implementation manner of the present application, step 102 can be implemented in the following manner:

[0071] Determine a storage path of each data table in the at least one data table in the file system based on the metadata attribute identifier of the at least one data table;

[0072] Based on the storage path of each data table in the at least one data table in the file system, storage capacity information of each data table in the at least one data table under the corresponding storage path is determined.

[0073] In the embodiment of the present application, the metadata attribute identifier of the data table is a unique key corresponding to multiple attributes of the metadata of the data table, which can be named SD GUID. The main purpose of obtaining the metadata attribute identifier of the data table is to obtain the metadata attributes of the data table and obtain the storage path of the data table in the file system from the metadata attributes. Here, the file system can be specifically the Hadoop distributed file system (i.e., HDFS).

[0074] After determining the storage path of at least one data table in the file system, you can use objects used to operate related files of the file system, such as the fs object of HDFS, to query the storage capacity information of each data table under the corresponding path based on the storage path of at least one data table in the file system.

[0075] Step 103: Record the storage capacity information of each data table in the at least one data table into the metadata attribute information of each data table.

[0076] Here, the storage capacity information of the data table represents the size of the storage space occupied by the data table in the file system. After the storage capacity information of each data table is obtained, the storage capacity information of each data table can be saved in the metadata attributes of the data table, for example, using the attribute saving method createOrUpdate to save the storage capacity information of each data table in the attributes of the data table metadata.

[0077] Here, when recording the storage capacity information of the data table in the metadata attributes of the data table, the storage capacity information of the data table can be recorded in the existing metadata attributes of the data table. For example, the storage capacity information of the data table can be recorded in the storage attribute of the metadata attributes of the data table. Here, the storage attribute is one of the various attributes used by Apache Atlas to describe metadata. In this case, the storage capacity information of the data table is recorded as a newly added item of information in the existing metadata attributes of the data table. Usually, the storage attribute of the metadata only includes the following information of the data table: storage format, field information, storage path information, whether to compress, file input and output format, etc., but does not include the storage capacity information of the data table. By adding the storage capacity information of the data table to the existing storage attribute, the present application can obtain the storage capacity information of the data table when the user views the storage attribute of the data table metadata.

[0078] In addition, the embodiment of the present application can also create a new metadata attribute for the data table, and record the storage capacity information of the data table in the metadata attribute newly created for the data table. In this case, when the user views various metadata attributes of the data table, the user can also see the newly added metadata attribute, so that the user can obtain the storage capacity information of the data table in a timely manner.

[0079] In an embodiment of the present application, the data table storage capacity information collection task needs to be executed regularly. In order to ensure that the storage capacity information of the data table can be monitored in a timely manner, the period of the scheduled task can be set to be shorter, such as 1 hour. The storage capacity information of the data table collected each time needs to be stored in the metadata attributes of the data table.

[0080] The embodiment of the present application can determine the storage capacity information of the data table based on the metadata of the data table through the above steps 101 to 103. By storing the storage capacity information of the data table, it is convenient for the user to subsequently process the data table according to the storage capacity information of the data table. For example, according to the storage capacity information of the data table, a suitable backup server is selected to back up the data table.

[0081] In the embodiment of the present application, the above step 101 can obtain at least one data table, such as all hive tables. For the at least one data table obtained, the embodiment of the present application can also timely capture the change of the content of the data table through the metadata of the data table when the content of the data table changes, and generate corresponding alarm information, which specifically includes the following steps:

[0082] Step 301: Obtain a metadata attribute identifier of at least one data table.

[0083] The specific details involved in step 301 are the same as those in step 101. For details, please refer to the relevant description of step 101, which will not be repeated here.

[0084] Step 302: Obtain change data of metadata of the at least one data table.

[0085] Through step 301, all data tables that need to be obtained can be obtained, such as all hive tables.

[0086] In an embodiment of the present application, a hook mechanism may be used to import initialization metadata when executing component initialization operations.

[0087] In an optional implementation manner of the present application, step 302 can be specifically implemented in the following manner:

[0088] Capturing operations on the at least one data table using a first preset method, and acquiring metadata of the at least one data table by periodic scanning using a second preset method;

[0089] Table update data of the metadata of the at least one data table is determined based on the metadata of the at least one data table acquired through periodic scanning.

[0090] Here, the first preset method may be a hook mechanism, which uses the mechanism to capture operations on a data table or a data database in hive. Using the second preset method to obtain metadata of the at least one data table through periodic scanning may specifically be: obtaining metadata through a component without a hook mechanism using a periodic scanning method.

[0091] By periodically scanning the metadata, changes in metadata attributes can be monitored.

[0092] In the implementation of this application, metadata change refers to when the data table structure attributes or fields change, such as the data table storage format is modified, or the field name is modified. In the implementation of this application, these operations will be captured and transmitted or stored.

[0093] Step 303: Generate description information for describing the metadata change data.

[0094] Here, when it is determined that the metadata of the data table has been changed, description information for describing the metadata change data is generated based on the metadata change data.

[0095] Step 304: Parse the description information, and generate prompt information based on the parsing result, where the prompt information is used to prompt the change of metadata of the at least one data table of the target object.

[0096] In the embodiment of the present application, by monitoring the metadata of the data table, when the storage capacity information of the data table changes, the change of the storage capacity information of the data table can be monitored.

[0097] In the embodiment of the present application, after generating the description information of the metadata table change data, the generated data for describing the metadata change can be parsed, and an alarm information for prompting the user of the metadata change can be generated. In addition, the embodiment of the present application can also configure the database information for storing metadata alarms and store the change data, and provide the system metadata change alarm data for display.

[0098] By executing the above steps 301 to 303 to monitor metadata change events, parsing the generated data for describing metadata changes, and generating metadata change warning data, the user's perception of metadata changes is improved. After the metadata changes, the user can control the impact of the change on the business data, thereby better controlling the business.

[0099] Below, a method for obtaining storage capacity information of all hive tables is provided, which specifically includes the following steps:

[0100] (1) First, all hive tables are obtained, where the filtering conditions include paging parameters, the table type is hive_storagedesc, and the attribute value excludeDeletedEntities of the objects marked for deletion is true;

[0101] (2) Based on all the returned objects (i.e., all the tables in the hive database), traverse the GUID value of each object to query the detailed information of each table.

[0102] (3) The detailed information of each table includes its path in HDFS. The path of each table in HDFS can be obtained based on the detailed information of each table.

[0103] (4) The fs object created by the core-site.xml and hdfs-site.xml files when the scheduled task is initialized can query the storage capacity information of each data table under the corresponding path according to the HDFS path of each data table obtained in step (3), that is, the size of the storage space occupied.

[0104] (5) The obtained values ​​corresponding to the storage capacity information of each data table are stored in the metadata attributes of each data table, and finally the attribute saving method createOrUpdate is called to save the data.

[0105] (6) When displaying subsequent pages for each data table, calling the query interface will return an attribute value containing the storage capacity information of the data table.

[0106] (7) For the independence of platform services, the data table storage capacity information can be stored in the data table storage capacity information database at the same time as it is stored in the data table metadata attribute value, so that other services (such as platform services developed by users themselves) can query the data table storage capacity information, facilitate subsequent data table metadata page display, and enable users to process tasks based on the data table storage capacity information displayed on the page according to specific application scenario requirements.

[0107] Here, the data table storage capacity information is collected at regular intervals and stored in the graph database, so that the data table storage capacity information can be returned when the metadata information of the data table is queried.

[0108] Figure 4 A diagram of how the Apache Atlas metadata management and governance system manages metadata. Figure 4 The Apache Atlas metadata management and governance system shown in the figure implements the metadata change alert process as follows:

[0109] (1) Use the hook mechanism to import initialization metadata when the component is initialized.

[0110] (2) The Hook mechanism captures operations on tables or databases in Hive.

[0111] Here, the operation on the table or database includes, for example, modifying the storage format of the data table, or modifying the name of the field of the data table.

[0112] (3) Non-hook components use periodic scanning to obtain metadata.

[0113] Here, the scanning period is set according to user needs and specific scenarios, and can be set to 1h, 2h or other time periods.

[0114] (4) Store metadata change data in the specified topic.

[0115] The metadata obtained by periodic scanning can determine the metadata change data.

[0116] (5)Apache Atlas consumes messages from the specified topic.

[0117] This step can generate description information for describing metadata table data.

[0118] (6)Apache Atlas processes hooks to generate Entities about metadata changes.

[0119] (7)Apache Atlas writes to the specified topic for use by other upper-level applications.

[0120] This step writes the description information used to describe the metadata changes to the specified topic.

[0121] (8) Convert entities into graphical models for management.

[0122] (9) Store the metadata in hbase.

[0123] The data stored in hbase include the data used to describe metadata obtained through periodic scanning and the description information of metadata changes. Through hbase, the above data can be persisted in hbase to facilitate subsequent interface calls.

[0124] (10) Store the index object of the graph model in Solr.

[0125] By storing the index objects of the graph model in Solr, queries can be accelerated and the access rate of the interface can be increased.

[0126] Here, by monitoring metadata change events, parsing the generated data for describing metadata changes, configuring database information for storing metadata alarms and storing change data, the system metadata change alarm data can be provided for display.

[0127] The present application also provides a metadata processing device. Figure 5 A schematic diagram of the structure of a metadata processing device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the device comprises:

[0128] A first acquisition unit 501 is used to acquire a metadata attribute identifier of at least one data table;

[0129] A determining unit 502, configured to determine storage capacity information of each data table in the at least one data table based on a metadata attribute identifier of the at least one data table;

[0130] The recording unit 503 is configured to record the storage capacity information of each data table in the at least one data table into the metadata attribute information of each data table.

[0131] In an optional implementation of the present application, the first acquisition unit 501 is specifically used to acquire at least one data table and determine an identifier of the at least one data table; and obtain a metadata attribute identifier of the at least one data table based on the identifier of the at least one data table.

[0132] In an optional implementation manner of the present application, the first acquisition unit 501 is specifically used to acquire at least one data table using a filtering condition; the filtering condition includes at least one of the following: a paging parameter, a data table type, and an attribute value representing that the data table has not been deleted.

[0133] In an optional implementation manner of the present application, the first acquisition unit 501 is specifically configured to obtain metadata attributes of at least one data table; and obtain a metadata attribute identifier of the at least one data table based on the metadata attributes of the at least one data table.

[0134] In an optional implementation of the present application, the determination unit 502 is specifically used to: determine the storage path of each data table in the at least one data table in the file system based on the metadata attribute identifier of the at least one data table; determine the storage capacity information of each data table in the at least one data table under the corresponding storage path based on the storage path of each data table in the at least one data table in the file system.

[0135] In an optional implementation manner of the present application, after the first acquisition unit 501 acquires the metadata attribute identifier of at least one data table, the device further includes:

[0136] A second acquisition unit 504 is used to acquire the metadata change data of the at least one data table;

[0137] A generating unit 505, configured to generate description information for describing the metadata change data;

[0138] The parsing unit 506 is used to parse the changed data and generate prompt information based on the parsing result, where the prompt information is used to prompt the change of the metadata of the at least one data table of the target object.

[0139] In an optional embodiment of the present application, the second acquisition unit 504 is specifically used to: capture operations on the at least one data table using a first preset method, and obtain metadata of the at least one data table through periodic scanning using a second preset method; and determine table update data of the metadata of the at least one data table based on the metadata of the at least one data table obtained through periodic scanning.

[0140] Those skilled in the art should understand that Figure 5 The implementation functions of each unit in the metadata processing device shown can be understood by referring to the relevant description of the aforementioned metadata processing method. Figure 5 The functions of the various units in the metadata processing device shown may be implemented by a program running on a processor, or may be implemented by a specific logic circuit.

[0141] An embodiment of the present application also provides an electronic device. Figure 6 Schematic diagram of the hardware structure of the electronic device of the embodiment of the present application, such as Figure 6 As shown, the electronic device includes: a communication component 603 for data transmission, at least one processor 601 and a memory 602 for storing a computer program that can be run on the processor 601. The various components in the terminal are coupled together through a bus system 604. It can be understood that the bus system 604 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 604 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 6 Various buses are labeled as bus system 604 .

[0142] When the processor 601 executes the computer program, at least Figure 1 and Figure 3 The steps of the method are shown.

[0143] It can be understood that the memory 602 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 602 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memories.

[0144] The method disclosed in the above embodiment of the present application can be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 601 or an instruction in the form of software. The above processor 601 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 601 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the above method in combination with its hardware.

[0145] In an exemplary embodiment, the electronic device may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), FPGA, general purpose processor, controller, MCU, microprocessor, or other electronic components to execute the aforementioned call recording method.

[0146] The present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the program is at least used to execute when executed by a processor Figure 1 or Figure 3 The computer readable storage medium may be a memory. The memory may be Figure 6 Memory 602 is shown.

[0147] The technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0148] In the several embodiments provided in the present application, it should be understood that the disclosed methods and intelligent devices can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0149] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0150] In addition, all functional units in the embodiments of the present application may be integrated into a second processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0151] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A method for processing metadata, It is characterized in that The method comprises: Obtaining a metadata attribute identifier of at least one data table; wherein the metadata attribute identifier of the data table is a unique key corresponding to multiple attributes of the metadata of the data table; the metadata of the data table is used to capture changes in the content of the data table; Determining storage capacity information of each data table in the at least one data table based on the metadata attribute identifier of the at least one data table; wherein the storage capacity information of the data table represents the size of the storage space occupied by the data table in the file system; Recording storage capacity information of each data table in the at least one data table into metadata attribute information of each data table; in, The determining the storage capacity information of each data table in the at least one data table based on the metadata attribute identifier of the at least one data table includes: Determine a storage path of each data table in the at least one data table in the file system based on the metadata attribute identifier of the at least one data table; Based on the storage path of each data table in the at least one data table in the file system, storage capacity information of each data table in the at least one data table under the corresponding storage path is determined.

2. The method according to claim 1, It is characterized in that The step of obtaining a metadata attribute identifier of at least one data table includes: Obtaining at least one data table, and determining an identifier of the at least one data table; A metadata attribute identifier of the at least one data table is obtained based on the identifier of the at least one data table.

3. The method according to claim 2, It is characterized in that The obtaining of at least one data table comprises: At least one data table is acquired using a filtering condition; the filtering condition includes at least one of the following: a paging parameter, a data table type, and an attribute value indicating that the data table has not been deleted.

4. The method according to claim 1, It is characterized in that The step of obtaining a metadata attribute identifier of at least one data table includes: Get metadata attributes of at least one data table; A metadata attribute identifier of the at least one data table is obtained based on the metadata attribute of the at least one data table.

5. The method according to any one of claims 1 to 4, It is characterized in that After obtaining the metadata attribute identifier of at least one data table, the method further includes: Obtaining change data of metadata of the at least one data table; Generate description information for describing the metadata change data; The description information is parsed, and prompt information is generated based on the parsing result, where the prompt information is used to prompt the change of metadata of the at least one data table of the target object.

6. The method according to claim 5, It is characterized in that The obtaining of the change data of the metadata of the at least one data table includes: Capturing operations on the at least one data table using a first preset method, and acquiring metadata of the at least one data table by periodic scanning using a second preset method; Table update data of the metadata of the at least one data table is determined based on the metadata of the at least one data table acquired through periodic scanning.

7. A metadata processing device, It is characterized in that The device comprises: A first acquisition unit is used to acquire a metadata attribute identifier of at least one data table; wherein the metadata attribute identifier of the data table is a unique key corresponding to multiple attributes of the metadata of the data table; the metadata of the data table is used to capture changes in the content of the data table; a determining unit, configured to determine storage capacity information of each data table in the at least one data table based on the metadata attribute identifier of the at least one data table; wherein the storage capacity information of the data table represents the size of the storage space occupied by the data table in the file system; A recording unit, configured to record the storage capacity information of each data table in the at least one data table into the metadata attribute information of each data table; The determination unit is specifically used to: determine the storage path of each data table in the at least one data table in the file system based on the metadata attribute identifier of the at least one data table; determine the storage capacity information of each data table in the at least one data table under the corresponding storage path based on the storage path of each data table in the at least one data table in the file system.

8. The device according to claim 7, It is characterized in that After the first acquiring unit acquires the metadata attribute identifier of at least one data table, the device further includes: A second acquisition unit, configured to acquire change data of metadata of the at least one data table; A generating unit, used to generate description information for describing the metadata change data; The parsing unit is used to parse the description information and generate prompt information based on the parsing result, wherein the prompt information is used to prompt the change of the metadata of the at least one data table of the target object.

9. An electronic device, It is characterized in that The electronic device comprises: a memory and a processor, wherein the memory stores computer executable instructions, and the processor can implement any one of claims 1 to 6 when executing the computer executable instructions on the memory.

10. A computer storage medium, It is characterized in that The storage medium stores executable instructions, which, when executed by a processor, implement the method according to any one of claims 1 to 6.