A data processing method, device and equipment of information flow and storage medium

CN116361573BActive Publication Date: 2026-10-16DOUYIN VISION CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111626839.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2026-10-16
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

实际应用中,较复杂的业务场景中的单个Feed数据的数据量可能会较大,从服务端拉取这类Feed数据的数据传输时间可能较长,导致客户端界面响应不及时,影响客户端用户的使用体验

Benefits of technology

[0031] The technical solution provided in this disclosure has at least the following advantages compared with the prior art:

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116361573B_ABST
    Figure CN116361573B_ABST
Patent Text Reader

Abstract

The present disclosure provides a data processing method, device and equipment for information flow and storage medium, the method comprising: first, when receiving an information flow request, obtaining a plurality of data objects based on the information flow request, and determining whether the first data object meets a preset data filtering condition based on the data corresponding to the preset data field in the first data object; when it is determined that the first data object meets the data filtering condition, extracting the data corresponding to the preset data field from the first data object to form a first-level display object; then constructing a first information flow for the information flow request based on the first-level display object; and then returning the first information flow, so that the client displays the first data object based on the first-level display object of the first data object in the first information flow. The present embodiment can improve the response speed of the client interface, thereby improving the user experience of the client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of Internet application technology, and in particular to a data processing method, apparatus, device and storage medium for information flow. Background Technology

[0002] A news feed, also known as a news feed, refers to data presented to users in a specific order, usually chronologically. Common news feed formats include short video recommendation feeds, news lists, and Weibo following lists.

[0003] Feed data is stored on the server, and the client needs to use certain strategies to retrieve the feed data from the server for display. In practical applications, the data volume of a single feed in more complex business scenarios may be large, and the data transmission time for retrieving such feed data from the server may be long, resulting in untimely response of the client interface and affecting the user experience. Summary of the Invention

[0004] To address the aforementioned technical problems, this disclosure provides a data processing method for information streams, which can improve the response speed of the client interface and thus enhance the user experience.

[0005] In a first aspect, this disclosure provides a data processing method for information streams, the method comprising:

[0006] Receive information stream requests from users and obtain multiple data objects based on the information stream requests;

[0007] Based on the data in the first data object that corresponds to the preset data field, determine whether the first data object meets the preset data filtering conditions;

[0008] If it is determined that the first data object meets the data filtering conditions, then the data corresponding to the preset data field is extracted from the first data object to form the first-level display object of the first data object;

[0009] Based on the first-level display object of the first data object, a first information stream is constructed for the information stream request;

[0010] In response to the information stream request, the first information stream is returned.

[0011] Secondly, this disclosure provides a data processing method for information streams, the method comprising:

[0012] Send a user's information stream request to the server; wherein, the information stream request is used to request multiple data objects from the server;

[0013] Receive a first information stream returned in response to the information stream request; wherein the first information stream includes a first-level display object of a first data object, and the first-level display object includes data in the first data object corresponding to a preset data field;

[0014] The first data object is displayed based on the first-level display object of the first data object.

[0015] Thirdly, this disclosure provides a data processing system for information flow, comprising a server and a client.

[0016] The server is configured to receive a user's information flow request, obtain multiple data objects based on the information flow request, determine whether the first data object meets the preset data filtering conditions based on the data in the first data object corresponding to the preset data fields, and extract the data corresponding to the preset data fields from the first data object when it is determined that the first data object meets the data filtering conditions to form a first-level display object of the first data object, and construct a first information flow for the information flow request based on the first-level display object of the first data object, and return the first information flow for the information flow request.

[0017] The client is configured to receive the first information stream and display the first data object based on the first-level display object of the first data object in the first information stream.

[0018] Fourthly, this disclosure provides a data processing apparatus for information streams, the apparatus comprising:

[0019] The acquisition module is used to receive information flow requests from users and acquire multiple data objects based on the information flow requests;

[0020] The judgment module is used to determine whether the first data object meets the preset data filtering conditions based on the data in the first data object that corresponds to the preset data field.

[0021] The data extraction module is used to extract the data corresponding to the preset data field from the first data object if it is determined that the first data object meets the data filtering conditions, and to form a first-level display object of the first data object.

[0022] The construction module is used to construct a first information stream for the information stream request based on the first-level display object of the first data object;

[0023] The feedback module is used to return the first information stream in response to the information stream request.

[0024] Fifthly, this disclosure provides a data processing apparatus for information streams, the apparatus comprising:

[0025] The sending module is used to send a user's information flow request to the server; wherein the information flow request is used to request multiple data objects from the server;

[0026] A receiving module is configured to receive a first information stream returned in response to the information stream request; wherein the first information stream includes a first-level display object of a first data object, and the first-level display object includes data in the first data object corresponding to a preset data field;

[0027] The display module is used to display the first data object based on the first-level display object of the first data object.

[0028] In a sixth aspect, this disclosure provides a computer-readable storage medium storing instructions that, when executed on a terminal device, cause the terminal device to perform the above-described method.

[0029] In a seventh aspect, this disclosure provides an apparatus comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method described above.

[0030] Eighthly, this disclosure provides a computer program product comprising a computer program / instructions that, when executed by a processor, implement the method described above.

[0031] The technical solution provided in this disclosure has at least the following advantages compared with the prior art:

[0032] This disclosure provides a data processing method for information streams. First, upon receiving an information stream request, multiple data objects are obtained based on the request. Then, based on data in a first data object corresponding to preset data fields, it is determined whether the first data object meets preset data filtering conditions. If the first data object meets the filtering conditions, data corresponding to the preset data fields is extracted from the first data object to form a primary display object. A first information stream is then constructed based on the primary display object for the information stream request, and the first information stream is returned. This allows the client to display the first data object based on the primary display object of the first data object in the first information stream. This disclosure, by obtaining data from preset data fields to construct a primary display object when the data object meets the filtering conditions, and then displaying the primary display object on the client, prioritizes the display of content from preset fields in the data object, improving the response speed of the client interface and thus enhancing the user experience. Attached Figure Description

[0033] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0034] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0035] Figure 1 A flowchart illustrating a data processing method for an information flow provided in this embodiment of the disclosure;

[0036] Figure 2 Example diagram of feed data splitting results provided in embodiments of this disclosure;

[0037] Figure 3 A flowchart of another data processing method for information flow provided in this disclosure embodiment;

[0038] Figure 4 This is a schematic diagram illustrating a process by which a client retrieves individual feed data from a server in a tiered manner, as provided in an embodiment of this disclosure.

[0039] Figure 5 A schematic diagram illustrating the process by which the client, as provided in this embodiment of the disclosure, gradually fills the data object template with the pulled Feed data;

[0040] Figure 6 A schematic diagram of the structure of an information flow data processing system provided in an embodiment of this disclosure;

[0041] Figure 7 A schematic diagram of the structure of a data processing device for information flow provided in an embodiment of this disclosure;

[0042] Figure 8 A schematic diagram of the structure of another information stream data processing apparatus provided in an embodiment of the present disclosure;

[0043] Figure 9 This is a schematic diagram of the structure of a data processing device for information flow provided in an embodiment of the present disclosure. Detailed Implementation

[0044] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.

[0045] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.

[0046] Feed data is stored on the server side, and the client needs to use certain strategies to fetch feed data from the server for display. The data transmission time between the client and the server is directly proportional to the data size. In complex business scenarios, the data volume of a single feed may be very large, requiring a lot of time to fetch the feed data. This will affect the user experience on the client side. A typical user scenario is a drop-down list where users have to wait for a long time before new content is displayed.

[0047] To improve the user experience of real-time data retrieval, a common approach is to pre-fetch feed data. This involves fetching data from the server before the user proceeds to the next data presentation, and then using the pre-fetched data locally when new content is needed. While this feed data pre-fetching approach significantly enhances the client-side user experience, the amount of data that can be pre-fetched must meet certain thresholds. Fetching too much data may result in unnecessary data being used in the actual interface, wasting bandwidth; conversely, fetching too little data may fail to meet the requirements for effective interface presentation, negatively impacting the display quality. Therefore, finding a way to fetch sufficient data to ensure optimal interface presentation and improve response speed with minimal bandwidth cost has become a pressing issue.

[0048] To address the aforementioned problems, this disclosure provides a data processing method for information streams. First, upon receiving an information stream request, multiple data objects are obtained based on the request. Then, based on the data in the first data object corresponding to preset data fields, it is determined whether the first data object meets preset data filtering conditions. If the first data object meets the data filtering conditions, data corresponding to the preset data fields is extracted from the first data object to form a primary display object. A first information stream is then constructed based on the primary display object for the information stream request, and the first information stream is returned. This allows the client to display the first data object based on the primary display object of the first data object in the first information stream. This disclosure, by obtaining data from preset data fields to construct a primary display object when the data object meets the data filtering conditions, and then displaying the primary display object on the client, prioritizes the display of content from preset fields in the data object, improving the response speed of the client interface and thus enhancing the user experience.

[0049] The solution provided in this disclosure provides a hierarchical design for the feed stream (multiple feed data). For data objects that meet the data filtering conditions, data from preset data fields or data fields that the user is more concerned about are pulled and displayed. This reduces the amount of data pulled, lowers bandwidth costs, and improves interface response speed while ensuring the interface presentation effect.

[0050] Based on this, the present disclosure provides a data processing method for information streams, referring to... Figure 1 This is a flowchart of a data processing method for an information stream provided in an embodiment of this disclosure. The method is applied to a server and includes:

[0051] S101: Receive the user's information flow request and obtain multiple data objects based on the information flow request.

[0052] In this embodiment of the disclosure, when a user browses information displayed in a list format through a client installed on their electronic device, such as browsing a news list through a news client, the client generates a relevant information stream request and sends it to the corresponding server. When the server receives the information stream request, it can obtain multiple data objects based on the received information stream request.

[0053] For example, suppose a user clicks on the "Hot News" module in a news app. The server receives a news feed request containing keywords such as "hot news" and "hot topic." Based on these keywords, the server retrieves data and obtains multiple data objects. It's understandable that these multiple data objects are related to the news feed request.

[0054] S102: Based on the data in the first data object that corresponds to the preset data field, determine whether the first data object meets the preset data filtering conditions.

[0055] In this embodiment of the disclosure, for multiple acquired data objects, it can be determined whether each data object meets a preset data filtering condition. The feed data retrieval strategy corresponding to the preset data filtering condition is partial retrieval, which instructs that only a portion of the data in the data object that meets the data filtering condition be retrieved. Whether each data object meets the preset data filtering condition can be determined based on the data corresponding to the preset data fields contained in each data object.

[0056] In one optional implementation, the preset data field can be a pre-defined data field, such as a title, publication time, number of views, text summary, etc. Then, based on the data corresponding to the preset data field in the first data object, it is determined whether the first data object meets the preset data filtering conditions.

[0057] In one optional implementation, the preset data field can be a data field that the user is interested in. Therefore, before determining whether the first data object meets the preset data filtering conditions based on the data in the first data object that corresponds to the preset data field, the user's attention to different data fields can be obtained first, and the data fields whose user attention is greater than the preset threshold can be determined as preset data fields.

[0058] The first data object is any one of the multiple data objects acquired. The preset threshold can be set according to actual needs and experience. The user's attention to different data fields can be determined based on the user's browsing history, historical operations, personal preferences, etc. This disclosure does not restrict the specific method for determining attention.

[0059] For example, assuming users' attention to "views," "posting time," and "number of comments" exceeds a preset threshold, then browser views, posting time, and number of comments can be defined as preset data fields. Data corresponding to the "views," "posting time," and "number of comments" fields for each of multiple data objects can be retrieved. For each data object, based on its own "views," "posting time," and "number of comments" data, it can be determined whether the data object meets the data filtering criteria. Similarly, assuming users' attention to "title," "text summary," and "posting time" exceeds a preset threshold, then title, text summary, and posting time can be defined as preset data fields. For each retrieved data object, based on its own title, text summary, and posting time data, it can be determined whether the data object meets the data filtering criteria.

[0060] In this embodiment of the disclosure, by defining data fields whose user attention exceeds a preset threshold as preset data fields, it is possible to determine whether each data object meets the data filtering conditions based on the data corresponding to the data fields that the user is interested in. This allows for the extraction of data from the data fields that the user is interested in to form the primary display object of the data object for display, which is beneficial for improving the personalized display of data objects.

[0061] For example, assuming the preset data fields include three data fields: "views," "posting time," and "comments," the data obtained from these fields can be converted according to preset conversion rules to form a uniform numerical format. Then, the converted numbers are summed, and the sum is used to determine whether the corresponding data object meets the data filtering criteria. It should be noted that if the first data object does not contain a certain preset data field, the data corresponding to that missing field obtained from the first data object will be 0.

[0062] For example, conversion rules can be preset as shown in Table 1, which shows the correspondence between the data of "views", "posting time" and "number of comments" and the converted numbers.

[0063] Table 1

[0064] q>10,000 5 5 thousand < q ≤ 10 thousand 4 1,000<q≤5,000 3 100<q≤1000 2 q≤100 1 The interval t between the release time and the current time (in days). t<1 3 1≤t<7 2 t≥7 1 Number of comments p p>5000 4 1000<p≤5000 3 100<p≤1000 2 p≤100 1

[0065] Suppose a data object has 6800 views, was published yesterday (within one day of the current time), and has 2530 comments. By consulting Table 1, we can convert the views to 4, the publication time to 3, and the number of comments to 3. Summing these converted numbers yields a sum of 10. This sum can be used to determine if the data object meets the data filtering criteria. Alternatively, if the pre-set condition for a data object to meet the filtering criteria is that the sum of the converted data corresponding to fields with user attention exceeding a preset first threshold is within the range of 8 to 15, then based on this preset condition, the aforementioned data object can be determined to meet the data filtering criteria.

[0066] S103: If it is determined that the first data object meets the data filtering conditions, then extract the data corresponding to the preset data field from the first data object to form the first-level display object of the first data object.

[0067] In this embodiment of the disclosure, when it is determined that the first data object meets the data filtering conditions, the data corresponding to the preset data field can be extracted from the first data object, and the extracted data can be used to construct the first-level display object of the first data object.

[0068] It should be noted that the embodiments of this disclosure only use the extraction of data corresponding to preset data fields from a first data object as an example to explain the solution of this disclosure, and should not be construed as a limitation of this disclosure. In an optional implementation, when extracting data from the first data object to construct a primary display object, it is not limited to extracting only data from preset data fields, but also to extracting data from other specified data fields. Other specified data fields may include, for example, title, author, text summary, etc. For data objects containing text and image content, other specified data fields may also include thumbnails, so as to supplement the fields used for data extraction when the preset data fields do not contain fields related to the content of the data object, ensuring that the extracted data can reflect the relevant content information of the data object, thereby ensuring the effectiveness of information display on the client and improving the user's reading experience.

[0069] In one optional implementation, after determining that the first data object meets the data filtering conditions, the data corresponding to the preset data field can be extracted from the first data object, and the mapping relationship between the preset data field and the data can be stored in a preset first-level data structure to obtain the first-level display object of the first data object.

[0070] The size of the primary data structure can be set based on experience. For example, it can be estimated based on existing experience to determine the approximate number of data fields that users are interested in, and the size of the primary data structure can be set accordingly. Alternatively, it can be set according to actual needs. For example, based on the preset number of data fields, the primary data structure can contain a corresponding number of storage units, with each storage unit used to store the name of a preset data field and the mapping relationship between the corresponding data.

[0071] It is understandable that the preset data fields can be data fields that users pay more attention to, so that the primary display objects composed of the data corresponding to the preset data fields can reflect the content that users are interested in.

[0072] S104: Based on the first-level display object of the first data object, construct a first information flow for the information flow request.

[0073] In this embodiment of the disclosure, after constructing the corresponding first-level display object for the first data object that meets the data filtering conditions, the first information flow can be constructed for the information flow request based on the first-level display object of the first data object.

[0074] For example, the first-level display objects of the first data object can be randomly sorted to obtain the first information stream.

[0075] For example, when the preset data fields are determined based on user attention, the primary display objects of the first data object can be sorted in descending order of the number of preset data fields contained in the first data object to obtain the first information stream. That is, the more user-focused data fields a primary display object contains, the higher it appears in the sorting.

[0076] S105: In response to the information flow request, return the first information flow.

[0077] In this embodiment of the disclosure, after constructing a first information stream for an information stream request, the first information stream can be returned to the client so that the client can display the first data object based on the first information stream.

[0078] In the data processing method for information flow provided in this embodiment, upon receiving an information flow request, multiple data objects are first obtained based on the request. Based on the data in the first data object corresponding to preset data fields, it is determined whether the first data object meets preset data filtering conditions. If the first data object meets the data filtering conditions, data corresponding to the preset data fields is extracted from the first data object to form a primary display object. Then, a first information flow is constructed based on the primary display object for the information flow request, and the first information flow is returned. This allows the client to display the first data object based on the primary display object of the first data object in the first information flow. This embodiment, by obtaining data from preset data fields to construct a primary display object when the data object meets the data filtering conditions, and then displaying the primary display object on the client, prioritizes the display of content from preset fields in the data object, improving the response speed of the client interface and thus enhancing the user experience.

[0079] Since the first information stream is composed of a first-level display object based on the first data object, and the first-level display object is obtained based on preset data fields and corresponding data, the first information stream contains information from the preset fields, not all the information of the first data object. Therefore, when it is necessary to display all the information of the first data object, such as when a user browses the first data object through a client, the client also needs to retrieve the remaining information of the first data object from the server to ensure the integrity of the content of the first data object displayed by the client. Thus, in an optional implementation, after returning the first information stream in response to the information stream request, the method further includes:

[0080] Upon receiving a data request carrying a data object identifier and a display level identifier, the system obtains the data object corresponding to the data object identifier and extracts the data corresponding to the display level identifier from the data object to form the object to be displayed; wherein, the object to be displayed corresponds to the display level identifier.

[0081] In response to the data request, the object to be displayed is returned.

[0082] Among them, the data object identifier is the identifier of any first data object, and the data object identifier carried in the data request can be determined based on the user's operation.

[0083] For example, when a user browses the first data object displayed in the client through the client, if the user pauses scrolling through the list of the first data object, it can be assumed that the user is paying more attention to the first data object displayed on the current interface. In this case, the data object identifier of the first data object can be carried in the data request to continue to obtain the remaining content of the first data object.

[0084] For example, the data object identifier can also be determined by user clicks. For instance, when a user clicks on a first data object in the display list of first data objects, and the user wants to learn more about the information of the first data object, the data object identifier of the first data object can be carried in the data request to continue to obtain the remaining content of the first data object.

[0085] For the remaining data in the first data object other than the data corresponding to the first data field, it can be split according to the importance of the data, and the remaining data can be split into multiple groups. A corresponding display level label can be set for each group. The display level label is used to retrieve the data in the corresponding group.

[0086] In one optional implementation, when returning the first information stream, the display level identifier corresponding to each first data object can also be returned to the client, so that when the client needs to retrieve detailed information of a certain first data object, it can send the display level identifier of the first data object in the data request to the server, so as to retrieve the data corresponding to the display level identifier of the first data object from the server.

[0087] In practical applications, the server can break down complete initial data objects into multiple data blocks. The principle of splitting is generally based on the importance presented to the user. For example, data from preset data fields can be split into one data block, and the remaining data can be split into another data block or further split into multiple data blocks. For instance, a text and image feed typically contains data such as: title, author, publication time, text content, image content, followers, likes, comments, related feeds, reports / complaints, and recommendations. However, the information initially presented to the user may only include: title, author, publication time, text summary, and thumbnail. Therefore, the data initially presented to the user can be extracted and placed into a Feed Summary data structure. Other feed data can be further split into Feed Detail1, Feed Detail2, and other data structures. Feed Detail1 and Feed Detail2 can serve as display level identifiers to retrieve data from the corresponding data structures.

[0088] Figure 2 Example diagram of the splitting result of Feed data provided in the embodiments of this disclosure, such as Figure 2 As shown, a complete feed can be split into three parts: Feed Summary, Feed Detail1, and Feed Detail2. The sum of the data in these three parts is the same as the original feed data. The Feed Summary is returned to the client first as the primary display object. When returning the data in the Feed Summary, the identifiers of Feed Detail1 and Feed Detail2 can also be returned to the client, so that data can be retrieved from the corresponding data structure based on Feed Detail1 or Feed Detail2 when needed. Alternatively, when returning the data in the Feed Summary, only the Feed Detail1 identifier can be returned, and the Feed Detail2 identifier can be returned later when returning the data in FeedDetail1.

[0089] In this embodiment, the hierarchical design of the feed data is mainly to extract the data presented to the user for the first time, thereby reducing the network latency of the first feed retrieval. In actual use, the feed data should not be split into too many levels, as this will increase the frequency of network requests and the design complexity of the entire feed loading process.

[0090] After splitting the feed data, the server-side needs to modify the feed data request interface to support clients in retrieving feed data at different levels. For example, the previous interface was getFeeds(Paramsparams), but a feedLevel field can be added to the Params request parameter to distinguish the level of feed data to be retrieved. Alternatively, interfaces such as getFeedsSummary(Paramsparams) and getFeedsDetail(Paramsparams) can be added to retrieve feed data at different levels.

[0091] In this embodiment, when the server receives a data request carrying a data object identifier and a display level identifier, it can extract the data object identifier and the display level identifier from the data request, obtain the corresponding data object based on the data object identifier, extract the data corresponding to the display level identifier from the obtained data object, construct the object to be displayed based on the data corresponding to the display level identifier, and then return the object to be displayed to the client. This achieves tiered retrieval of feed data, enabling users to obtain feed data at a lower bandwidth cost, thus reducing data transmission bandwidth.

[0092] For example, suppose the data object identifier carried in the data request is Feed1 and the display level identifier is Feed Detail1. Then, the server will obtain the data corresponding to Feed Detail1 of Feed1 based on the data request to form the object to be displayed and return it to the client.

[0093] In one optional implementation, when determining whether a first data object meets preset data filtering conditions based on the data in the first data object corresponding to the preset data field, the data in the first data object corresponding to the preset data field can be obtained first, and the priority corresponding to the first data object can be determined based on the correspondence between the preset data field and the weight; then, based on the priority corresponding to the first data object, it can be determined whether the first data object meets the preset data filtering conditions.

[0094] In this embodiment of the present disclosure, for any data object among the multiple data objects obtained, namely the first data object, data corresponding to the preset data field can be obtained from the first data object, and the weight corresponding to each preset data field can be determined based on the correspondence between the preset data field and the weight. The weighted summation operation is performed using the data corresponding to each preset data field and the corresponding weight, as shown in formula (1), and then the priority of the corresponding data object is determined based on the obtained result.

[0095]

[0096] Where Q is the weighted sum result, i is the i-th data field in the preset data fields, k is the total number of preset data fields, and w i For the weight corresponding to the i-th preset data field, s i This refers to the data obtained from the first data object that corresponds to the i-th preset data field.

[0097] It should be noted that different preset data fields correspond to data in different formats. For example, the data corresponding to the publication time is a time value, while the data corresponding to the number of comments is a numerical value. To facilitate calculation, the data corresponding to different preset data fields can be converted. For example, based on the conversion rules shown in Table 1, the data corresponding to different preset data fields can be converted into a unified numerical format. That is to say, s in the above formula i It can be the converted number.

[0098] For the weighted sum results corresponding to each data object obtained from the calculation, the priority of each data object can be determined based on the pre-defined correspondence between different weighted sum ranges and priority levels.

[0099] For example, different weighted sum ranges and priority levels can be set as shown in Table 2. Based on Table 2 and the weighted sums corresponding to each data object, the priority of each data object can be determined. For example, if the weighted sum of a certain data object calculated according to the above formula (1) is 2.6, then by querying Table 2, the priority of the data object can be determined to be 1.

[0100] Table 2

[0101] 3 (excluding 3) to 5 (including 5) 2 1 (excluding 1) to 3 (including 3) 1 0 to 1 (inclusive) 0

[0102] In this embodiment of the disclosure, after determining the priority of each data object, it is possible to determine which data objects among multiple data objects belong to the hierarchical display data objects based on the priority of the data objects. When it is determined that the first data object belongs to the hierarchical display data objects, the data corresponding to the preset data fields is extracted from the first data object to form the first-level display object of the first data object.

[0103] Different data retrieval strategies can be set for different priorities. Data retrieval strategies can include partial retrieval, and data objects that can be displayed in a hierarchical manner are retrieved by partial retrieval.

[0104] For example, Table 3 is an example table showing the correspondence between priority and data retrieval strategy provided in the embodiments of this disclosure. As shown in Table 3, different priorities correspond to different retrieval strategies. The highest priority is 2. This type of feed data is very important to the user, and a strategy of retrieving all data is adopted. That is, for data objects with a priority of 2, it is not necessary to retrieve individual feed data in a hierarchical manner; all data of a single feed can be returned. The next priority is 1. This type of feed data is not so important to the user. It is retrieved in a hierarchical manner according to the priority of individual feed data, that is, partial retrieval. Only a part of this type of feed data is retrieved each time. Feed Summary data is returned first, and then FeedDetail data is returned gradually. Individual feed data with a priority of 1 will gradually be fully retrieved during multiple feed stream retrievals. The least important priority is 0. This type of feed data is not important to the user. Data is not retrieved in this instance. This part of the feed data is only returned to the client as a placeholder, and the client can then decide whether to display it to the user.

[0105] Table 3

[0106] 2 Pull all 1 Partial pull 0 No need to pull

[0107] In this embodiment of the disclosure, for a data object with a priority of 1, if it is determined that this type of data object belongs to a hierarchical display data object, then the data corresponding to the first data field is extracted from the first data object with a priority of 1 to form a first-level display object.

[0108] Furthermore, in an optional implementation, before constructing the first information flow for the information flow request based on the first-level display object of the first data object, it can also be determined whether the second data object belongs to the data object that does not need to be displayed based on the data in the second data object corresponding to the preset data field;

[0109] If it is determined that the second data object belongs to the data object that does not need to be displayed, then the data in the second data object is cleared to obtain the cleared data object corresponding to the second data object;

[0110] Accordingly, the first-level display object based on the first data object constructs a first information stream for the information stream request, including:

[0111] Based on the cleared data object corresponding to the second data object and the first-level display object of the first data object, a first information flow is constructed for the information flow request.

[0112] The second data object is any one of the multiple data objects obtained.

[0113] In this embodiment of the disclosure, for the second data object, it can be determined whether the second data object belongs to the data object that does not need to be displayed based on the data in the second data object that corresponds to the preset data field.

[0114] For example, the priority of the first data object can be determined by the method described in the above embodiments, which is based on the data corresponding to the preset data field in the first data object and the correspondence between the preset data field and the weight. The data corresponding to the preset data field is obtained from the second data object, and the weight corresponding to each data field in the preset data field is determined based on the relationship between the preset data field and the weight. The above formula (1) is used to perform a weighted summation operation based on the data and the corresponding weight of each preset data field to obtain the weighted sum result. Then, referring to Table 2, the priority of the second data field is determined based on the weighted sum result. If the priority of the second data object is 0, it is determined that the second data object belongs to the data object that does not need to be displayed.

[0115] In this embodiment of the disclosure, if it is determined that the second data object is a data object that does not need to be displayed, the data corresponding to the second data object can be cleared to obtain a cleared data object, and a first information flow can be constructed for the information flow request based on the cleared data object and the first-level display object corresponding to the first data object.

[0116] For example, taking the different priorities and data retrieval strategies shown in Table 3 as examples, if the priority of the second data object is 0, there is no need to retrieve data from the second data object. In this case, the data of the second data object can be cleared, and the cleared data object corresponding to the second data object can be returned to the client.

[0117] In this embodiment of the disclosure, by clearing the data objects that do not need to be displayed, a first information flow is constructed for the information flow request based on the cleared data object corresponding to the second data object and the first-level display object of the first data object, so that the second data object that does not need to be displayed this time can obtain a placeholder on the client so that the data of the second data object can continue to be pulled when idle.

[0118] Figure 3 A flowchart illustrating another data processing method for an information flow provided in this disclosure embodiment, which can be applied to a client, such as... Figure 3 As shown, the data processing method for this information stream may include the following steps:

[0119] S301: Send a user's information flow request to the server; wherein the information flow request is used to request multiple data objects from the server.

[0120] In this embodiment of the disclosure, when a user browses information displayed in a list format through a client installed on their electronic device, such as browsing a news list through a news client, the client generates a relevant information stream request and sends it to the corresponding server. When the server receives the information stream request, it can obtain multiple data objects based on the received information stream request.

[0121] S302: Receive a first information stream returned in response to the information stream request; wherein the first information stream includes a first-level display object of a first data object, and the first-level display object includes data in the first data object corresponding to a preset data field.

[0122] In this embodiment, the first information stream is constructed by the server and returned to the client for display. The determination of the first data object, the generation of the first-level display object of the first data object, the determination of preset data fields, and the specific construction process of the first information stream can be found in the relevant descriptions in the foregoing method embodiments applied to the server side, and will not be repeated here.

[0123] S303: Display the first data object based on the first-level display object of the first data object.

[0124] In this embodiment of the disclosure, after the client receives the first information stream returned by the server in response to the information stream request, it can display the first data object based on the first-level display object of the first data object contained in the first information stream.

[0125] In one optional implementation, when displaying a first data object based on a first information stream, a first-level display object can be extracted from the first information stream, and a display page for the first data object can be constructed and displayed according to the data corresponding to the preset data fields contained in the first-level display object corresponding to each first data object. The constructed display page only contains the data of the preset data fields.

[0126] In one optional implementation, when displaying a first data object based on a first information stream, a target slot identifier can be determined based on a pre-acquired mapping relationship between data fields and slot identifiers, corresponding to the preset data field in the first-level display object of the first data object; wherein, the slot identifier is used to identify a slot in a preset data object template; then, the data corresponding to the first data field in the first-level display object is added to the slot in the data object template corresponding to the target slot identifier, to obtain an intermediate object corresponding to the first data object; and then, the first data object is displayed based on the intermediate object.

[0127] The data object template can be pre-set. The data object template includes multiple slots, each slot corresponding to a unique slot identifier. The initial data in these slots are not real feed data. For feed data that is pulled in a hierarchical manner, real feed data blocks need to be filled into the corresponding slots multiple times.

[0128] To ensure that data is accurately populated into the slots of the data object template, each slot can be named so that it corresponds to the data field name of the actual Feed data.

[0129] In one alternative implementation, this disclosure provides a method for quickly mapping slots to actual feed data fields, as shown in Table 4, which illustrates example code implemented in Java according to this disclosure.

[0130] Table 4

[0131]

[0132] Each slot is assigned a name using the "@Slot" annotation in Table 4 above. This name corresponds to a data field name in the actual Feed class. During compilation, an annotation generator produces a mapping table, as shown in Table 5, which records the mapping relationship between data fields and slot identifiers.

[0133] Table 5

[0134] title slot1 text slot2 thumbnail slot3 comments slot4 numOfThumbUp slot5 followers slot6 numOfForwards slot7

[0135] In this embodiment of the disclosure, after receiving the first information stream of the primary display object protecting the first data object, the target slot identifier corresponding to the preset data fields contained in the primary display object can be determined by querying the mapping relationship shown in Table 5. Then, the data corresponding to the preset data fields in the primary display object is filled into the slot in the data object template corresponding to the target slot identifier, thus obtaining the intermediate object corresponding to the first data object. The first data object is then displayed based on the intermediate object. Therefore, by setting the mapping relationship between data fields and slot identifiers, and filling the data of each preset data field in the received primary display object into the data object template based on this mapping relationship, the accuracy of data filling can be improved, ensuring the interface display effect.

[0136] Since the first information stream is composed of a first-level display object based on the first data object, and the first-level display object is obtained based on preset data fields and corresponding data, the first information stream contains information from the preset data fields, not all the information of the first data object. Therefore, when it is necessary to display all the information of the first data object, the client also needs to retrieve the remaining information of the first data object from the server to ensure the integrity of the content of the first data object displayed by the client. Thus, in an optional implementation, after displaying the first data object, the method further includes:

[0137] When it is determined that the display duration of the display interface corresponding to the first data object exceeds a preset time threshold, a data request carrying the data object identifier and display level identifier of the first data object is sent to the server.

[0138] Receive the object to be displayed returned by the server, which corresponds to the display level identifier; wherein, the object to be displayed includes the data in the first data object corresponding to the display level identifier;

[0139] Based on the object to be displayed, update the display interface corresponding to the first data object.

[0140] The preset time threshold can be set in advance, for example, to 2 seconds. This preset time threshold is primarily designed to accommodate scenarios where users quickly scroll through the feed list. If a user scrolls away quickly, it indicates they are not interested in the feed's content, and further loading of other data is unnecessary. If the user lingers for a while, it suggests they are interested in the current feed, and further loading of other data is then possible.

[0141] Typically, when a user browses the first data object displayed on the client interface, the user can browse different first data objects by sliding a list. If the user is interested in the content of a certain first data object and browses the information of the first data object carefully, the display interface corresponding to the first data object will be displayed on the client for a longer period of time. The client can count the continuous display time of the first data object on the client. If the display time exceeds a preset time threshold, the client sends a data request to the server carrying the data object identifier and display level identifier of the first data object.

[0142] The data object identifier carried in the data request is the identifier of the first data object, and the display level identifier carried in the data request can be used to retrieve the remaining data of the first data object from the server.

[0143] It should be noted that, in this embodiment of the disclosure, the display level identifier corresponding to each first data object can be pre-fed back to the client by the server for storage. For example, when returning the first information stream, the server can also return the display level identifier corresponding to each first data object in the first information stream to the client, so that when the client needs to retrieve all the data of a certain first data object, it can retrieve the remaining data of the first data object in stages according to the display level identifier.

[0144] In one optional implementation, when it is determined that the display duration of the interface corresponding to the first data object exceeds a preset time threshold, the client can further check whether there are empty slots in the intermediate state object corresponding to the first data object. If it is determined that there are empty slots in the intermediate state object corresponding to the first data object, a data request carrying the data object identifier and display level identifier of the first data object is sent to the server. Therefore, by checking whether there are empty slots in the intermediate state object corresponding to the first data object only after determining that the display duration of the interface corresponding to the first data object exceeds the preset time threshold, and only sending a data request to the server when it is determined that there are empty slots, unnecessary data interaction between the client and the server can be avoided, saving bandwidth resources.

[0145] In this embodiment, when the server receives a data request from the client, it retrieves the data object corresponding to the data object identifier based on the data object identifier and display level identifier carried in the data request. It then extracts the data corresponding to the display level identifier from the data corresponding to the data object, constructs the object to be displayed based on the data corresponding to the display level identifier, and returns the object to be displayed to the client. The client receives the object to be displayed returned by the server and updates the display interface corresponding to the first data object based on the object to be displayed. This achieves tiered retrieval of feed data, enabling users to obtain feed data at a lower bandwidth cost, thus reducing data transmission bandwidth.

[0146] In one optional implementation, when updating the display interface corresponding to the first data object based on the object to be displayed, the card slot identifier corresponding to the data field to which the data in the object to be displayed belongs can be determined based on the mapping relationship between the data field and the card slot identifier. The data in the object to be displayed is then added to the card slot corresponding to the card slot identifier in the intermediate state object to obtain the updated intermediate state object. The updated intermediate state object is then used to update the display interface corresponding to the first data object.

[0147] In this embodiment, after receiving the object to be displayed returned by the server, the client can query the mapping relationship between data fields and slot identifiers to determine the slot identifier corresponding to the data field to which the data contained in the object to be displayed belongs. Then, from the intermediate state object corresponding to the first data object, the client finds the slot that matches the slot identifier corresponding to the data field to which the data contained in the object to be displayed belongs. The data from the object to be displayed is then filled into the corresponding slot of the intermediate state object to obtain an updated intermediate state object. Finally, the updated intermediate state object is used to update the display interface corresponding to the first data object. This achieves a hierarchical filling and display of the first data object, allowing users to obtain more feed data with relatively low bandwidth costs.

[0148] In the data processing method for information flow provided in this embodiment, a user's information flow request is first sent to the server. This request requests multiple data objects from the server. A first information flow is then received in response to the request. This first information flow includes a primary display object for the first data object. The primary display object includes data from the first data object corresponding to preset data fields. Based on the primary display object, the first data object is then displayed. This embodiment obtains data from preset data fields to construct the primary display object. The client then displays the primary display object, prioritizing the display of preset fields within the data object. This improves the response speed of the client interface and enhances the user experience.

[0149] Figure 4 This is a schematic diagram illustrating a process by which a client retrieves individual feed data from a server in a tiered manner, according to an embodiment of this disclosure. Figure 5 This is a schematic diagram illustrating the process by which the client, as provided in this embodiment of the disclosure, gradually fills the data object template with the pulled feed data.

[0150] like Figure 4As shown, the client first retrieves the Feed Summary from the server. The Feed Summary contains preset data fields, corresponding to the first-level display object in the above embodiment. This step usually involves a small amount of feed data and can be completed quickly. However, it is important to note that the Feed Summary needs to contain sufficient important information to ensure the effectiveness of the information displayed on the client side. Next, the data from the Feed Summary is populated into a preset data object template (denoted as FeedTemplate) to generate an intermediate object (denoted as Feed Staging). The FeedTemplate itself is a template that does not contain actual feed data; it is pre-populated with some "default data." Taking an image-text feed as an example, information such as followers, likes, comments, related feeds, reports / complaints, and recommendation lists are not information that needs to be presented to the user immediately. Default values ​​that do not affect the user experience can be populated first. The "default data" can also be presented in a blurred manner on the interface. Finally, the generated Feed Staging is used to refresh the interface, displaying the content that the user has followed in the feed data. Next, the client determines whether the display duration of the Feed display interface (i.e., the user's dwell time) exceeds a preset time threshold. If the display duration exceeds the preset time threshold, it further determines whether there are empty slots in the Feed Staging (i.e., whether they are fully filled). If there are empty slots in the Feed Staging, it continues to fetch Feed Detail, which contains the remaining data blocks of the Feed data, corresponding to the objects to be displayed in the above embodiment. Then, the data in the Feed Detail is filled into the Feed Staging, generating a new Feed Staging. The newly generated Feed Staging is used to refresh the interface and update the Feed data display interface. When fetching Feed Detail, FeedDetail1 can be fetched first, followed by Feed Detail2, and so on, according to the display level identifier, until the Feed Staging is fully filled.

[0151] Suppose a feed is divided into three data blocks: Feed Summary, Feed Detail1, and Feed Detail2. Figure 2 As shown, the process of populating the Feed data on the client side is as follows: Figure 5 As shown. From Figure 5As can be seen, the FeedTemplate contains multiple slots, each with a unique slot identifier. During data population, the retrieved data is filled into the corresponding slot based on the mapping relationship between data fields and slot identifiers. Specifically, the client first fills the corresponding slot in the Feed Template with the data retrieved from the Feed Summary, generating the Feed Staging. Then, based on the display level identifier Feed Detail1, it continues to retrieve Feed Detail1 from the server and fills the corresponding slot in the Feed Staging generated in the previous population with the data from FeedDetail1. Then, based on the display level identifier Feed Detail2, it continues to retrieve Feed Detail2 from the server and fills the corresponding slot in the Feed Staging generated in the previous population with the data from Feed Detail2, obtaining the complete Feed data.

[0152] Based on the above method embodiments, this disclosure also provides a data processing system for information streams, with reference to... Figure 6 This is a schematic diagram of the structure of an information flow data processing system provided in an embodiment of the present disclosure. The system includes a server 601 and a client 602, and the server 601 and the client 602 are connected in communication.

[0153] The server 601 is configured to receive a user's information flow request, obtain multiple data objects based on the information flow request, determine whether the first data object meets preset data filtering conditions based on the data in the first data object corresponding to preset data fields, and extract the data corresponding to the preset data fields from the first data object when it is determined that the first data object meets the preset data filtering conditions to form a first-level display object of the first data object, and construct a first information flow for the information flow request based on the first-level display object of the first data object, and return the first information flow for the information flow request.

[0154] The client 602 is used to receive the first information stream and display the first data object based on the first-level display object of the first data object in the first information stream.

[0155] In one optional implementation, the server 601 is further configured to identify data fields whose user attention level is greater than a preset threshold as the preset data fields.

[0156] In one optional implementation, the server 601 is further configured to obtain data in the first data object corresponding to a preset data field, and determine the priority of the first data object based on the correspondence between the preset data field and the weight, and determine whether the first data object meets the preset data filtering conditions based on the priority of the first data object.

[0157] In one optional implementation, the server 601 is further configured to, if it is determined that the first data object meets the data filtering conditions, extract data corresponding to a preset data field from the first data object, and store the mapping relationship between the preset data field and the data in a preset first-level data structure to obtain a first-level display object of the first data object.

[0158] In an optional implementation, the server 601 is further configured to, upon receiving a data request carrying a data object identifier and a display level identifier, obtain the data object corresponding to the data object identifier, extract the data corresponding to the display level identifier from the data object to form the object to be displayed of the data object, and return the object to be displayed in response to the data request; wherein the object to be displayed corresponds to the display level identifier;

[0159] The client 602 is further configured to, when determining that the display duration of the display interface corresponding to the first data object exceeds a preset time threshold, send a data request carrying the data object identifier and display level identifier of the first data object to the server, and receive the object to be displayed corresponding to the display level identifier returned by the server; wherein, the object to be displayed includes the data in the first data object corresponding to the display level identifier; and update the display interface corresponding to the first data object based on the object to be displayed.

[0160] In an optional implementation, the client 602 is further configured to, when it is determined that the display duration of the display interface corresponding to the first data object exceeds a preset time threshold, check whether there is an empty card slot in the intermediate state object corresponding to the first data object, and when it is determined that there is an empty card slot in the intermediate state object corresponding to the first data object, send a data request carrying the data object identifier and display level identifier of the first data object to the server.

[0161] In an optional implementation, the server 601 is further configured to determine whether the second data object belongs to a data object that does not need to be displayed based on the data in the second data object corresponding to the preset data field, and when it is determined that the second data object belongs to the data object that does not need to be displayed, clear the data in the second data object to obtain the cleared data object corresponding to the second data object, and construct a first information flow for the information flow request based on the cleared data object corresponding to the second data object and the first-level display object of the first data object.

[0162] In an optional implementation, the client 602 is further configured to determine, based on a pre-acquired mapping relationship between data fields and slot identifiers, a slot identifier corresponding to the preset data field in the primary display object of the first data object, as a target slot identifier; wherein, the slot identifier is used to identify a slot in a preset data object template; add the data corresponding to the first data field in the primary display object to the slot in the data object template corresponding to the target slot identifier to obtain an intermediate object corresponding to the first data object; and display the first data object based on the intermediate object.

[0163] In one optional implementation, the client 602 is further configured to determine the card slot identifier corresponding to the data field to which the data in the object to be displayed belongs based on the mapping relationship between the data field and the card slot identifier, add the data in the object to be displayed to the card slot corresponding to the card slot identifier in the intermediate object to obtain the updated intermediate object, and use the updated intermediate object to update the display interface corresponding to the first data object.

[0164] The data processing system for information streams provided in this disclosure can execute any data processing method for information streams provided in this disclosure, and has the corresponding functional modules and beneficial effects for executing the method. Content not described in detail in the system embodiments of this disclosure can be referred to the description in any method embodiment of this disclosure.

[0165] In the data processing system for information flow provided in this embodiment, when the server receives an information flow request, it obtains multiple data objects based on the request. Based on the data in the first data object corresponding to preset data fields, it determines whether the first data object meets preset data filtering conditions. If the first data object meets the filtering conditions, it extracts the data corresponding to the preset data fields from the first data object to form a primary display object. Then, based on the primary display object, it constructs a first information flow for the information flow request and returns the first information flow, allowing the client to display the first data object based on the primary display object in the first information flow. This embodiment, by obtaining data from preset data fields to construct a primary display object when the data object meets the filtering conditions, and then displaying the primary display object on the client, prioritizes the display of content from preset fields in the data object, improving the response speed of the client interface and thus enhancing the user experience.

[0166] Based on the above method embodiments, this disclosure also provides a data processing apparatus for information streams, applied to a server (server side), see reference. Figure 7 This is a schematic diagram of the structure of an information stream data processing device 70 provided in an embodiment of the present disclosure. The information stream data processing device 70 includes:

[0167] The acquisition module 701 is used to receive the user's information flow request and acquire multiple data objects based on the information flow request;

[0168] The judgment module 702 is used to determine whether the first data object meets the preset data filtering conditions based on the data in the first data object that corresponds to the preset data field.

[0169] The data extraction module 703 is used to extract data corresponding to a preset data field from the first data object if it is determined that the first data object meets the data filtering conditions, and to form a first-level display object of the first data object.

[0170] Construction module 704 is used to construct a first information flow for the information flow request based on the first-level display object of the first data object;

[0171] Feedback module 705 is used to return the first information stream in response to the information stream request.

[0172] In one optional implementation, the determination module 702 includes:

[0173] The priority determination unit is used to obtain the data in the first data object that corresponds to the preset data field, and determine the priority of the first data object based on the correspondence between the preset data field and the weight.

[0174] The judgment unit is used to determine whether the first data object meets the preset data filtering conditions based on the priority corresponding to the first data object.

[0175] In one optional implementation, the data extraction module 703 includes:

[0176] A data extraction unit is used to extract data corresponding to a preset data field from the first data object if it is determined that the first data object meets the data filtering conditions.

[0177] The storage unit is used to store the mapping relationship between the preset data fields and the data in a preset first-level data structure to obtain the first-level display object of the first data object.

[0178] In an optional embodiment, the data processing device 70 for the information stream further includes:

[0179] The first processing module is configured to, upon receiving a data request carrying a data object identifier and a display level identifier, obtain the data object corresponding to the data object identifier, and extract the data corresponding to the display level identifier from the data object to form the data object to be displayed; wherein, the data object to be displayed corresponds to the display level identifier;

[0180] The feedback module 705 is also used for:

[0181] In response to the data request, the object to be displayed is returned.

[0182] In an optional embodiment, the data processing device 70 for the information stream further includes:

[0183] The second processing module is used to determine whether the second data object belongs to the data object that does not need to be displayed based on the data in the second data object that corresponds to the preset data field; if it is determined that the second data object belongs to the data object that does not need to be displayed, then the data in the second data object is cleared to obtain the cleared data object corresponding to the second data object.

[0184] Accordingly, the construction module 704 is further configured to:

[0185] Based on the cleared data object corresponding to the second data object and the first-level display object of the first data object, a first information flow is constructed for the information flow request.

[0186] The data processing apparatus for information streams provided in this disclosure can execute any data processing method for information streams applied to the server side provided in this disclosure, and has the corresponding functional modules and beneficial effects for executing the method. Content not described in detail in the apparatus embodiments of this disclosure can be referred to the description in any method embodiment of this disclosure.

[0187] In the data processing apparatus for information flow provided in this embodiment, upon receiving an information flow request, multiple data objects are first obtained based on the request. Based on the data in the first data object corresponding to preset data fields, it is determined whether the first data object meets preset data filtering conditions. If the first data object meets data grading rules, data corresponding to the preset data fields is extracted from the first data object to form a primary display object. Then, a first information flow is constructed based on the primary display object for the information flow request, and the first information flow is returned so that the client can display the first data object based on the primary display object of the first data object in the first information flow. This embodiment, by obtaining data from preset data fields to construct a primary display object when the data object meets the data filtering conditions, and then displaying the primary display object to the client, prioritizes the display of content from preset fields in the data object, improving the response speed of the client interface and thus enhancing the user experience.

[0188] Based on the above method embodiments, this disclosure also provides a data processing apparatus for information streams, applied to a client, see reference. Figure 8 This is a schematic diagram of another information stream data processing device provided in an embodiment of this disclosure. The information stream data processing device 80 includes:

[0189] The sending module 801 is used to send a user's information flow request to the server; wherein the information flow request is used to request multiple data objects from the server;

[0190] The receiving module 802 is used to receive a first information stream returned in response to the information stream request; wherein, the first information stream includes a first-level display object of a first data object, and the first-level display object includes data in the first data object corresponding to a preset data field;

[0191] The display module 803 is used to display the first data object based on the first-level display object of the first data object.

[0192] In one optional implementation, the display module 803 includes:

[0193] The target identifier determination unit is used to determine the card slot identifier corresponding to the preset data field in the first-level display object of the first data object based on the pre-acquired mapping relationship between the data field and the card slot identifier, and use it as the target card slot identifier; wherein, the card slot identifier is used to identify the card slot in the preset data object template;

[0194] The addition unit is used to add the data corresponding to the first data field in the first-level display object to the slot corresponding to the target slot identifier in the data object template, so as to obtain the intermediate state object corresponding to the first data object;

[0195] The display unit is used to display the first data object based on the intermediate state object.

[0196] In an optional implementation, the sending module 801 is further configured to:

[0197] When it is determined that the display duration of the display interface corresponding to the first data object exceeds a preset time threshold, a data request carrying the data object identifier and display level identifier of the first data object is sent to the server.

[0198] The receiving module 802 is further configured to:

[0199] Receive the object to be displayed returned by the server, which corresponds to the display level identifier; wherein, the object to be displayed includes the data in the first data object corresponding to the display level identifier;

[0200] The display module 803 is also used for:

[0201] Based on the object to be displayed, update the display interface corresponding to the first data object.

[0202] In an optional implementation, the display module 803 is further configured to:

[0203] Based on the mapping relationship between the data fields and the card slot identifiers, the card slot identifier corresponding to the data field to which the data in the object to be displayed belongs is determined;

[0204] Add the data from the object to be displayed to the card slot corresponding to the card slot identifier in the intermediate object to obtain the updated intermediate object;

[0205] The updated intermediate state object is used to update the display interface corresponding to the first data object.

[0206] In an optional embodiment, the data processing device 80 for the information stream further includes:

[0207] The inspection module is used to check whether there is an empty slot in the intermediate state object corresponding to the first data object when it is determined that the display duration of the display interface corresponding to the first data object exceeds a preset time threshold.

[0208] Accordingly, the sending module 801 is also used for:

[0209] If it is determined that there is an empty card slot in the intermediate state object corresponding to the first data object, a data request carrying the data object identifier and display level identifier of the first data object is sent to the server.

[0210] The data processing apparatus for information streams provided in this disclosure can execute any data processing method for information streams applied to a client provided in this disclosure, and has the corresponding functional modules and beneficial effects for executing the method. Content not described in detail in the apparatus embodiments of this disclosure can be referred to the description in any method embodiment of this disclosure.

[0211] In the data processing apparatus for information flow provided in this embodiment, a user's information flow request is first sent to the server. This information flow request requests multiple data objects from the server. A first information flow is received in response to the information flow request. The first information flow includes a primary display object of the first data object. The primary display object includes data from the first data object corresponding to preset data fields. Then, based on the primary display object of the first data object, the first data object is displayed. This embodiment obtains data from preset data fields to construct the primary display object. The client displays the primary display object, thus prioritizing the display of preset fields in the data object, improving the response speed of the client interface, and thereby enhancing the user experience.

[0212] In addition to the methods and apparatus described above, this disclosure also provides a computer-readable storage medium storing instructions that, when executed on a terminal device, cause the terminal device to implement the data processing method for information streams described in this disclosure.

[0213] This disclosure also provides a computer program product, which includes a computer program / instruction. When the computer program / instruction is executed by a processor, it implements the data processing method for information flow described in this disclosure.

[0214] In addition, this disclosure also provides a data processing device for information streams, which can be a client or a server, see [link to relevant documentation]. Figure 9 As shown, the data processing device for information flow may include:

[0215] The data processing device includes a processor 901, a memory 902, an input device 903, and an output device 904. The number of processors 901 in the data processing device can be one or more. Figure 9 Taking a processor as an example. In some embodiments of this disclosure, the processor 901, memory 902, input device 903, and output device 904 can be connected via a bus or other means, wherein, Figure 9 Taking the example of a connection between China and Israel via a bus.

[0216] The memory 902 can be used to store software programs and modules. The processor 901 executes various functional applications and data processing of the data processing device by running the software programs and modules stored in the memory 902. The memory 902 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function, etc. In addition, the memory 902 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0217] Specifically, in this embodiment, the processor 901 loads the executable files corresponding to the processes of one or more applications into the memory 902 according to the following instructions, and the processor 901 runs the applications stored in the memory 902, thereby realizing the various functions of the above-mentioned information flow data processing device and realizing the information flow data processing method described in the foregoing embodiments.

[0218] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0219] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A data processing method for information streams, characterized in that, The method includes: Receive information stream requests from users and obtain multiple data objects based on the information stream requests; Based on the data in the first data object corresponding to the preset data field, determine whether the first data object meets the preset data filtering conditions. The feed data retrieval strategy corresponding to the data filtering conditions is partial retrieval, which is used to indicate that the data objects that meet the data filtering conditions are partially retrieved. If it is determined that the first data object meets the data filtering conditions, then the data corresponding to the preset data field is extracted from the first data object to form the first-level display object of the first data object; Based on the first-level display object of the first data object, a first information stream is constructed for the information stream request; In response to the information stream request, the first information stream is returned.

2. The method according to claim 1, characterized in that, The step of determining whether the first data object meets the preset data filtering conditions based on the data in the first data object corresponding to the preset data fields includes: Obtain the data in the first data object that corresponds to the preset data field, and determine the priority of the first data object based on the correspondence between the preset data field and the weight; Based on the priority corresponding to the first data object, determine whether the first data object meets the preset data filtering conditions.

3. The method according to claim 1, characterized in that, If it is determined that the first data object meets the data filtering conditions, then extracting the data corresponding to the preset data field from the first data object to form a first-level display object of the first data object includes: If it is determined that the first data object meets the data filtering conditions, then extract the data corresponding to the preset data field from the first data object; The mapping relationship between the preset data fields and the data is stored in a preset first-level data structure to obtain the first-level display object of the first data object.

4. The method according to any one of claims 1-3, characterized in that, After returning the first information stream in response to the information stream request, the method further includes: Upon receiving a data request carrying a data object identifier and a display level identifier, the system obtains the data object corresponding to the data object identifier and extracts the data corresponding to the display level identifier from the data object to form the object to be displayed; wherein, the object to be displayed corresponds to the display level identifier. In response to the data request, the object to be displayed is returned.

5. The method according to claim 1, characterized in that, Before constructing the first information stream for the information stream request, the first-level display object based on the first data object further includes: Based on the data in the second data object that corresponds to the preset data field, determine whether the second data object belongs to a data object that does not need to be displayed. If it is determined that the second data object belongs to the data object that does not need to be displayed, then the data in the second data object is cleared to obtain the cleared data object corresponding to the second data object; Accordingly, the first-level display object based on the first data object constructs a first information stream for the information stream request, including: Based on the cleared data object corresponding to the second data object and the first-level display object of the first data object, a first information flow is constructed for the information flow request.

6. The method according to claim 1, characterized in that, Before determining whether the first data object meets the preset data filtering conditions based on the data corresponding to the preset data fields in the first data object, the method further includes: The data fields whose user attention level is greater than a preset threshold are identified as the preset data fields.

7. A data processing method for information streams, characterized in that, The method includes: Send a user's information stream request to the server; wherein, the information stream request is used to request multiple data objects from the server; Receive a first information stream returned in response to the information stream request; wherein the first information stream includes a first-level display object of a first data object, the first-level display object includes data in the first data object corresponding to a preset data field, the data corresponding to the preset data field is extracted from the first data object when the first data object meets a preset data filtering condition, and the feed data retrieval strategy corresponding to the data filtering condition is partial retrieval, which is used to indicate that the data object that meets the data filtering condition is partially retrieved; The first data object is displayed based on the first-level display object of the first data object.

8. The method according to claim 7, characterized in that, The first-level display object based on the first data object displays the first data object, including: Based on the pre-acquired mapping relationship between data fields and card slot identifiers, the card slot identifier corresponding to the preset data field in the first-level display object of the first data object is determined as the target card slot identifier; wherein, the card slot identifier is used to identify the card slot in the preset data object template; Add the data corresponding to the preset data field in the first-level display object to the slot corresponding to the target slot identifier in the data object template to obtain the intermediate state object corresponding to the first data object; Based on the intermediate state object, the first data object is displayed.

9. The method according to claim 8, characterized in that, After displaying the first data object based on the intermediate state object, the process further includes: When it is determined that the display duration of the display interface corresponding to the first data object exceeds a preset time threshold, a data request carrying the data object identifier and display level identifier of the first data object is sent to the server. Receive the object to be displayed returned by the server, which corresponds to the display level identifier; wherein, the object to be displayed includes the data in the first data object corresponding to the display level identifier; Based on the object to be displayed, update the display interface corresponding to the first data object.

10. The method according to claim 9, characterized in that, The step of updating the display interface corresponding to the first data object based on the object to be displayed includes: Based on the mapping relationship between the data fields and the card slot identifiers, the card slot identifier corresponding to the data field to which the data in the object to be displayed belongs is determined; Add the data from the object to be displayed to the card slot corresponding to the card slot identifier in the intermediate object to obtain the updated intermediate object; The updated intermediate state object is used to update the display interface corresponding to the first data object.

11. The method according to claim 9 or 10, characterized in that, Before sending the data request carrying the data object identifier and display level identifier of the first data object to the server, the method further includes: When it is determined that the display duration of the display interface corresponding to the first data object exceeds the preset time threshold, check whether there is an empty card slot in the intermediate state object corresponding to the first data object. Accordingly, when it is determined that the display duration of the display interface corresponding to the first data object exceeds a preset time threshold, sending a data request carrying the data object identifier and display level identifier of the first data object to the server includes: If it is determined that there is an empty card slot in the intermediate state object corresponding to the first data object, a data request carrying the data object identifier and display level identifier of the first data object is sent to the server.

12. A data processing system for information flow, characterized in that, The system includes a server and a client; The server is configured to receive a user's information flow request, obtain multiple data objects based on the information flow request, determine whether the first data object meets a preset data filtering condition based on the data in the first data object corresponding to a preset data field, wherein the feed data retrieval strategy corresponding to the data filtering condition is partial retrieval, which is used to instruct that the data objects that meet the data filtering condition be partially retrieved, and when it is determined that the first data object meets the data filtering condition, extract the data corresponding to the preset data field from the first data object to form a first-level display object of the first data object, and construct a first information flow for the information flow request based on the first-level display object of the first data object, and return the first information flow for the information flow request; The client is configured to receive the first information stream and display the first data object based on the first-level display object of the first data object in the first information stream.

13. A data processing device for information flow, characterized in that, The device includes: The acquisition module is used to receive information flow requests from users and acquire multiple data objects based on the information flow requests; The judgment module is used to determine whether the first data object meets the preset data filtering conditions based on the data in the first data object that corresponds to the preset data field. The feed data retrieval strategy corresponding to the data filtering conditions is partial retrieval, which is used to indicate that the data objects that meet the data filtering conditions are partially retrieved. The data extraction module is used to extract the data corresponding to the preset data field from the first data object if it is determined that the first data object meets the data filtering conditions, and to form a first-level display object of the first data object. The construction module is used to construct a first information stream for the information stream request based on the first-level display object of the first data object; The feedback module is used to return the first information stream in response to the information stream request.

14. A data processing device for information flow, characterized in that, The device includes: The sending module is used to send a user's information flow request to the server; wherein the information flow request is used to request multiple data objects from the server; A receiving module is configured to receive a first information stream returned in response to the information stream request; wherein the first information stream includes a first-level display object of a first data object, the first-level display object includes data in the first data object corresponding to a preset data field, the data corresponding to the preset data field is extracted from the first data object when the first data object meets a preset data filtering condition, and the feed data retrieval strategy corresponding to the data filtering condition is partial retrieval, which is used to indicate that the data object that meets the data filtering condition is partially retrieved; The display module is used to display the first data object based on the first-level display object of the first data object.

15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a terminal device, cause the terminal device to perform the method as described in any one of claims 1-11.

16. A device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method as claimed in any one of claims 1-11.

17. A computer program product, characterized in that, The computer program product includes a computer program / instruction that, when executed by a processor, implements the method as described in any one of claims 1-11.

Citation Information

Patent Citations

  • Information flow page display method, device, terminal device and system

    CN110825997A

  • Information flow processing method and device and computer readable storage medium

    CN112199090A

  • Method and device for processing content pushing

    CN113486213A