CN111090824A - Content processing method and device - Google Patents

Content processing method and device Download PDF

Info

Publication number
CN111090824A
CN111090824A CN201911340929.8A CN201911340929A CN111090824A CN 111090824 A CN111090824 A CN 111090824A CN 201911340929 A CN201911340929 A CN 201911340929A CN 111090824 A CN111090824 A CN 111090824A
Authority
CN
China
Prior art keywords
content
data
identifier
post
original text
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.)
Granted
Application number
CN201911340929.8A
Other languages
Chinese (zh)
Other versions
CN111090824B (en
Inventor
赵历
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu International Technology Shenzhen Co ltd
Original Assignee
Baidu International Technology Shenzhen 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 Baidu International Technology Shenzhen Co ltd filed Critical Baidu International Technology Shenzhen Co ltd
Priority to CN201911340929.8A priority Critical patent/CN111090824B/en
Publication of CN111090824A publication Critical patent/CN111090824A/en
Application granted granted Critical
Publication of CN111090824B publication Critical patent/CN111090824B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9536Search customisation based on social or collaborative filtering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking

Abstract

The application discloses a content processing method and device, and relates to the technical field of data storage. The specific implementation scheme is as follows: and receiving a first request, wherein the first request carries a first identifier, and the first request is used for requesting to process the first content. And if the first identifier indicates that the original text data of the first content is stored, storing a second identifier corresponding to the first content, wherein the second identifier is used for indicating the storage position of the original text data of the first content. Therefore, repeated storage of the same data is avoided, and storage resources are saved.

Description

Content processing method and device
Technical Field
The present application relates to data storage technologies in the field of data processing technologies, and in particular, to a content processing method and apparatus.
Background
The user can browse various subject posts in a post bar in a webpage or an application program, and can also browse various blog articles in a microblog. When a user browses to content of interest, the user forwards the content so that other users can browse to the forwarded content.
At present, each time a user forwards content once, a piece of content data is generated in a webpage or an application program, the content data are independent from each other, and multiple times of forwarding can generate more content data.
However, although the above method is simple to implement and has good data independence, after data of any one piece of content is modified, data of other contents is not affected, but the same data is repeatedly stored, which easily wastes storage resources.
Disclosure of Invention
The application provides a content processing method and device, which aim to solve the problem that storage resources are wasted due to repeated data of contents in the prior art.
In a first aspect, the present application provides a content processing method, including:
receiving a first request, wherein the first request carries a first identifier, and the first request is used for requesting to process data of first content;
and if the first identifier represents that the original text data of the first content is stored, storing a second identifier corresponding to the first content, wherein the second identifier is used for indicating the storage position of the original text data of the first content.
Optionally, the method further comprises:
and pushing the original text data of the first content according to the second identifier.
Optionally, the generating process of the second identifier corresponding to the first content includes:
if the first content does not store data, generating second content, wherein the second content stores the second identifier, the second identifier is an association relation between the second content and third content, and the third content stores original text data of the first content;
alternatively, the first and second electrodes may be,
and if the first content stores data, generating second content, wherein the second content stores the second identifier, and the second identifier is an association relation between the second content and the first content.
Optionally, the second content further stores a reference number of the second content.
Optionally, the second content further stores an ID of the third content or an ID of the second content.
Optionally, the method further comprises:
and if the first content represents modified data for storing the first content, and the modified data of the first content is data obtained by modifying original text data of the first content, storing the modified data of the first content into a new content having an association relation with the first content.
Optionally, the method further comprises:
pushing the modified data of the first content.
Optionally, the storing the modified data of the first content in a new content having an association relationship with the first content includes:
if the first content does not store data, deleting the first content, and generating fourth content, wherein a third identifier and modified data of the first content are stored in the fourth content, the third identifier is an association relation between the fourth content and the third content, and original text data of the first content is stored in the third content;
alternatively, the first and second electrodes may be,
and if the first content stores data, generating fourth content, wherein a third identifier and modified data of the first content are stored in the fourth content, and the third identifier is an association relationship between the fourth content and the first content.
Optionally, the fourth content further stores a reference number of the fourth content.
Optionally, the fourth content further stores an ID of the third content or an ID of the fourth content.
Optionally, the method further comprises:
and when the first request is received at the Mth time, updating the reference number of the target content stored in the target content, wherein the target content is the content which forwards the original text data of the first content or the modified data for N times, N is taken from 1 to M-1, and M is a natural number.
Optionally, the method further comprises:
and storing reply data of all contents having an association relationship with the first content based on a fourth identifier corresponding to the first content, wherein the fourth identifier is used for indicating the storage positions of the reply data of all contents having an association relationship with the first content.
Optionally, when the fourth identifier is an ID of a fifth content, the fifth content is a content corresponding to initial data of a stored first content, and the initial data of the first content is data that appears for the first time and is not modified, the method further includes:
receiving a second request, wherein the second request is used for requesting to view the reply data of the first content;
acquiring the ID of the fifth content according to the first content;
based on the ID of the fifth content, calling reply data of all contents having an association relationship with the first content;
and pushing reply data of all contents having an association relation with the first content.
Optionally, the reply data of all the contents having the first content association relationship includes: one or more floor data, each floor data comprising: the method includes the steps of replying data and an ID of a content corresponding to the replying data, or replying data, an ID of a content corresponding to the replying data and an ID of a content corresponding to initial data of stored first content corresponding to the replying data.
Optionally, when the first content stores initial data of the first content, the initial data of the first content is data that appears for the first time and is not modified, the method further includes:
if a plurality of content sets contain the same first content, storing initial data of the first content, and generating a fifth identifier corresponding to the first content, where the fifth identifier is used to represent an association relationship between each content set and the first content.
Optionally, the method further comprises:
and sequencing the contents in each content set according to the sequence of the updating time.
In a second aspect, the present application provides a content processing apparatus comprising:
a receiving module, configured to receive a first request, where the first request carries a first identifier, and the first request is used to request to store data of a first content;
and the processing module is used for storing a second identifier corresponding to the first content if the first identifier represents that the original text data of the first content is stored, and the second identifier is used for indicating the storage position of the original text data of the first content.
Optionally, the processing module is further configured to push the textual data of the first content according to the second identifier.
Optionally, the processing module is further configured to generate a second identifier corresponding to the first content, and a generation process of the second identifier corresponding to the first content includes: if the first content does not store data, generating second content, wherein the second content stores the second identifier, the second identifier is an association relation between the second content and third content, and the third content stores original text data of the first content; or, if the first content stores data, generating a second content, where the second content stores the second identifier, and the second identifier is an association relationship between the second content and the first content.
Optionally, the second content further stores a reference number of the second content.
Optionally, the second content further stores an ID of the third content or an ID of the second content.
Optionally, the processing module is further configured to store the modified data of the first content into a new content having an association relationship with the first content if the first content indicates that the modified data of the first content is stored, and the modified data of the first content is data obtained by modifying original text data of the first content.
Optionally, the processing module is further configured to push modified data of the first content
Optionally, the processing module is specifically configured to delete the first content and generate a fourth content if the first content does not store data, where a third identifier and modified data of the first content are stored in the fourth content, the third identifier is an association relationship between the fourth content and a third content, and the third content stores textual data of the first content; or, if data is stored in the first content, generating a fourth content, where a third identifier and modified data of the first content are stored in the fourth content, and the third identifier is an association relationship between the fourth content and the first content.
Optionally, the fourth content further stores a reference number of the fourth content.
Optionally, the fourth content further stores an ID of the third content or an ID of the fourth content.
Optionally, the processing module is further configured to update the reference number of the target content stored in the target content when the mth time receives the first request, where the target content is content that original text data or modified data of the first content is forwarded N times, N is taken over 1 to M-1, and M is a natural number.
Optionally, the processing module is further configured to store reply data of all contents having an association with the first content based on a fourth identifier corresponding to the first content, where the fourth identifier is used to indicate a storage location of the reply data of all contents having an association with the first content.
Optionally, the receiving module is further configured to store, based on a fourth identifier corresponding to the first content, reply data of all contents having an association with the first content, where the fourth identifier is used to indicate a storage location of the reply data of all contents having an association with the first content, and receive a second request, where the second request is used to request that the reply data of the first content be viewed;
the processing module is further configured to obtain an ID of the fifth content according to the first content; based on the ID of the fifth content, calling reply data of all contents having an association relationship with the first content; and pushing reply data of all contents having an association relation with the first content.
Optionally, the reply data of all the contents having the first content association relationship includes: one or more floor data, each floor data comprising: the method includes the steps of replying data and an ID of a content corresponding to the replying data, or replying data, an ID of a content corresponding to the replying data and an ID of a content corresponding to initial data of stored first content corresponding to the replying data.
Optionally, the processing module is further configured to, when the first content stores initial data of a first content, where the initial data of the first content is data that appears for the first time and is not modified, store one initial data of the first content if a plurality of content sets include the same first content, and generate a fifth identifier corresponding to the first content, where the fifth identifier is used to represent an association relationship between each content set and the first content.
Optionally, the processing module is further configured to sort the content in each content set according to the sequence of the update time.
In a third aspect, the present application provides an electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; and an input device communicatively coupled to the at least one processor; and an output device communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the input device inputs data required for the processor to execute the instructions, the output device outputs an execution result of the instructions executed by the processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the content processing method provided in the first aspect and each possible design of the first aspect.
In a fourth aspect, the present application provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the content processing method provided in the first aspect described above and each possible design of the first aspect described above.
One embodiment in the above application has the following advantages or benefits: the probability of the same data being repeatedly stored by the electronic equipment is reduced, the problem of storage waste caused by the fact that too much storage space of the electronic equipment is occupied is avoided, the electronic equipment is favorable for storing data of other contents, and possibility is provided for a user to browse more contents. Because the first request is received by the electronic device, the first request carries the first identifier, so that the electronic device determines to store the first content according to the first request. When the first identification represents that the original text data of the first content is stored, the electronic equipment generates a second identification corresponding to the first content without storing the original text data of the first content. Therefore, the electronic equipment can determine the storage position of the original text data of the first content according to the second identification. The electronic equipment can acquire the original text data of the first content from the storage position of the original text data of the first content, then push the original text data of the first content to the user, and complete the forwarding process of the original text data of the first content, so that the technical problem that the data of the first content is repeatedly stored and the storage resources are wasted in the prior art is solved, further, when the original text of the first content is stored, the original text of the first content is forwarded by storing the identifier indicating the storage position of the original text data of the first content, the original text data of the first content does not need to be stored, and the repeated storage of the same data by the electronic equipment is avoided.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is a diagram illustrating content associated with first content, where an electronic device according to an embodiment of the present application may be implemented;
FIG. 2 is a schematic diagram according to a first embodiment of the present application;
FIG. 3 is a schematic diagram according to a second embodiment of the present application;
FIG. 4 is a schematic illustration according to a third embodiment of the present application;
FIG. 5 is a schematic diagram of reply data of all contents related to a first content of an electronic device, which can implement an embodiment of the present application;
fig. 6 is a schematic structural diagram of an apparatus of a content processing method according to an embodiment of the present application;
fig. 7 is a block diagram of an electronic device of a content processing method according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The application provides a content processing method, a content processing device and a computer storage medium, which can generate an incidence relation between another content and the content without actually generating original text data of the content when the original text data of the content is forwarded, so that the original text data of the content can be called based on the incidence relation, a process of pushing the original text data of the content to a user is realized, storage resources are saved, and resource waste is avoided.
The execution subject of the content processing method of the present application is an electronic device, wherein the electronic device may be a terminal device (terminal device) or a server. The terminal device includes, but is not limited to, a mobile phone (handset), a tablet computer (PAD), a personal computer, a mobile player, and the like. And the electronic device comprises a webpage or an application program, such as a webpage or an application program for sharing various contents, such as cicada, microblog, si ancestral temple picnic, Skyline, and Bar.
In a web page or application, a user may browse various content, such as in the form of a theme post. And the user may also forward the content. Taking the theme post as an example, the electronic device may generate the forwarding post in response to the user's action of forwarding the theme post, so that other users can view the forwarding post. The present application does not limit the type and quantity of the content.
As shown in fig. 1, in the electronic device, for any one of the theme posts a, if the theme post a stores data, the theme post a is associated with an entity group 11 and a virtual group 12, and the entity group 11 and the virtual group 12 are used for storing posts for forwarding the theme post 1.
The entity group 11 is used for storing an entity post a1, each entity post a1 stores an association relationship between the entity post a1 and the topic post a, or the association relationship between the entity post a1 and the entity group 11 and the association relationship between the entity group 11 and the topic post a, and each entity post a1 stores data, the data is data obtained by modifying the data stored in the topic post a, and the data stored in each entity post a1 is different.
The virtual grouping 12 is used to store a virtual post a2, each virtual post a2 stores the association relationship between the virtual post a2 and the post a, or the association relationship between the virtual post a2 and the virtual grouping 12 and the association relationship between the virtual grouping 12 and the post a, and each virtual post a2 does not store the data stored in the post a.
With continued reference to fig. 1, for any one entity post a1 in the entity grouping 11 of the subject post a, since the entity post a1 stores data, the entity post a1 is associated with an entity grouping 21 and a virtual grouping 22, and the entity grouping 21 and the virtual grouping 22 are used for storing posts for forwarding the entity post a 1.
The entity group 21 is used for storing an entity tile a11, each entity tile a11 stores an association relationship between the entity tile a11 and the entity tile a1, or the association relationship between the entity tile a11 and the entity group 21 and the association relationship between the entity group 21 and the entity tile a1, and each entity tile a11 stores data, the data is data obtained by modifying data of the entity tile a1, and the data stored in each entity tile a11 is different.
The virtual group 22 is used to store a virtual post a12, each virtual post a12 stores the association relationship between the virtual post a12 and the entity post a1, or the association relationship between the virtual post a12 and the virtual group 22 and the association relationship between the virtual group 22 and the entity post a1, and each virtual post a12 does not store the data stored in the entity post a 1.
As will be appreciated by those skilled in the art, a post that first appears in a web page or application and has not been modified is often named an original post. Based on the contents shown in fig. 1, the data stored in the post a is the initial data of the post a, so the post a is the original posts corresponding to the physical post a1, the virtual post a2, the physical post a11 and the virtual post a 12.
Wherein the data stored in the entity post a1 is the data modified from the data stored in the subject post a. The data stored in the entity post a11 is the data modified from the data stored in the entity post a1, and in conclusion, the data stored in the entity post a11 is the data modified from the data stored in the subject post a.
Next, a detailed description will be given of a specific implementation process of the content processing method according to the present application by using a specific embodiment in conjunction with the content shown in fig. 1.
Fig. 2 is a schematic structural diagram according to an embodiment of the present application, and as shown in fig. 2, the content processing method of the present application may include:
s001, receiving a first request, wherein the first request carries a first identifier, and the first request is used for requesting to process data of first content.
When a user requests to perform direct storage or indirect storage (such as forwarding) or the like on any one content, the electronic device may receive the first request, so that the electronic device timely knows that the user performs processing on the first content according to the first request.
The first content may be in the form of a subject post (i.e., post), a blog, or other forms, which is not limited in this application. The first content may include various representation forms such as characters, pictures, videos, and the like, which is not limited in this application.
It should be noted that, as will be understood by those skilled in the art, the first content in the web page or the application program of the electronic device may be forwarded by a plurality of users at the same time. Based on this, the first request may be used for the same user to request to forward the first content N times, or may be used for different users to request to forward the first content N times. N is a positive integer, and the specific size of N may be set in advance according to an actual situation, which is not limited in this application.
For example, when a user requests to forward any one of the subject posts, the electronic device may receive the first request, so that the electronic device may determine, according to the first request, that data of the subject post needs to be stored first, and then forward the data of the subject post, thereby completing the forwarding operation of the user in time.
The first request carries a first identifier, where the first identifier may indicate that original text data of the first content is forwarded (that is, the original text of the first content is data stored in the first content itself) or modified data of the first content (that is, the modified data of the first content is data obtained by modifying the original text data of the first content). The first identifier may be represented by letters or numbers, and the specific representation form of the first identifier is not limited in this application.
For example, when the first flag is data "0", the first flag may represent textual data storing the subject post. When the first identifier is the number "1", the first identifier may indicate that modified data of the theme post is stored.
And S002, if the first identifier indicates that the original text data of the first content is stored, storing a second identifier corresponding to the first content, wherein the second identifier is used for indicating the storage position of the original text data of the first content.
In this application, when the first identifier indicates that the original text data of the first content is stored, the electronic device may generate a second identifier corresponding to the first content without storing the original text data of the first content. By doing so, the content of the same data is prevented from being stored repeatedly, the excessive storage space of the electronic equipment is not required to be occupied, the storage waste of the electronic equipment is avoided, the electronic equipment is favorable for storing the data of other contents, and the possibility is provided for a user to browse more contents.
The second identifier may be represented by a letter, a number, a formula, a number column, a table, a matrix, or the like, and the specific representation form of the second identifier is not limited in the present application.
In addition, after S002, the electronic device may further push the textual data of the first content to the user according to the second identifier. Therefore, the electronic device can determine the storage location of the original text data of the first content according to the second identifier, so as to call the original text data of the first content from the storage location, and realize pushing the original text data of the first content to a user, for example, presenting the original text data of the first content to the user, and completing a forwarding process of the original text data of the first content.
In a specific embodiment, with reference to fig. 1, a specific process of an electronic device using the content processing method of the present application includes:
step 1: a user may browse through a wide variety of subject posts in an electronic device.
Step 2: when a user wants to forward a subject post, the electronic device may receive a first request having a first identification stored therein. Thus, the electronic device can determine which of the subject posts the user wants to forward based on the first request.
And step 3: the electronic equipment can determine whether the user wants to forward the original text data of the subject post or the modified data of the subject post according to the first identification.
And 4, step 4: when the first identification indicates that textual data of the subject post is stored, the electronic device may generate a second identification of the subject post without storing the textual data of the subject post.
For example, in connection with FIG. 1, the electronic device determines that the user wants to forward the subject post may be subject post a. When the first identification indicates that the textual data of the subject post a is stored, the electronic device may generate a second identification of the subject post a and add the second identification of the subject post a as a virtual post a2 to the virtual grouping 12.
For another example, in conjunction with FIG. 1, the electronic device determines that the user wants to forward the subject post may be physical post a 1. When the first identity indicates that textual data of entity post a1 is stored, the electronic device may generate a second identity for the entity post a1 and add the second identity for the entity post a1 as a virtual post a12 to the virtual grouping 22.
For another example, in conjunction with FIG. 1, the electronic device determines that the user wants to forward the subject post may be virtual post a 2. Since the original text data of the virtual post a2 is not stored in the virtual post a2, the original text data of the virtual post a2 is the data of the post a. Thus, when the first identification represents textual data storing virtual post a2, the electronic device may determine that the user wants to forward the data of subject post a, so that the electronic device may generate a second identification of the subject post a and add the second identification of the subject post a as one virtual post a2 to virtual grouping 12.
And 5: the electronic equipment can present the original text data of the subject post to the user according to the second identification, and the data process of the user forwarding the subject post is completed.
According to the content processing method provided by the application, the electronic device receives the first request, and the first request carries the first identifier, so that the electronic device determines to perform processing such as direct storage or indirect storage (such as forwarding) on the first content according to the first request. When the first identification represents that the original text data of the first content is stored, the electronic equipment generates a second identification corresponding to the first content without storing the original text data of the first content. Therefore, the electronic equipment determines the storage position of the original text data of the first content according to the second identification. The electronic equipment acquires the data of the original text of the first content from the storage position of the original text data of the first content, and then pushes the original text data of the first content to the user to complete the forwarding process of the original text data of the first content. In the application, when the original text data of the first content is stored, the storage of the original text data of the first content is realized by storing the identification indicating the storage position of the original text data of the main first content, the original text data of the first content does not need to be stored, the probability of storing the same data by the electronic equipment is reduced, the problem of storage waste caused by occupying too much storage space of the electronic equipment is avoided, the data of other contents is stored by the electronic equipment, more storage space is provided for the user to perform forwarding and other operations, and the possibility is provided for the user to browse more contents.
Since the first content may have data stored therein, the first content may also have data stored therein. For example, based on the contents of FIG. 1, a subject post may or may not have data stored. Therefore, the generation manner of the second identifier corresponding to the first content in S003 shown in fig. 2 includes a plurality of types.
Optionally, when the first content does not store data, the electronic device may generate a second content, where the second content stores a second identifier, the second identifier is an association relationship between the second content and a third content, and the third content stores original text data of the first content.
For example, referring to fig. 1, when the first content does not store data therein, the electronic device may determine that the first content may be a virtual post a2 of a post a, the third content is a post a, and the data stored in the post a is textual data of the first content.
Further, the electronic device may newly generate a virtual post a2 (i.e., second content) in the virtual grouping 12 of the topic post a, in which the second identification is stored in the virtual post a 2. This second identification is the association between virtual post a2 and subject post a. Alternatively, the second identification is the association between virtual post a2 and virtual grouping 12, and the association between virtual grouping 12 and subject post a.
For another example, referring to fig. 1, when the first content does not store data, the electronic device may determine that the first content may be a virtual tile a12 of the entity tile a1, the third content is an entity tile a1, and the data stored in the entity tile a1 is textual data of the first content.
Further, the electronic device may newly generate a virtual post a12 (i.e., second content) in the virtual group 22 of the entity post a1, where the virtual post a12 has the second identifier stored therein. This second identification is the associative relationship between virtual post a12 and entity post a 1. Alternatively, the second identification is an association between virtual tile a12 and virtual grouping 22, and an association between virtual grouping 22 and entity tile a 1.
Optionally, when the first content stores data, the electronic device may generate a second content, where the second content stores a second identifier, and the second identifier is an association relationship between the second content and the first content.
For example, referring to fig. 1, when data is stored in the first content, the electronic device may determine that the first content may be a post a, and the data stored in the post a is textual data of the first content.
Further, the electronic device may newly generate a virtual post a2 (i.e., second content) in the virtual grouping 12 of the topic post a, in which the second identification is stored in the virtual post a 2. This second identification is the association between virtual post a2 and subject post a. Alternatively, the second identification is the association between virtual post a2 and virtual grouping 12, and the association between virtual grouping 12 and subject post a.
For another example, referring to fig. 1, when the first content stores data, the electronic device may determine that the first content is the entity post a1, and the data stored in the entity post a1 is textual data of the first content.
Further, the electronic device may newly generate a virtual post a12 (i.e., second content) in the virtual group 22 of the entity post a1, where the virtual post a12 has the second identifier stored therein. This second identification is the associative relationship between virtual post a12 and entity post a 1. Alternatively, the second identification is an association between virtual tile a12 and virtual grouping 22, and an association between virtual grouping 22 and entity tile a 1.
In addition, the second content may store therein, in addition to the second identifier, the number of references of the second content, an ID of the third content, an ID of the second content, or the like. Wherein the reference number of the second content is used to indicate the number of times the second content is forwarded. The ID of the third content is used to indicate the content storing the textual data of the second content. The ID of the second content is used to represent the second content.
Fig. 3 is a schematic structural diagram according to an embodiment of the present application, and as shown in fig. 3, the content processing method of the present application may include:
s101, receiving a first request, wherein the first request carries a first identifier, and the first request is used for requesting to process data of first content.
And S1021, if the first identifier indicates that the original text data of the first content is stored, storing a second identifier corresponding to the first content, wherein the second identifier is used for indicating the storage position of the original text data of the first content.
S101 and S1021 are similar to the implementation manners of S001 and S002 in the embodiment of fig. 2, and are not described again in this embodiment.
S1022, if the first identifier indicates that modified data of the first content is stored, and the modified data of the first content is data obtained by modifying original text data of the first content, storing the modified data of the first content in a new content having an association relationship with the first content.
In this application, when the first identifier indicates that modified data of the first content is stored, the electronic device may determine that the user has modified the original text data of the first content, so that the electronic device may store the modified data of the first content in a new content, and the new content has an association relationship with the first content.
In this way, when the modified data of the first content is stored, the modified data of the first content is stored into the new content having the association relationship with the first content, so that the data of each content is kept associated, and the multi-level forwarding of the content can be realized.
In addition, after S1022, the electronic device may further push the modified data of the first content to the user according to the new content, for example, present the modified data of the first content to the user, and complete the forwarding process of the modified data of the first content.
In a specific embodiment, with reference to fig. 1, a specific process of an electronic device using the content processing method of the present application includes:
step 1: a user may browse through a wide variety of subject posts in an electronic device.
Step 2: when a user wants to forward a subject post, the electronic device may receive a first request having a first identification stored therein. Thus, the electronic device can determine which of the subject posts the user wants to forward based on the first request.
And step 3: the electronic equipment can determine whether the user wants to forward the original text data of the subject post or the modified data of the subject post according to the first identification.
And 4, step 4: when the first identification indicates that modified data of the theme post is stored, the electronic device may store the modified data of the theme post in a new theme post having an association relationship with the theme post.
For example, in connection with FIG. 1, the electronic device determines that the user wants to forward the subject post may be subject post a. When the first identifier indicates that modified data of the post a is stored, the electronic device may generate an entity post a1 of the post a, which stores the modified data of the post a in the entity post a1, and add the entity post a1 to the virtual grouping 12.
For another example, in conjunction with FIG. 1, the electronic device determines that the user wants to forward the subject post may be physical post a 1. When the first identification indicates that modified data of entity post a1 is stored, the electronic device may generate entity post a11 of entity post a1, store the modified data of entity post a1 in entity post a11, and add entity post a11 to virtual grouping 22.
For another example, in conjunction with FIG. 1, the electronic device determines that the user wants to forward the subject post may be virtual post a 2. Since the modified data of the virtual post a2 is not stored in the virtual post a2, and the modified data of the virtual post a2 is the data obtained by modifying the data of the post a. Accordingly, when the first identification indicates that modified data of the virtual post a2 is stored, the electronic device may determine that the user wants to forward the modified data of the subject post a, so that the electronic device may generate an entity post a1 of the subject post a, store the modified data of the subject post a in the entity post a1, and add the entity post a1 to the virtual grouping 12.
And 5: and the electronic equipment can present the modified data of the theme post to the user according to the new theme post, and completes the data process of forwarding the theme post by the user.
Since the first content may have data stored therein, the first content may also have data stored therein. For example, based on the contents of FIG. 1, a subject post may or may not have data stored. Therefore, the generation manner of the new first content in S1022 shown in fig. 3 includes a plurality of manners.
Optionally, when the first content does not store data, the electronic device may delete the first content and generate a fourth content, where the fourth content stores a third identifier and modified data of the first content, the third identifier is an association relationship between the fourth content and the third content, and the third content stores original text data of the first content.
The third identifier may be represented by a letter, a number, a formula, a number column, a table, a matrix, or the like, and the specific representation form of the third identifier is not limited in the present application.
For example, referring to fig. 1, when the first content does not store data, the electronic device may determine that the first content may be a virtual post a2 of a topic a, the third content is the topic a, data stored in the topic a is original text data of the first content, and the modified data of the first content is data obtained by modifying the data stored in the topic a.
Further, the electronic device may delete the virtual post a2 from the virtual group 12 of the topic post a, and newly generate an entity post a1 (i.e., fourth content) in the entity group 11 of the topic post a, where the entity post a1 stores the third identification and data modifying the data stored in the topic post a. This third identification is an association between entity post a1 and subject post a. Alternatively, the third identification is an association between entity post a1 and entity grouping 11, and an association between entity grouping 11 and topic post a.
For another example, referring to fig. 1, when the first content does not store data, the electronic device may determine that the first content may be a virtual tile a12 of the entity tile a1, the third content is an entity tile a1, data stored in the entity tile a1 is textual data of the first content, and the modified data of the first content is data obtained by modifying data stored in the entity tile a 1.
Further, the electronic device may delete the virtual post a12 from the virtual group 22 of the entity post a1, and newly generate an entity post a11 (i.e., fourth content) in the entity group 12 of the entity post a1, where the entity post a11 stores the third identifier and data for modifying the data stored in the entity post a 1. The third identification is an associative relationship between entity post a11 and entity post a 1. Alternatively, the third identification is the association between entity post a11 and entity grouping 12, and the association between entity grouping 12 and entity post a 1.
Optionally, when the first content stores data, the electronic device may generate fourth content, where the fourth content stores a third identifier and modified data of the first content, and the third identifier is an association relationship between the fourth content and the first content.
For example, referring to fig. 1, when the first content stores data, the electronic device may determine that the first content may be a post a, data stored in the post a is original text data of the first content, and the modified data of the first content is data obtained by modifying the data stored in the post a.
Further, the electronic device may newly generate an entity post a1 (i.e., fourth content) in the entity group 11 of the subject post a, in which the third identification and the data modifying the data stored in the subject post a are stored in the entity post a 1. This third identification is an association between entity post a1 and subject post a. Alternatively, the third identification is an association between entity post a1 and entity grouping 11, and an association between entity grouping 11 and topic post a.
For another example, referring to fig. 1, when the forwarded theme post stores data, the electronic device may determine that the first content may be entity post a1, the data stored in entity post a1 is textual data of the first content, and the modified data of the first content is data obtained by modifying the data stored in entity post a 1.
Further, the electronic device may newly generate an entity post a1 (i.e., fourth content) in the entity group 12 of the entity post a1, where the entity post a1 stores the third identification and data modifying the data stored in the entity post a 1. The third identification is an associative relationship between entity post a1 and entity post a 1. Alternatively, the third identification is the association between entity post a1 and entity grouping 12, and the association between entity grouping 12 and entity post a 1.
In addition, the fourth content may store therein, in addition to the third identifier and the modified data of the first content, the reference number of the fourth content, the ID of the third content, the ID of the fourth content, or the like. Wherein the reference number of the fourth content is used to indicate the number of times the fourth content is forwarded. The ID of the third content is used to indicate the content of the original text data storing the fourth content. The ID of the fourth content is used to represent the fourth content.
Since there is an association between the first content, the content storing the original text data of the first content, and the content storing the modified data of the first content, there is an association between, for example, a subject post forwarding data of the subject post, and a subject post forwarding modified data of the subject post. Therefore, in order to facilitate statistics of the forwarding number of each content, optionally, when the mth time receives the first request, the electronic device may determine that the content of the original text data of the first content or the modified data of the first content is forwarded N times as the target content, and update the reference number of the target content stored in the target content, for example, update the reference number of the target content to be the current reference number of the target content plus 1. Wherein N is taken from 1 to M-1, and M is a natural number.
In the electronic device, the user can reply to any one content, and reply data of the content is generated. In order to facilitate the user to see the reply data of all the contents having the association relationship with the first content, optionally, the electronic device may store the reply data of all the contents having the association relationship with the first content based on the fourth identifier corresponding to the first content.
Wherein the fourth identifier is used for indicating the storage position of the reply data of all the contents having the association relation with the first content. The fourth identifier may be represented by a letter, a number, a formula, a number column, a table, a matrix, or the like, and the specific representation form of the fourth identifier is not limited in the present application.
Based on the content shown in fig. 1, for example, for any one virtual post, the electronic device may determine, based on the association relationship between the virtual post and the subject post stored in the virtual post, an original post corresponding to the virtual post. For any one entity sticker, the electronic device may determine an original sticker corresponding to the entity sticker based on the association relationship between the entity sticker and the subject/entity sticker stored in the entity sticker. Therefore, optionally, the application may use an ID of a fifth content as the fourth identifier, where the fifth content is a content corresponding to the initial data of the stored first content, and the initial data of the first content is data that appears for the first time and is not modified. For example, the electronic device may use the ID of the original post corresponding to the subject post as the fourth identifier, so that the original post corresponding to the subject post may be determined according to any one subject post.
Next, a specific implementation process of the content processing method of the present application is illustrated with reference to fig. 4.
Fig. 4 is a schematic structural diagram according to an embodiment of the present application, and as shown in fig. 4, the content processing method of the present application may include:
s201, receiving a second request, wherein the second request is used for requesting to check the reply data of the first content.
When the user requests to view the reply data of any one of the first contents, the electronic device may receive the second request, so that the electronic device can timely know that the user views the reply data of the first contents according to the second request.
S202, acquiring the ID of the fifth content according to the first content.
Based on the foregoing description, the electronic device may determine, based on any one of the first contents, a fifth content corresponding to the first content, that is, a content corresponding to initial data of the stored first content. Therefore, the electronic device may acquire the association relationship between the first content and the fifth content stored in the first content according to the first content mentioned in S101. Based on the association relationship, the electronic device may acquire the fifth content.
For example, the electronic device may determine, based on any one of the subject posts, an original post to which the subject post corresponds. Therefore, the electronic device may obtain, according to the theme post mentioned in S101, an association relationship between the theme post stored in the theme post and the original post corresponding to the theme post. Based on the association relationship, the electronic device may obtain an ID of an original post corresponding to the subject post.
S203, based on the ID of the fifth content, calling the reply data of all the contents related to the first content.
Since the electronic device stores the reply data of all the contents having the association relationship with the first content based on the fourth identification, i.e., the ID of the fifth content. Therefore, the electronic device may call reply data of all contents having an association with the first content based on the ID of the fifth content.
S204, pushing reply data of all contents related to the first content.
In the application, the electronic device may push the called reply data of all the contents having the association with the first content to the user, for example, the reply data of all the subject posts having the association with the subject posts is presented to the user, and the viewing process of the reply data of all the contents associated with the first content is completed.
The present application does not limit the specific representation form of the reply data of all the contents having the first content association relationship.
Optionally, the reply data of all the contents having the association relationship with the first content may include: one or more floor data. For example, as shown in fig. 5, if the ID of the topic post is the ID of the original post corresponding to the topic post, the topic post not only stores the initial data of the topic post, but also stores one or more floor data, where the floor data may be reply data of an entity post of the topic post, or reply data of a virtual post of an entity post of the topic post, or reply data of an entity post of the topic post.
Each floor data may include, among other things: the ID of the content corresponding to the reply data and the reply data, or the ID of the content corresponding to the reply data and the ID of the content corresponding to the initial data storing the first content corresponding to the reply data.
To facilitate a user's browsing of a variety of content, the electronic device may take the form of a content set, where the same type of content is stored in one content set (e.g., a bar), so that the user can quickly find or browse the same type of content. Each content set may include one or more contents, which is not limited in the present application and only needs to satisfy the contents shown in fig. 1 to 5.
In the present application, a plurality of content sets inevitably contain the same first content. When the first content is the fifth content, that is, the initial data of the first content is stored in the first content, the electronic device may store the initial data of one first content without storing all the first contents in the plurality of content sets. Moreover, the electronic device may generate a fifth identifier corresponding to the first content, so that the electronic device determines, according to the fifth identifier, that each content set has an association relationship with the first content, which is convenient for a user to perform various operations, such as forwarding of the first content, viewing of reply content of the first content, or storing of the first content, in the content set of the electronic device, and thus, the storage space of the electronic device is saved.
The display sequence or the storage sequence of the first content in each content set is not limited in the application. Optionally, the electronic device may display or store the first content in each content set according to the sequence of the update time.
According to an embodiment of the present application, the present application also provides a content processing apparatus.
Fig. 6 is a schematic structural diagram of an apparatus according to the content processing method of the embodiment of the present application. As shown in fig. 6, the content processing apparatus 600 of the present application may include: a receiving module 601 and a processing module 602.
A receiving module 601, configured to receive a first request, where the first request carries a first identifier, and the first request is used to request to store data of a first content;
the processing module 602 is configured to store a second identifier corresponding to the first content if the first identifier indicates that the original text data of the first content is stored, where the second identifier is used to indicate a storage location of the original text data of the first content.
Optionally, the processing module 602 is further configured to push the textual data of the first content according to the second identifier.
Optionally, the processing module 602 is further configured to generate a second identifier corresponding to the first content, and a generation process of the second identifier corresponding to the first content includes: if the first content does not store data, generating second content, wherein the second content stores a second identifier which is an incidence relation between the second content and third content, and the third content stores original text data of the first content; or if the first content stores data, generating a second content, wherein the second content stores a second identifier, and the second identifier is an association relationship between the second content and the first content.
Optionally, the second content further stores a reference number of the second content.
Optionally, the second content further stores an ID of the third content or an ID of the second content.
Optionally, the processing module 602 is further configured to store the modified data of the first content into a new content having an association relationship with the first content if the first content indicates that the modified data of the first content is stored, and the modified data of the first content is data obtained by modifying original text data of the first content.
Optionally, the processing module 602 is further configured to push modified data of the first content
Optionally, the processing module 602 is specifically configured to delete the first content and generate a fourth content if the first content does not store data, where the fourth content stores a third identifier and modified data of the first content, the third identifier is an association relationship between the fourth content and the third content, and the third content stores original text data of the first content; or if the first content stores data, generating fourth content, wherein the fourth content stores a third identifier and modified data of the first content, and the third identifier is an association relationship between the fourth content and the first content.
Optionally, the fourth content further stores the reference number of the fourth content.
Optionally, the fourth content further stores an ID of the third content or an ID of the fourth content.
Optionally, the processing module 602 is further configured to update the reference number of the target content stored in the target content when the mth time receives the first request, where the target content is content that original text data of the first content or modified data is forwarded N times, N is taken over 1 to M-1, and M is a natural number.
Optionally, the processing module 602 is further configured to store reply data of all contents having an association relationship with the first content based on a fourth identifier corresponding to the first content, where the fourth identifier is used to indicate a storage location of the reply data of all contents having an association relationship with the first content.
Optionally, the receiving module 601 is further configured to store reply data of all contents having an association with the first content based on a fourth identifier corresponding to the first content, where the fourth identifier is used to indicate a storage location of the reply data of all contents having an association with the first content, and receive a second request, where the second request is used to request to view the reply data of the first content;
the processing module 602 is further configured to obtain an ID of a fifth content according to the first content; calling reply data of all contents having an association relation with the first content based on the ID of the fifth content; and pushing reply data of all contents having the association relation with the first content.
Optionally, the reply data of all the contents having the association relationship with the first content includes: one or more floor data, each floor data comprising: the ID of the content corresponding to the reply data and the reply data, or the ID of the content corresponding to the reply data and the ID of the content corresponding to the initial data storing the first content corresponding to the reply data.
Optionally, the processing module 602 is further configured to, when the first content stores initial data of the first content, and the initial data of the first content is data that appears for the first time and is not modified, store initial data of one first content if a plurality of content sets include the same first content, and generate a fifth identifier corresponding to the first content, where the fifth identifier is used to indicate an association relationship between each content set and the first content.
Optionally, the processing module 602 is further configured to sort the contents in each content set according to the sequence of the update time.
The content processing apparatus of the present application may be configured to execute the technical solutions of the method embodiments shown in fig. 1 to fig. 5, and the implementation principles and technical effects thereof are similar and will not be described herein again.
In the present application, the content processing apparatus may be divided into functional modules according to the above method examples, for example, each functional module may be divided according to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that the division of the modules in the embodiments of the present application is schematic, and is only one division of logic functions, and there may be another division manner in actual implementation.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
As shown in fig. 7, the electronic device is a block diagram of an electronic device according to the content processing method of the embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown in this application, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of this application that are described and/or claimed herein.
As shown in fig. 7, the electronic apparatus includes: one or more processors 701, a memory 702, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 7, one processor 701 is taken as an example.
The memory 702 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the content processing method provided by the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to execute the content processing method provided by the present application.
The memory 702, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules (e.g., the receiving module 601 and the processing module 602 shown in fig. 6) corresponding to the content processing method in the embodiment of the present application. The processor 701 executes various functional applications of the server and data processing by executing non-transitory software programs, instructions, and modules stored in the memory 702, that is, implements the content processing method in the above-described method embodiment.
The memory 702 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device of the content processing method, and the like. Further, the memory 702 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 702 may optionally include memory located remotely from the processor 701, which may be connected to the content processing method's electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, blockchain networks, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the content processing method may further include: an input device 703 and an output device 704. The processor 701, the memory 702, the input device 703 and the output device 704 may be connected by a bus or other means, and fig. 7 illustrates an example of a connection by a bus.
The input device 703 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus of the content processing method, such as an input device of a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or the like. The output devices 704 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the electronic device receives the first request, wherein the first request carries the first identifier, so that the electronic device determines to perform processing such as direct storage or indirect storage (such as forwarding) on the first content according to the first request. When the first identification represents that the original text data of the first content is stored, the electronic equipment generates a second identification corresponding to the first content without storing the original text data of the first content. Therefore, the electronic equipment determines the storage position of the original text data of the first content according to the second identification. The electronic equipment acquires the data of the original text of the first content from the storage position of the original text data of the first content, and then pushes the original text data of the first content to the user to complete the forwarding process of the original text data of the first content. In the application, when the original text data of the first content is stored, the storage of the original text data of the first content is realized by storing the identification indicating the storage position of the original text data of the main first content, the original text data of the first content does not need to be stored, the probability of storing the same data by the electronic equipment is reduced, the problem of storage waste caused by occupying too much storage space of the electronic equipment is avoided, the data of other contents is stored by the electronic equipment, more storage space is provided for the user to perform forwarding and other operations, and the possibility is provided for the user to browse more contents.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (19)

1. A method for processing content, comprising:
receiving a first request, wherein the first request carries a first identifier, and the first request is used for requesting to process data of first content;
and if the first identifier represents that the original text data of the first content is stored, storing a second identifier corresponding to the first content, wherein the second identifier is used for indicating the storage position of the original text data of the first content.
2. The method of claim 1, further comprising:
and pushing the original text data of the first content according to the second identifier.
3. The method according to claim 1 or 2, wherein the generating process of the second identifier corresponding to the first content includes:
if the first content does not store data, generating second content, wherein the second content stores the second identifier, the second identifier is an association relation between the second content and third content, and the third content stores original text data of the first content;
alternatively, the first and second electrodes may be,
and if the first content stores data, generating second content, wherein the second content stores the second identifier, and the second identifier is an association relation between the second content and the first content.
4. The method of claim 3, wherein the second content further stores therein a reference number of the second content.
5. The method according to claim 3, wherein the second content further stores therein an ID of the third content or an ID of the second content.
6. The method of claim 1, further comprising:
and if the first content represents modified data for storing the first content, and the modified data of the first content is data obtained by modifying original text data of the first content, storing the modified data of the first content into a new content having an association relation with the first content.
7. The method of claim 6, further comprising:
pushing the modified data of the first content.
8. The method according to claim 6 or 7, wherein the storing the modified data of the first content in a new content having an association relationship with the first content comprises:
if the first content does not store data, deleting the first content, and generating fourth content, wherein a third identifier and modified data of the first content are stored in the fourth content, the third identifier is an association relation between the fourth content and the third content, and original text data of the first content is stored in the third content;
alternatively, the first and second electrodes may be,
and if the first content stores data, generating fourth content, wherein a third identifier and modified data of the first content are stored in the fourth content, and the third identifier is an association relationship between the fourth content and the first content.
9. The method according to claim 8, wherein the fourth content further stores therein a reference number of the fourth content.
10. The method according to claim 8, wherein the fourth content further stores therein an ID of the third content or an ID of the fourth content.
11. The method of claim 1, further comprising:
and when the first request is received at the Mth time, updating the reference number of the target content stored in the target content, wherein the target content is the content which forwards the original text data of the first content or the modified data for N times, N is taken from 1 to M-1, and M is a natural number.
12. The method of claim 1, further comprising:
and storing reply data of all contents having an association relationship with the first content based on a fourth identifier corresponding to the first content, wherein the fourth identifier is used for indicating the storage positions of the reply data of all contents having an association relationship with the first content.
13. The method according to claim 12, wherein when the fourth identifier is an ID of a fifth content, the fifth content is a content corresponding to initial data of a first content, and the initial data of the first content is data that appears for the first time and is not modified, the method further comprises:
receiving a second request, wherein the second request is used for requesting to view the reply data of the first content;
acquiring the ID of the fifth content according to the first content;
based on the ID of the fifth content, calling reply data of all contents having an association relationship with the first content;
and pushing reply data of all contents having an association relation with the first content.
14. The method according to claim 12 or 13,
the reply data of all the contents of the first content having the association relationship comprises: one or more floor data, each floor data comprising: the method includes the steps of replying data and an ID of a content corresponding to the replying data, or replying data, an ID of a content corresponding to the replying data and an ID of a content corresponding to initial data of stored first content corresponding to the replying data.
15. The method according to claim 1, wherein when the first content stores initial data of the first content, the initial data of the first content being data which is first appeared and is not modified, the method further comprises:
if a plurality of content sets contain the same first content, storing initial data of the first content, and generating a fifth identifier corresponding to the first content, where the fifth identifier is used to represent an association relationship between each content set and the first content.
16. The method of claim 15, further comprising:
and sequencing the contents in each content set according to the sequence of the updating time.
17. A content processing apparatus characterized by comprising:
a receiving module, configured to receive a first request, where the first request carries a first identifier, and the first request is used to request to store data of a first content;
and the processing module is used for storing a second identifier corresponding to the first content if the first identifier represents that the original text data of the first content is stored, and the second identifier is used for indicating the storage position of the original text data of the first content.
18. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; and
an input device communicatively coupled to the at least one processor; and
an output device communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor, the input device inputs data required for the processor to execute the instructions, the output device outputs an execution result of the processor executing the instructions, and the instructions are executed by the at least one processor to enable the at least one processor to execute the content processing method according to any one of claims 1 to 16.
19. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the content processing method according to any one of claims 1 to 16.
CN201911340929.8A 2019-12-23 2019-12-23 Content processing method and device Active CN111090824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911340929.8A CN111090824B (en) 2019-12-23 2019-12-23 Content processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911340929.8A CN111090824B (en) 2019-12-23 2019-12-23 Content processing method and device

Publications (2)

Publication Number Publication Date
CN111090824A true CN111090824A (en) 2020-05-01
CN111090824B CN111090824B (en) 2023-09-19

Family

ID=70395889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911340929.8A Active CN111090824B (en) 2019-12-23 2019-12-23 Content processing method and device

Country Status (1)

Country Link
CN (1) CN111090824B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070233971A1 (en) * 2006-03-28 2007-10-04 Emc Corporation Methods and apparatus for transferring content from a storage system
WO2007120953A2 (en) * 2006-01-25 2007-10-25 Borrill Paul L Attack and disaster resilient cellular storage systems and methods
CN103001850A (en) * 2012-01-16 2013-03-27 陈晓亮 System and method for forwarding messages
CN103038767A (en) * 2010-07-30 2013-04-10 国际商业机器公司 Data sharing for file clones
CN103098016A (en) * 2010-07-15 2013-05-08 戴尔菲克斯公司 De-duplication based backup of file systems
US20140195638A1 (en) * 2013-01-07 2014-07-10 Dropbox, Inc. Synchronized content library
CN104219137A (en) * 2013-06-05 2014-12-17 北京国信冠群技术有限公司 System and method for protecting original text of E-mailer during circulation of E-mail
US20160034508A1 (en) * 2014-08-04 2016-02-04 Cohesity, Inc. Write operations in a tree-based distributed file system
CN106227800A (en) * 2016-07-21 2016-12-14 中国科学院软件研究所 The storage method of the big data of a kind of highlights correlations and management system
CN107577423A (en) * 2017-08-15 2018-01-12 上海斐讯数据通信技术有限公司 A kind of method and system for optimizing memory space
CN107682421A (en) * 2017-09-21 2018-02-09 努比亚技术有限公司 Access method, server, terminal and the computer-readable recording medium of message
CN108141405A (en) * 2015-10-02 2018-06-08 微软技术许可有限责任公司 Modification to the Email content transmitted
CN109005103A (en) * 2018-07-19 2018-12-14 平安科技(深圳)有限公司 A kind of method, apparatus, storage medium and electronic equipment handling mail
CN109144949A (en) * 2017-06-27 2019-01-04 阿瓦亚公司 System and method for reducing the memory space in liaison centre
CN110113558A (en) * 2019-04-03 2019-08-09 视联动力信息技术股份有限公司 Data processing method, device, system and computer readable storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007120953A2 (en) * 2006-01-25 2007-10-25 Borrill Paul L Attack and disaster resilient cellular storage systems and methods
US20070233971A1 (en) * 2006-03-28 2007-10-04 Emc Corporation Methods and apparatus for transferring content from a storage system
CN103098016A (en) * 2010-07-15 2013-05-08 戴尔菲克斯公司 De-duplication based backup of file systems
CN103038767A (en) * 2010-07-30 2013-04-10 国际商业机器公司 Data sharing for file clones
CN103001850A (en) * 2012-01-16 2013-03-27 陈晓亮 System and method for forwarding messages
US20140195638A1 (en) * 2013-01-07 2014-07-10 Dropbox, Inc. Synchronized content library
CN104219137A (en) * 2013-06-05 2014-12-17 北京国信冠群技术有限公司 System and method for protecting original text of E-mailer during circulation of E-mail
US20160034508A1 (en) * 2014-08-04 2016-02-04 Cohesity, Inc. Write operations in a tree-based distributed file system
CN108141405A (en) * 2015-10-02 2018-06-08 微软技术许可有限责任公司 Modification to the Email content transmitted
CN106227800A (en) * 2016-07-21 2016-12-14 中国科学院软件研究所 The storage method of the big data of a kind of highlights correlations and management system
CN109144949A (en) * 2017-06-27 2019-01-04 阿瓦亚公司 System and method for reducing the memory space in liaison centre
CN107577423A (en) * 2017-08-15 2018-01-12 上海斐讯数据通信技术有限公司 A kind of method and system for optimizing memory space
CN107682421A (en) * 2017-09-21 2018-02-09 努比亚技术有限公司 Access method, server, terminal and the computer-readable recording medium of message
CN109005103A (en) * 2018-07-19 2018-12-14 平安科技(深圳)有限公司 A kind of method, apparatus, storage medium and electronic equipment handling mail
CN110113558A (en) * 2019-04-03 2019-08-09 视联动力信息技术股份有限公司 Data processing method, device, system and computer readable storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
H ZHANG等: ""Data replication placement strategy based on bidding mode for cloud storage cluster"", 《IEEE》 *
刘鑫: ""基于Struts架构的校园微博系统的设计与实现"" *
吴晓勇;杨频;胡晓勤;臧文娟;: "基于重复数据消除的差异备份方法", 计算机工程, no. 21 *

Also Published As

Publication number Publication date
CN111090824B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
CN111158799A (en) Page rendering method and device, electronic equipment and storage medium
CN104079696A (en) Contact name card generation method and device
CN111586128A (en) Method, device and equipment for acquiring applet data and storage medium
CN111090691B (en) Data processing method and device, electronic equipment and storage medium
JP7167229B2 (en) Fusion relationship network construction method, fusion relationship network construction device, electronic device, storage medium, and program
CN110619002A (en) Data processing method, device and storage medium
CN110992112A (en) Method and device for processing advertisement information
CN111752960B (en) Data processing method and device
CN111610972A (en) Page generation method, device, equipment and storage medium
CN112163143B (en) Page switching method, device, equipment and storage medium
CN112346612B (en) Page display method and device
CN110517079B (en) Data processing method and device, electronic equipment and storage medium
WO2023169193A1 (en) Method and device for generating smart contract
CN110727834A (en) Directed acyclic graph acquisition method and device, electronic equipment and storage medium
CN111339187A (en) Data processing method, device, equipment and storage medium based on intelligent contract
CN111090824B (en) Content processing method and device
CN111985760B (en) Data content evaluation method and device, electronic equipment and storage medium
CN111723318B (en) Page data processing method, device, equipment and storage medium
CN111752885B (en) Method and device for processing reading authority in reading material
CN111177558B (en) Channel service construction method and device
CN113220982A (en) Advertisement searching method, device, electronic equipment and medium
CN111651229A (en) Font changing method, device and equipment
CN111352685A (en) Input method keyboard display method, device, equipment and storage medium
CN112861029B (en) Information display method, device, equipment and medium
CN110531952B (en) Voice skill processing method, device and equipment

Legal Events

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