CN114817175A - Container creation method based on dynamic file - Google Patents

Container creation method based on dynamic file Download PDF

Info

Publication number
CN114817175A
CN114817175A CN202210385966.6A CN202210385966A CN114817175A CN 114817175 A CN114817175 A CN 114817175A CN 202210385966 A CN202210385966 A CN 202210385966A CN 114817175 A CN114817175 A CN 114817175A
Authority
CN
China
Prior art keywords
target
resource
data resource
data
container
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210385966.6A
Other languages
Chinese (zh)
Inventor
王军平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Saibo Yunrui Intelligent Technology Co ltd
Original Assignee
Beijing Saibo Yunrui Intelligent Technology 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 Beijing Saibo Yunrui Intelligent Technology Co ltd filed Critical Beijing Saibo Yunrui Intelligent Technology Co ltd
Priority to CN202210385966.6A priority Critical patent/CN114817175A/en
Publication of CN114817175A publication Critical patent/CN114817175A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a container creation method based on a dynamic file, which comprises the following steps: step 1: establishing a resource directory for data resources in a data resource library, and establishing a link relation between the resource directory and a dynamic file; step 2: acquiring a container creation request sent by a user, and extracting target data resources by using the link relation based on the container creation request; and step 3: establishing a storage address label for the target data resource based on the dynamic file to obtain a label data resource; and 4, step 4: creating a target container using the tag data resource; the invention provides the dynamic file, reduces the power consumption in the container creation process, improves the creation efficiency, realizes the long-term storage of container resources and ensures the efficiency and performance of container creation.

Description

Container creation method based on dynamic file
Technical Field
The invention relates to the technical field of containers, in particular to a container creation method based on dynamic files.
Background
A container may be thought of as providing an execution environment that shares a kernel with the host operating system but is isolated from other process resources in the operating system. Through a container mode, resources on each resource device can be divided to obtain resource units which are isolated from each other and can be used independently, so that different users can call the resource units directly.
The traditional method for creating the container needs to directly call and create the target container from the global data resource, a large amount of power consumption is consumed for executing the method, the creating efficiency is not high, secondly, the data resource in the created target container can not be stored for a long time due to the problem of storage performance of a host machine after the data resource is called once or several times, and the efficiency and the performance of the traditional method for creating the container need to be improved.
Disclosure of Invention
The invention provides the dynamic file, reduces the power consumption in the container creation process, improves the creation efficiency, realizes the long-term storage of container resources and ensures the efficiency and the performance of container creation.
The invention provides a container creation method based on a dynamic file, which comprises the following steps:
step 1: establishing a resource directory for data resources in a data resource library, and establishing a link relation between the resource directory and a dynamic file;
step 2: acquiring a container creation request sent by a user, and extracting target data resources by using the link relation based on the container creation request;
and step 3: establishing a storage address label for the target data resource based on the dynamic file to obtain a label data resource;
and 4, step 4: and creating a target container by using the label data resource.
In a possible implementation manner, in step 1, establishing a resource directory for the data resources in the data resource library includes:
traversing the resource database by taking a preset resource type as a standard to obtain a specified data resource, and determining the storage position of the specified data resource;
setting a catalog title for the data resource library by taking the preset resource type as a standard;
and establishing a resource catalog of the data resource library based on the catalog title and the storage position.
In a possible implementation manner, in step 1, creating a link relationship between the resource directory and the dynamic file includes:
selecting a target object from the dynamic file, and creating a directory table matched with the resource directory under the target object;
generating a network link according to a network protocol between the data resource library and the dynamic file;
and analyzing the network link to obtain a network protocol relationship, and creating a link relationship based on the network protocol relationship, the directory table and the resource directory.
In a possible implementation manner, in step 2, extracting the target data resource by using the link relation based on the container creation request includes:
acquiring a data resource request in the container creation request, and dividing the data resource request according to a preset resource type to obtain a plurality of target data resource types;
matching the target data resource types with the directory table of the link relation to determine a target directory;
based on the data resource request, determining a target resource directory of the data resource library corresponding to the target directory by using the target directory, and acquiring a target storage position from the target resource directory;
and directly extracting the data resource at the target storage position from the data resource library based on the link relation to serve as the target data resource.
In a possible implementation manner, based on the link relationship, directly extracting the data resource at the target storage location from the data resource library, as a target data resource, includes:
determining a target network protocol relationship from the dynamic file to the data resource library based on the link relationship;
establishing connection with the data resource library based on the target network protocol relationship, and sending the target storage position to the data resource library;
the data resource library calls data resources in the target storage position;
and performing format conversion on the data resource at the target storage position based on the target format of the data resource requested by the data resource request to finally obtain the target data resource.
In a possible implementation manner, in step 3, based on the dynamic file, establishing a storage address tag for the target data resource, and obtaining a tagged data resource includes:
analyzing the target data resource, and determining the attribute and the capacity of the target data resource;
determining a storage mode under the dynamic file based on the attribute of the target data resource, and determining a storage space under the dynamic file based on the capacity of the target data resource;
searching a first creation file meeting the storage mode and a second creation file meeting the storage space under the dynamic file;
performing compatibility analysis on the first creation file and the second creation file, and determining a first target creation file and a second target creation file which mutually meet the compatibility requirement;
determining a first creating command and a second creating command which respond to the first target creating file and the second target creating file, and determining a target creating command based on the first creating command and the second creating command;
based on the target creation command, creating a storage area meeting the target data resource by using the first target creation file and the second target creation file;
correspondingly dividing the target data resources and the storage area based on the attributes of the target data resources, and storing the target data resources into corresponding sub-storage areas according to the division result;
establishing a first identifier for a sub-storage area for storing the target data resource, establishing a second identifier for the position of the target data resource in a resource directory, matching the first identifier and the second identifier based on the corresponding relation between the target data resource and the resource directory, and establishing a storage address label;
and carrying out data identification on the target data resource based on the storage address label to obtain a label data resource.
In a possible implementation manner, based on the storage address tag, performing data identification on the target data resource, and obtaining a tag data resource includes:
establishing identification data containing the storage address label;
and taking the target data resource as original data, determining the corresponding relation between the identification data and the original data, and adding the identification data to the beginning of the original data based on the corresponding relation to obtain a tag data resource.
In a possible implementation manner, after obtaining the tag data resource in step 3, the method further includes:
determining container basic information according to the user basic information and a user container creation request, and setting a first label by using the container basic information;
setting a second label for a resource directory of the data resource library, and setting a third label for a corresponding sub-storage area in the label data resource;
establishing a first relation between the first label and the second label, establishing a second relation between the second label and the third label, and establishing a third relation between the first label and the third label;
establishing a first connection interface between the resource directory and the container based on the first contact, wherein the second connection interface is used for realizing the connection between the resource directory and the container;
establishing a second connection interface between the sub storage area and the container based on the second relation, wherein the second connection interface is used for determining the storage address of the sub storage area according to the container basic information;
establishing a second connection interface between the sub storage area and the resource directory based on the third relation, wherein the third connection interface is used for determining the storage address of the sub storage area according to the resource directory;
matching the label data source with the resource directory based on the identification data in the label data source, and determining the mapping relation between the sub-storage area and the resource directory according to the matching result;
according to the mapping relation, the sub storage area is mounted into the resource directory by using the third connection interface;
adding a target storage address in the mounting result to the container basic information by using the second connection interface to obtain first container information;
and adding a target directory in the resource directory into the first container information by using the first connection interface according to the mounting result and the container identification information to obtain second container information.
In one possible implementation manner, in step 4, creating a target container by using the tag data resource includes:
selecting a container creation template according to the container creation request;
determining a transmission path of the label data resource according to the storage area of the label data resource;
transmitting the label data resource to the container creation template according to the transmission path;
and according to the hierarchy attribute in the container creation template, performing hierarchy creation on the label data resource in the container creation template to obtain a target container.
In one possible implementation manner, performing hierarchical creation on a tag data resource in the container creation template according to a hierarchical attribute in the container creation template includes:
matching the label data resources with the levels according to the level attributes, and distributing the label data resources to the corresponding levels according to the matching results;
determining a hierarchy dependency relationship according to the hierarchy attributes, and dividing the label data resources distributed by each hierarchy to obtain associated data resources and irrelevant data resources;
and applying the associated data resources to a hierarchy dependency relationship, and taking the irrelevant data resources as basic data of a corresponding hierarchy to create the hierarchy to obtain the target container.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of a dynamic file-based container creation method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a link relationship between a resource directory and a dynamic file according to an embodiment of the present invention;
FIG. 3 is a flowchart of extracting a target data resource according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
Example 1
The invention provides a container creation method based on dynamic files, as shown in fig. 1, comprising the following steps:
step 1: establishing a resource directory for data resources in a data resource library, and establishing a link relation between the resource directory and a dynamic file;
step 2: acquiring a container creation request sent by a user, and extracting target data resources by using the link relation based on the container creation request;
and 3, step 3: establishing a storage address label for the target data resource based on the dynamic file to obtain a label data resource;
and 4, step 4: and creating a target container by using the label data resource.
In this embodiment, the dynamic file is a separate system for separately and persistently storing the tag data resource.
In this embodiment, the link relation is used to implement the association between the dynamic file and the data repository.
In this embodiment, the target data resource is determined from the resource catalog using the link relationship.
In this embodiment, the tag data resource is a target data resource to which a tag is added, and the others are not changed.
In this embodiment, after the target container is created, the tag data resource of the target container exists in the dynamic file, and when the host of the target container loses the data resource due to storage performance, the data resource can be searched from the dynamic file.
The beneficial effect of above-mentioned design is: by creating the link relation between the resource directory and the dynamic file, the data resource does not need to be searched and called directly from a data resource library, and then calling is carried out after the data resource is determined, so that the power consumption is reduced, the container creation efficiency is improved in the aspect of data resource acquisition, and the data resource is independently stored according to the dynamic file, so that the long-term storage of the data resource of the target container is realized.
Example 2
Based on embodiment 1, an embodiment of the present invention provides a container creating method based on a dynamic file, where, in step 1, creating a resource directory for data resources in a data resource library includes:
traversing the resource database by taking a preset resource type as a standard to obtain a specified data resource, and determining the storage position of the specified data resource;
setting a catalog title for the data resource library by taking the preset resource type as a standard;
and establishing a resource catalog of the data resource library based on the catalog title and the storage position.
In this embodiment, the preset resource type is preset and determined according to the data resource classification required by the container creation.
The beneficial effect of above-mentioned design is: the catalog title is determined according to the data resource classification required by the container creation, and the resource catalog of the data resource and the storage position is determined, so that the data resource can be conveniently searched during the container creation, the time for searching the data resource in the container creation process is saved, and the container creation efficiency is improved.
Example 3
Based on embodiment 1, an embodiment of the present invention provides a container creating method based on a dynamic file, and as shown in fig. 2, in step 1, creating a link relationship between a resource directory and the dynamic file includes:
step 11, selecting a target object from the dynamic file, and creating a directory table matched with the resource directory under the target object;
step 12, generating a network link according to a network protocol between the data resource library and the dynamic file;
and step 13, analyzing the network link to obtain a network protocol relationship, and creating a link relationship based on the network protocol relationship, the directory table and the resource directory.
In this embodiment, the link relation is used to implement the association between the dynamic file and the data repository.
In this embodiment, the network protocol between the data resource library and the dynamic file is determined according to the network configuration of the data resource library and the dynamic file.
The beneficial effect of above-mentioned design is: by creating the link relation between the resource directory and the dynamic file, the data resource can be directly searched for the data resource from the dynamic file, the direct search for the data resource is avoided, the power consumption is reduced, and the container creating effect is improved in the aspect of data resource acquisition.
Example 4
Based on embodiment 1, an embodiment of the present invention provides a container creating method based on a dynamic file, as shown in fig. 3, in step 2, based on the container creating request, extracting a target data resource by using the link relationship, where the method includes:
step 21, acquiring a data resource request in the container creation request, and dividing the data resource request according to a preset resource type to obtain a plurality of target data resource types;
step 22, matching the multiple target data resource types with the directory table of the link relation to determine a target directory;
step 23, based on the data resource request, determining a target resource directory of the data resource library corresponding to the target directory by using the target directory, and acquiring a target storage location from the target resource directory;
and 24, directly extracting the data resources at the target storage position from the data resource library based on the link relation to serve as target data resources.
In this embodiment, the data resource request is divided according to the preset resource type, so that the data resource request can be divided according to the attribute of the directory table, and the matching between the data resource type and the directory table is facilitated.
The beneficial effect of above-mentioned design is: and analyzing the data resource request based on the dynamic file through the link relation, determining a storage position, and then directly acquiring target resource data from the data resource library according to the link relation, so that the direct search of the data resource library is avoided, the power consumption is reduced, and the container creation effect is improved in the aspect of data resource acquisition.
Example 5
Based on embodiment 4, an embodiment of the present invention provides a container creating method based on a dynamic file, where based on the link relationship, the method directly extracts a data resource in the target storage location from the data resource library, and the extracting, as a target data resource, includes:
determining a target network protocol relationship from the dynamic file to the data resource library based on the link relationship;
establishing connection with the data resource library based on the target network protocol relationship, and sending the target storage position to the data resource library;
the data resource library calls data resources in the target storage position;
and performing format conversion on the data resource at the target storage position based on the target format of the data resource requested by the data resource request to finally obtain the target data resource.
The beneficial effect of above-mentioned design is: and sending the target storage position to the data resource library according to the connection relation to call the data resource, avoiding direct search of the data resource library, reducing power consumption, performing format conversion on the data resource according to the data resource request, meeting the requirement of creating a container, and ensuring the performance of creating the container.
Example 6
Based on embodiment 1, an embodiment of the present invention provides a container creating method based on a dynamic file, where in step 3, based on the dynamic file, a storage address tag is established for the target data resource, and obtaining a tagged data resource includes:
analyzing the target data resource, and determining the attribute and the capacity of the target data resource;
determining a storage mode under the dynamic file based on the attribute of the target data resource, and determining a storage space under the dynamic file based on the capacity of the target data resource;
searching a first creation file meeting the storage mode and a second creation file meeting the storage space under the dynamic file;
performing compatibility analysis on the first creation file and the second creation file, and determining a first target creation file and a second target creation file which mutually meet the compatibility requirement;
determining a first creating command and a second creating command which respond to the first target creating file and the second target creating file, and determining a target creating command based on the first creating command and the second creating command;
based on the target creation command, creating a storage area meeting the target data resource by using the first target creation file and the second target creation file;
correspondingly dividing the target data resources and the storage area based on the attributes of the target data resources, and storing the target data resources into corresponding sub-storage areas according to the division result;
establishing a first identifier for a sub-storage area for storing the target data resource, establishing a second identifier for the position of the target data resource in a resource directory, matching the first identifier and the second identifier based on the corresponding relation between the target data resource and the resource directory, and establishing a storage address label;
and carrying out data identification on the target data resource based on the storage address label to obtain a label data resource.
In this embodiment, the attribute of the target data resource is, for example, a security level, an encryption level, and the like of the data.
In this embodiment, the storage manner includes the capacity of the storage area, the security of the storage area, and the like.
In this embodiment, the first creation file is used to implement the storage mode to create corresponding file information.
In this embodiment, the second creation file is used to implement the creation of corresponding file information by the storage space.
In this embodiment, the first object creation file and the second object creation file are used to adjust formats of the first creation file and the second creation file, so that the first object creation file and the second object creation file meet compatibility requirements, which is convenient for creating a storage area.
In this embodiment, the target creation command satisfies both the storage manner and the creation requirement of the storage space.
In this embodiment, the storage address tag is used to determine the location of the target data resource in the resource directory.
In this embodiment, the tag data resource is obtained by adding, on the basis of the target data resource, identification data of a position of the target data resource in the resource directory and combining the identification data.
The beneficial effect of above-mentioned design is: and establishing a storage address label for the target data resource based on the dynamic file to obtain a label data resource, determining a storage area for storing the label data resource under the dynamic file, and providing the storage area for realizing long-term storage of the target data resource of the target container.
Example 7
Based on embodiment 6, an embodiment of the present invention provides a container creating method based on a dynamic file, where performing data identification on the target data resource based on the storage address tag to obtain a tag data resource includes:
establishing identification data containing the storage address label;
and taking the target data resource as original data, determining the corresponding relation between the identification data and the original data, and adding the identification data to the beginning of the original data based on the corresponding relation to obtain a label data resource.
The beneficial effect of above-mentioned design is: by adding the identification data of the storage address label to the target data resource, the target data resource is conveniently searched, and the long-term storage of the target data resource of the target container is facilitated.
Example 8
Based on embodiment 1, an embodiment of the present invention provides a container creating method based on a dynamic file, where after obtaining a tag data resource in step 3, the method further includes:
determining container basic information according to the user basic information and a user container creation request, and setting a first label by using the container basic information;
setting a second label for a resource directory of the data resource library, and setting a third label for a corresponding sub-storage area in the label data resource;
establishing a first relation between the first label and the second label, establishing a second relation between the second label and the third label, and establishing a third relation between the first label and the third label;
establishing a first connection interface between the resource directory and the container based on the first contact, wherein the second connection interface is used for realizing the connection between the resource directory and the container;
establishing a second connection interface between the sub storage area and the container based on the second relation, wherein the second connection interface is used for determining the storage address of the sub storage area according to the container basic information;
establishing a second connection interface between the sub storage area and the resource directory based on the third relation, wherein the third connection interface is used for determining the storage address of the sub storage area according to the resource directory;
matching the label data source with the resource directory based on the identification data in the label data source, and determining the mapping relation between the sub-storage area and the resource directory according to the matching result;
according to the mapping relation, the sub storage area is mounted into the resource directory by using the third connection interface;
adding a target storage address in the mounting result to the container basic information by using the second connection interface to obtain first container information;
and adding a target directory in the resource directory into the first container information by using the first connection interface according to the mounting result and the container identification information to obtain second container information.
In this embodiment, the mapping relationship between the sub storage area and the resource directory is specifically that the data resources stored in the sub storage area are consistent with the data resources corresponding to the directory in the resource directory.
In this embodiment, the second container information includes a resource directory location and a storage area location where the data resource that created the container is located, and the location where the container data is located can be quickly found according to the second container information.
In this embodiment, after the sub storage area is mounted in the resource directory, the data resource can be obtained by directly jumping to the sub storage area from the resource directory.
The beneficial effect of above-mentioned design is: by obtaining the label data resource, establishing the relation between the container information, the position of the label data resource in the resource directory and the storage position of the label data resource, any one of the container information, the resource directory and the storage position of the label data resource can be used for obtaining the remaining two information, so that the long-term storage of the container data is realized, and the storage position of the container data is conveniently searched.
Example 9
Based on embodiment 1, an embodiment of the present invention provides a method for creating a container based on a dynamic file, where, in step 4, creating a target container using the tag data resource includes:
selecting a container creation template according to the container creation request;
determining a transmission path of the label data resource according to the storage area of the label data resource;
transmitting the label data resource to the container creation template according to the transmission path;
and according to the hierarchy attribute in the container creation template, performing hierarchy creation on the label data resource in the container creation template to obtain a target container.
In this embodiment, the container creation template is used to participate in the creation process for the container.
The beneficial effect of above-mentioned design is: the transmission path is determined according to the storage area of the label data resource, so that the convenience and the safety of obtaining the label data resource are guaranteed, the container creation efficiency is improved, the label data resource can be found at any time, and the long-term storage of the label data resource is realized.
Example 10
Based on embodiment 9, the method for creating a container based on a dynamic file, wherein creating a hierarchy for a tag data resource in the container creation template according to a hierarchy attribute in the container creation template includes:
matching the label data resources with the levels according to the level attributes, and distributing the label data resources to the corresponding levels according to the matching results;
matching the label data resource with a hierarchy according to the following formula;
Figure BDA0003593699130000141
phi represents a matching value of a current hierarchy and a target label data resource, sigma represents a hierarchy attribute value of the current hierarchy, the value is (0, 1), k represents a hierarchy independent value of the current hierarchy, the value is (1, 10), p represents a capacity value of the target label data resource, tau represents a maximum capacity value of the current hierarchy, n represents the data number of the target label data resource, x represents an attribute value of the xth data resource in the target label data resource, the value is (0, 1), w represents a preset associated value of the target label data resource and the current hierarchy, and the value is (0.10, 0.50);
selecting a level with the maximum matching value between the current level and the target tag data resource as a level corresponding to the target tag data resource;
determining a hierarchy dependency relationship according to the hierarchy attributes, and dividing the label data resources distributed by each hierarchy to obtain associated data resources and irrelevant data resources;
dividing the label data resource distributed by each hierarchy according to the following formula;
Figure BDA0003593699130000142
wherein, p represents a matching value of the label data resource distributed by the current hierarchy and the hierarchy dependency relationship, α represents a standard coefficient of the current hierarchy, and takes a value of (0.40, 0.80), β represents a standard coefficient of the label data resource distributed by the current hierarchy, and takes a value of (0.40, 0.80), R C Representing the attribute value of the current level in the level dependency relationship, with the value of (0.6, 1.0), T C Representing the independent value of the current level in the level dependency relationship, with the value of (0.1, 0.6), R S The attribute value of the label data resource distributed by the current level is represented, and the value is (0.6, 1.0), T S The attribute value of the label data resource distributed by the current level is represented by (0.6, 1.0), and the value of the independent value of the label data resource distributed by the current level is represented by (0.1, 0.6);
if the matching value of the label data resources distributed by the current level and the level dependency relationship is smaller than a preset value, the label data resources distributed by the current level are represented as irrelevant data resources, and if not, the label data resources distributed by the current level are represented as relevant data resources;
and applying the associated data resources to a hierarchy dependency relationship, and taking the irrelevant data resources as basic data of a corresponding hierarchy to create the hierarchy to obtain the target container.
In this embodiment, the associated data resource represents the creation relationship of the data resource to the upper and lower layers, and the unrelated data resource represents the creation relationship of the data resource only to the current layer.
In this embodiment, the hierarchy independent value represents the relevance of the current hierarchy to other hierarchies, and the smaller the relevance, the larger the independent value.
In this embodiment, the hierarchy attribute value, the attribute value of the data resource, and the attribute value of the current hierarchy in the hierarchy dependency relationship are determined according to a preset standard rule by the corresponding feature.
In this embodiment, the standard factor of the current hierarchy and the standard factor of the tag data resource and the position of the hierarchy, and the position of the tag data resource in the hierarchy are determined.
In this embodiment, the preset association value between the target tag data resource and the current hierarchy is preset according to the relationship between the attribute of the target tag data resource and the attribute of the current hierarchy.
In this embodiment, for the formula
Figure BDA0003593699130000151
For example, τ is 100, p is 80, k is 5, σ is 0.7,
Figure BDA0003593699130000152
can obtain the product
Figure BDA0003593699130000153
In this embodiment, for the formula
Figure BDA0003593699130000154
For example, α ═ 0.60, β ═ 0.60, and R may be used C =0.7,T C =0.5,R S =0.6,T S When p is 0.3, p is 0.79.
The beneficial effect of above-mentioned design is: the label data resources are distributed to different levels according to the level attributes and the level dependency relationship, and the attributes of the corresponding levels are determined, so that the accurate division of the label data resources is ensured, the label data resources are accurately used for creating the target container, and the accuracy and the efficiency of creating the target container are improved.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A container creation method based on dynamic files is characterized by comprising the following steps:
step 1: establishing a resource directory for data resources in a data resource library, and establishing a link relation between the resource directory and a dynamic file;
step 2: acquiring a container creation request sent by a user, and extracting target data resources by using the link relation based on the container creation request;
and 3, step 3: establishing a storage address label for the target data resource based on the dynamic file to obtain a label data resource;
and 4, step 4: and creating a target container by using the label data resource.
2. The method as claimed in claim 1, wherein the step 1 of creating the resource directory for the data resources in the data resource library comprises:
traversing the resource database by taking a preset resource type as a standard to obtain a specified data resource, and determining the storage position of the specified data resource;
setting a catalog title for the data resource library by taking the preset resource type as a standard;
and establishing a resource catalog of the data resource library based on the catalog title and the storage position.
3. The method for creating the dynamic file-based container according to claim 1, wherein in step 1, creating a link relationship between the resource directory and the dynamic file comprises:
selecting a target object from the dynamic file, and creating a directory table matched with the resource directory under the target object;
generating a network link according to a network protocol between the data resource library and the dynamic file;
and analyzing the network link to obtain a network protocol relationship, and creating a link relationship based on the network protocol relationship, the directory table and the resource directory.
4. The method for creating the container based on the dynamic file according to claim 1, wherein in step 2, extracting the target data resource by using the link relation based on the container creation request comprises:
acquiring a data resource request in the container creation request, and dividing the data resource request according to a preset resource type to obtain a plurality of target data resource types;
matching the target data resource types with the directory table of the link relation to determine a target directory;
based on the data resource request, determining a target resource directory of the data resource library corresponding to the target directory by using the target directory, and acquiring a target storage position from the target resource directory;
and directly extracting the data resource at the target storage position from the data resource library based on the link relation to serve as the target data resource.
5. The method of claim 4, wherein extracting the data resource at the target storage location directly from the data resource library based on the link relationship comprises:
determining a target network protocol relationship from the dynamic file to the data resource library based on the link relationship;
establishing connection with the data resource library based on the target network protocol relationship, and sending the target storage position to the data resource library;
the data resource library calls data resources in the target storage position;
and performing format conversion on the data resource at the target storage position based on the target format of the data resource requested by the data resource request to finally obtain the target data resource.
6. The method as claimed in claim 1, wherein in step 3, a storage address tag is created for the target data resource based on the dynamic file, and obtaining a tagged data resource includes:
analyzing the target data resource, and determining the attribute and the capacity of the target data resource;
determining a storage mode under the dynamic file based on the attribute of the target data resource, and determining a storage space under the dynamic file based on the capacity of the target data resource;
searching a first creation file meeting the storage mode and a second creation file meeting the storage space under the dynamic file;
performing compatibility analysis on the first creation file and the second creation file, and determining a first target creation file and a second target creation file which mutually meet the compatibility requirement;
determining a first creating command and a second creating command which respond to the first target creating file and the second target creating file, and determining a target creating command based on the first creating command and the second creating command;
based on the target creation command, creating a storage area meeting the target data resource by using the first target creation file and the second target creation file;
correspondingly dividing the target data resources and the storage area based on the attributes of the target data resources, and storing the target data resources into corresponding sub-storage areas according to the division result;
establishing a first identifier for a sub-storage area for storing the target data resource, establishing a second identifier for the position of the target data resource in a resource directory, matching the first identifier and the second identifier based on the corresponding relation between the target data resource and the resource directory, and establishing a storage address label;
and carrying out data identification on the target data resource based on the storage address label to obtain a label data resource.
7. The method as claimed in claim 6, wherein based on the storage address tag, performing data identification on the target data resource, and obtaining a tagged data resource comprises:
establishing identification data containing the storage address label;
and taking the target data resource as original data, determining the corresponding relation between the identification data and the original data, and adding the identification data to the beginning of the original data based on the corresponding relation to obtain a label data resource.
8. The method for creating a container based on a dynamic file according to claim 1, wherein after obtaining the tag data resource in step 3, the method further comprises:
determining container basic information according to the user basic information and a user container creation request, and setting a first label by using the container basic information;
setting a second label for a resource directory of the data resource library, and setting a third label for a corresponding sub-storage area in the label data resource;
establishing a first relation between the first label and the second label, establishing a second relation between the second label and the third label, and establishing a third relation between the first label and the third label;
establishing a first connection interface between the resource directory and the container based on the first contact, wherein the second connection interface is used for realizing the connection between the resource directory and the container;
establishing a second connection interface between the sub storage area and the container based on the second relation, wherein the second connection interface is used for determining the storage address of the sub storage area according to the container basic information;
establishing a second connection interface between the sub storage area and the resource directory based on the third relation, wherein the third connection interface is used for determining the storage address of the sub storage area according to the resource directory;
matching the label data source with the resource directory based on the identification data in the label data source, and determining the mapping relation between the sub-storage area and the resource directory according to the matching result;
according to the mapping relation, the sub storage area is mounted into the resource directory by using the third connection interface;
adding a target storage address in the mounting result to the container basic information by using the second connection interface to obtain first container information;
and adding a target directory in the resource directory into the first container information by using the first connection interface according to the mounting result and the container identification information to obtain second container information.
9. The method for creating the container based on the dynamic file as claimed in claim 1, wherein in step 4, creating the target container using the tagged data resource comprises:
selecting a container creation template according to the container creation request;
determining a transmission path of the label data resource according to the storage area of the label data resource;
transmitting the label data resource to the container creation template according to the transmission path;
and according to the hierarchy attribute in the container creation template, performing hierarchy creation on the label data resource in the container creation template to obtain a target container.
10. The method of claim 9, wherein hierarchically creating the tagged data resource in the container creation template according to the hierarchical attribute in the container creation template comprises:
matching the label data resources with the levels according to the level attributes, and distributing the label data resources to the corresponding levels according to the matching results;
determining a hierarchy dependency relationship according to the hierarchy attributes, and dividing the label data resources distributed by each hierarchy to obtain associated data resources and irrelevant data resources;
and applying the associated data resources to a hierarchy dependency relationship, and taking the irrelevant data resources as basic data of a corresponding hierarchy to create the hierarchy to obtain the target container.
CN202210385966.6A 2022-04-13 2022-04-13 Container creation method based on dynamic file Pending CN114817175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210385966.6A CN114817175A (en) 2022-04-13 2022-04-13 Container creation method based on dynamic file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210385966.6A CN114817175A (en) 2022-04-13 2022-04-13 Container creation method based on dynamic file

Publications (1)

Publication Number Publication Date
CN114817175A true CN114817175A (en) 2022-07-29

Family

ID=82536307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210385966.6A Pending CN114817175A (en) 2022-04-13 2022-04-13 Container creation method based on dynamic file

Country Status (1)

Country Link
CN (1) CN114817175A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117910438A (en) * 2024-03-13 2024-04-19 江苏中威科技软件系统有限公司 Dynamic format file DLF generation device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117910438A (en) * 2024-03-13 2024-04-19 江苏中威科技软件系统有限公司 Dynamic format file DLF generation device

Similar Documents

Publication Publication Date Title
US8463739B2 (en) Systems and methods for generating multi-population statistical measures using middleware
US8495007B2 (en) Systems and methods for hierarchical aggregation of multi-dimensional data sources
US8793231B2 (en) Heterogeneous multi-level extendable indexing for general purpose annotation systems
US8898147B2 (en) Method and system for a transparent application of multiple queries across multiple data sources
US5617568A (en) System and method for supporting file attributes on a distributed file system without native support therefor
US7039658B2 (en) Method and apparatus for generating web pages from templates
CN110263317B (en) Method and device for generating document template
CN107463366B (en) Interface dynamic method based on mobile App
TW201322021A (en) Image search method and image search apparatus
CN109284273B (en) Massive small file query method and system adopting suffix array index
CN111797134A (en) Data query method and device of distributed database and storage medium
US20140372412A1 (en) Dynamic filtering search results using augmented indexes
JP2010536105A (en) Document data storage method and apparatus in document base system
CN107423037B (en) Application program interface positioning method and device
CN115729951B (en) Data query method, system, device and computer readable storage medium
CN110888878A (en) Service-oriented main data management method and system
US8037090B2 (en) Processing structured documents stored in a database
CN114546563B (en) Multi-tenant page access control method and system
JP2000089991A (en) Document management system
CN112835638A (en) Configuration information management method and device based on embedded application program
CN111506682B (en) Map data processing method, data query method, device and electronic equipment
CN112052222A (en) Heterogeneous object storage cluster access method, device, equipment and storage medium
CN114817175A (en) Container creation method based on dynamic file
US11481377B2 (en) Compute-efficient effective tag determination for data assets
CN111190893B (en) Method and device for establishing feature index

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