CN112417276A - Paging data acquisition method and device, electronic equipment and computer readable storage medium - Google Patents

Paging data acquisition method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN112417276A
CN112417276A CN202011294529.0A CN202011294529A CN112417276A CN 112417276 A CN112417276 A CN 112417276A CN 202011294529 A CN202011294529 A CN 202011294529A CN 112417276 A CN112417276 A CN 112417276A
Authority
CN
China
Prior art keywords
paging
data
candidate
paging data
obtaining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011294529.0A
Other languages
Chinese (zh)
Inventor
廖建军
姚东伟
熊俊杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202011294529.0A priority Critical patent/CN112417276A/en
Publication of CN112417276A publication Critical patent/CN112417276A/en
Priority to PCT/CN2021/130261 priority patent/WO2022105682A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure discloses a method and a device for acquiring paging data, electronic equipment and a computer-readable storage medium. The paging data acquisition method comprises the following steps: obtaining paging parameters; obtaining first candidate paging data according to the paging parameters; acquiring second candidate paging data according to the paging parameters; and obtaining target paging data from the first candidate paging data and the second candidate paging data according to the paging parameters. According to the method, the technical problem that personalized page data are difficult to provide is solved by obtaining the candidate page data and selecting the candidate page data.

Description

Paging data acquisition method and device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of paged data acquisition, and in particular, to a paged data acquisition method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the development of network technology, internet users have come to the era of mobile terminals, higher bandwidth enables more and more information to be displayed by mobile terminal intelligent devices at the same time, numerous data are difficult to be displayed in the same page at the same time, and in order to take user experience and product effects into consideration, client application products are more prone to selecting a paging display method to display content. Meanwhile, in order to meet the personalized requirements of users, the scenes of client products tend to be complex, and it is common that specific content is filtered or added in the presented element set according to the characteristics and the commercialization requirements of the users.
In some scenarios, a client performs paging display to a user, a server is required to provide paging data to the client, and paging data is required to be enabled to provide some personalized data, but since page data provided by the server is in a long list form and the sequence is fixed, a difficulty is brought to the long list operation while providing the paging data to provide some personalized paging data.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In order to solve the above technical problem, the embodiments of the present disclosure propose the following technical solutions.
In a first aspect, an embodiment of the present disclosure provides a method for obtaining paged data, including:
obtaining paging parameters;
obtaining first candidate paging data according to the paging parameters;
acquiring second candidate paging data according to the paging parameters;
and obtaining target paging data from the first candidate paging data and the second candidate paging data according to the paging parameters.
In a second aspect, an embodiment of the present disclosure provides a paging data obtaining apparatus, including:
the parameter acquisition module is used for acquiring paging parameters;
a first candidate data obtaining module, configured to obtain first candidate paging data according to the paging parameter;
a second candidate data obtaining module, configured to obtain second candidate paging data according to the paging parameter;
and the paging data acquisition module is used for acquiring target paging data from the first candidate paging data and the second candidate paging data according to the paging parameters.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the preceding first aspects.
In a fourth aspect, the present disclosure provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions for causing a computer to perform the method of any one of the foregoing first aspects.
The embodiment of the disclosure discloses a method and a device for acquiring paging data, electronic equipment and a computer-readable storage medium. The paging data acquisition method comprises the following steps: obtaining paging parameters; obtaining first candidate paging data according to the paging parameters; acquiring second candidate paging data according to the paging parameters; and obtaining target paging data from the first candidate paging data and the second candidate paging data according to the paging parameters. According to the method, the technical problem that personalized page data are difficult to provide is solved by obtaining the candidate page data and selecting the candidate page data.
The foregoing is a summary of the present disclosure, and for the purposes of promoting a clear understanding of the technical means of the present disclosure, the present disclosure may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a schematic flowchart of a paging data obtaining method according to an embodiment of the disclosure;
FIG. 2 is a schematic flow chart illustrating a method for obtaining paging data according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart diagram illustrating a method for obtaining paging data according to an embodiment of the present disclosure;
FIG. 4 is a schematic flow chart diagram illustrating a method for obtaining paging data according to an embodiment of the present disclosure;
5 a-5 g are schematic diagrams illustrating exemplary processes for executing the paging data obtaining method according to the embodiment of the disclosure;
FIG. 6 is a schematic flow chart diagram illustrating a method for obtaining paging data according to an embodiment of the present disclosure;
FIG. 7 is a schematic flow chart diagram illustrating a method for obtaining paging data according to an embodiment of the present disclosure;
FIG. 8 is a schematic flow chart diagram illustrating a method for obtaining paging data according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an embodiment of a paging data obtaining apparatus according to the present disclosure;
fig. 10 is a schematic structural diagram of an electronic device provided according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Fig. 1 is a flowchart of an embodiment of a method for obtaining paging data according to an embodiment of the present disclosure, where the method for obtaining paging data according to this embodiment may be executed by a paging data obtaining apparatus, and the paging data obtaining apparatus may be implemented as software or as a combination of software and hardware, and the paging data obtaining apparatus may be integrated in a certain device in a paging data obtaining system, such as a paging data obtaining server or a paging data obtaining terminal device. As shown in fig. 1, the method comprises the steps of:
step S101, obtaining paging parameters;
optionally, the paging data obtaining method is executed by a server, and the paging parameter is sent to the server by a client device. Illustratively, a paging surface of a long page is displayed on a client device, and when a user slides the page to turn the page, the client sends a paging request to the server to request to obtain data of a subsequent page.
As shown in fig. 2, optionally, the step S101 includes:
step S201, receiving a paging data request;
step S202, analyzing the paging data request to obtain the paging parameter.
Optionally, the paging data request includes a paging parameter, where the paging parameter includes: one or more of a flag bit, a slice size, filtering information, and an offset; wherein the flag bit represents a paging data start position in a page data list; the slice size represents the amount of target paged data; the filtering information represents information required to filter the paginated data; the offset represents the amount of target page data that has been acquired.
Illustratively, the data structure including the parameters in the paging data request is as follows:
Figure BDA0002784961460000051
wherein the starting _ position represents a flag bit, which indicates that the paging data starts from the 5 th bit of the page data list of the server; count represents the size of the fragment, that is, the number of target paging data required by the client at each time is 4; the Filter represents filtering information, which may include preferences of a user using the client, performance parameters of the client device, and the like, so that the server generates corresponding filtering conditions according to the filtering information, and filters out paging data that the user does not like or filters out paging data that may cause the client device to crash, and it can be understood that the filtering information may be any information and is not described herein again; cursor represents an offset, i.e., the number of paging data that the client has shown or the starting position of the ordered list in the client, which starts from bit 5 in the above example, and in combination with the size of the tile, the client will show paging data of bit [5,6,7,8] of the ordered list.
It can be understood that the above paging parameters are only examples, and in actual use, the paging parameters may be increased or decreased as needed, which is not described herein again.
Step S102, obtaining first candidate paging data according to the paging parameters;
in this step, a first candidate paging parameter is obtained according to the paging parameter. As shown in fig. 3, optionally, the paging parameter includes a flag bit and filtering information, and the step S102 further includes:
step S301, acquiring a page data list;
step S302, obtaining the paging data with the fragment size from the page data list according to the flag bit and the filtering information as the first candidate paging data.
The page data list is a list for storing all data elements in a page, each data element represents a paging data, and the paging data list is exemplarily a data stored in an array form and fixed in order, where the data elements have data structure similarity. For a general page display mode, the server returns the page data list to the client, and the client device analyzes data elements in the list and generates a display page. In the technical solution of the present disclosure, data in the page data list needs to be processed to obtain target paging data.
In step S302, a starting position of paging data is located in the page data list by the flag bit, and the paging data is filtered by filtering information from the starting position of the paging data one by one until the number of the obtained paging data is the same as the size of the slice, where the obtained paging data is the first candidate paging data.
Optionally, as shown in fig. 4, the step S302 includes:
step S401, generating a filtering condition according to the filtering information;
step S402, determining the starting position of the paging data in the page data list according to the zone bit;
step S403, obtaining the fragmented small paging data from the paging data start position in the page data list as the first candidate paging data according to the filtering condition.
In step S401, the server generates filtering conditions according to the filtering information, where the filtering information is a picture that the user does not like ball sports, a video with a frame rate higher than 60 cannot be played by the client device of the user, and the like, and the server synthesizes the filtering information to generate the filtering conditions to filter the obtained paginated data.
In step S402, a starting position of the paging data in the page data list is determined according to the flag bit. As shown in fig. 5a, if the flag bit is 5, the paging data can be located at the paging data start position of the page data list to be 5 by the flag bit.
In step S403, according to the filtering condition, the paging data in the page list is filtered one by one from the paging data indicated by the paging data start position, the paging data meeting the filtering condition is excluded, and the paging data not meeting the filtering condition is retained until the number of the retained paging data is equal to the size of the segment. Optionally, in this step, a strong insertion condition may be further added, where the strong insertion condition is generated through strong insertion information in the page parameter or generated independently of the page parameter, for example, the strong insertion condition may be a flag, such as adding a strong insertion flag and a position of the strong insertion in the paged data in advance, and if the paged data is found to have the strong insertion flag when traversing the paged data, the page data is also temporarily filtered, that is, the first candidate paged data only includes: the paging data which do not satisfy the filtering condition and the paging data which do not satisfy the strong interpolation condition.
Optionally, as shown in fig. 6, the step S403 includes:
step S601, initializing a paging window;
step S602, obtaining paging data from the paging data start position in the page data list according to the filtering condition until the size of the paging window is equal to the size of the fragment;
step S603, taking the paging data in the paging window as the first candidate paging data.
In step S601, a paging window is initialized, and the size of the paging window can be dynamically adjusted to determine the range of the first candidate paging data. The size of the paging window is initialized to 0, that is, there is no first candidate paging data meeting the condition in the initial state.
Fig. 5b-5d are examples of obtaining the first candidate paging data in step S602 and step S603. As shown in fig. 5b, if the starting position of the paging data is 5, it is determined whether the 5 th-bit paging data satisfies the filtering condition from the 5 th bit of the page data list, in this example, the 5 th-bit paging data does not satisfy the filtering condition and should be reserved, and the 5 th-bit paging data is the paging data in the first candidate paging data, and the size of the paging window is accumulated by 1. And so on, as shown in fig. 5c, the page data of the 6 th bit and the page data of the 8 th bit are page data satisfying the filtering condition, which does not increase the size of the page window, and the page data of the 7 th bit is page data not satisfying the filtering condition, and is therefore reserved, then the size of the page window is 2 at this time; in this example, detection of the strongly inserted data is also added, as shown in fig. 5d, when the 9 th-bit paging data is traversed, it is detected that the 9 th-bit paging data is strongly inserted data, and if it meets the strongly inserted condition or the 9 th-bit paging data has a strongly inserted flag, etc., at this time, the strongly inserted data needs to be processed separately, and therefore, the strongly inserted data is not included in the first candidate paging data, at this time, the window size is not changed, and the backward traversal is continued; as shown in fig. 5e, the 10 th and 11 th-bit paging data do not satisfy the filtering condition and are not the strongly interpolated data, and thus are included in the first candidate paging data, at this time, the paging window size is added to 4, and the data is stopped from being continuously traversed backwards, which is the same as the fragmentation size. At this time, the paging data that does not satisfy the filtering condition and is not the forced insertion data in the paging window is the first candidate paging data.
Step S103, acquiring second candidate paging data according to the paging parameters;
optionally, the second candidate paging data is paging data that needs to be inserted between other paging data, such as the strongly-inserted data described in the above example. Illustratively, the strongly inserted data is preset paging data with strongly inserted marks.
The second candidate paging data also needs to be filtered by the filtering condition, so optionally, the step S103 includes:
step S701, generating a filtering condition according to the filtering information;
step S702, obtaining at least one paging data meeting the forced insertion condition;
step S703 is to obtain the paging data that does not satisfy the filtering condition from the at least one paging data that satisfies the interpolation condition as second candidate paging data.
The filtering condition in step S701 may be the same as the filtering condition in step S401, and is not described herein again. Alternatively, the filtering condition in step S701 may be different from that in step S401, for example, a new filtering condition may be generated according to the filtering information and other preset information.
In step S702, at least one page data meeting the strong condition is obtained, and as described above, the strong condition may be a combination of logic conditions or a flag bit, so that the page data needing strong insertion can be found from the page data. The paging data meeting the forced insertion condition may be the paging data in the page data list, or may be separately stored forced insertion data. The number and the insertion position of the strongly inserted data in each page may also be preset, for example, two strongly inserted data are in the page data of each slice, and the insertion position is before the other two page data, for example, when there are 4 page data in one page, the 1 st and 3 rd page data in the page are strongly inserted data, and the 2 nd and 4 th page data are normal page data in the page data.
In step S703, the obtained forced insertion data is filtered by using the filtering condition, and the forced insertion data that does not satisfy the filtering condition is used as the second candidate paging data. As shown in fig. 5f, in this example, the strongly interpolated data are the paging data in the page data list, and it is assumed that there are 2 strongly interpolated data in each paging, and since the 9 th paging data has been determined as strongly interpolated data in the previous step, it is directly determined whether it meets the filtering condition, in this example, the 9 th paging data does not meet the filtering condition, so the strongly interpolated data is retained, and then the next strongly interpolated data is continuously obtained, and the 14 th paging data is obtained as strongly interpolated data, but the strongly interpolated data meets the filtering condition, so the 14 th paging data is not retained; and continuously acquiring next strong insertion data, wherein the 15 th-bit paging data is obtained as the strong insertion data and does not meet the filtering condition, and the 9 th-bit paging data and the 15 th-bit paging data are obtained as the strong insertion data which need to be inserted into the current paging. That is, in this example, the 9 th bit and 15 th bit page data are the second candidate page data.
Step S104, obtaining target paging data from the first candidate paging data and the second candidate paging data according to the paging parameters.
In this step, the first candidate paging data and the second candidate paging data are merged and intercepted by the paging parameter to obtain the target paging data. The target paging data is paging data in a current paging.
As shown in fig. 8, optionally, the paging parameter includes the slice size, and the step S104 further includes:
step S801, acquiring the insertion position of the second candidate paging data;
step S802, inserting the second candidate paging data into the first candidate paging data according to the inserting position to obtain candidate paging data;
step S803, intercepting the target paging data from the candidate paging data according to the size of the fragment.
Optionally, an insertion position of the second candidate paging data is obtained according to the offset, where the offset is a paging data start position of the paging data in the client, as in the above example, the offset currsor is 5, and since the fragmentation size of one page is 4, the paging data corresponds to a position [ "5", "6", "7", "8" ] in the ordered list in the client, then as shown in fig. 5f, the first strongly-inserted data "9" is inserted into the position "5" in the ordered list, the second strongly-inserted data "14" is inserted into the position "6" in the ordered list, and the third strongly-inserted data "15" is inserted into the position "7" in the ordered list. Since the strongly interpolated data "14" satisfies the filtering condition, it is filtered out. In the page data list, since "5" is occupied by "9", the paging data of the position of "6" is filtered out as the "5" is moved to the position of "6" and meets the filtering condition. The position of "7" is occupied by the paging data of "15", and therefore the paging data of the position of "7" is moved backward to the position of "8", and the paging data of the position of "8" satisfies the filtering condition and is filtered out. Through the above steps S801 and S802, candidate paging data [ "9", "5", "15", "7", "10", "11" ]areobtained.
In step S803, the candidate paging data is truncated using the slice size. In the above example, if the slice size is 4, the first 4 pieces of paging data [ "9", "5", "15", "7" ] are cut from the candidate paging data as the target paging data.
And the server returns the obtained target paging data to the client, so that the client displays the target paging data. Therefore, according to the paging data request sent by the client for multiple times, the server respectively returns the corresponding target paging data according to the method, so that the server can return the target paging data in a personalized manner to obtain personalized paging pages.
Further, after the step S104, the method further includes:
and updating the zone bit in the paging parameter according to the target paging data.
Optionally, the flag bit in the next paging parameter is obtained according to the position of the last paging data in the target paging data. As shown in fig. 5g, the last page data in the target page data is the page data of the position "7", and the first page data after the page data of the position "7" is the page data of the position "10", so the flag bit in the next page parameter is set to "10".
Optionally, the flag bit in the paging parameter and the target paging data are sent to the client together, so that the client displays a paging page according to the target paging data, and sets the paging parameter in the next paging data request according to the flag bit.
Optionally, the paging data in the page data list is not deleted, such as the filtered paging data, but is not returned to the client, but is still stored in the page data list, and the position of the paging data is moved according to the position after the forced insertion.
On the basis, optionally, in order to not repeatedly perform filtering of the paging data, the last paging data in the paging window is set at the last bit of the paging window, that is, the last page data in the paging window cannot be the filtered data, so that when the paging data is intercepted, the filtered paging data can be directly intercepted, and repeated filtering of the paging data is prevented when a next paging data request is performed. As shown in fig. 5f, before the 15 th-bit paging data is inserted into the 7 th-bit paging data, since the 7 th-bit paging data is the last qualified paging data in the paging window, the 7 th-bit paging data is moved to the 8 th-bit paging data, so that when the paging data is intercepted, the 8 th-bit paging data can be directly intercepted, otherwise, when the next flag bit is calculated, the flag bit is calculated to be the position 8, and when the target paging data is next obtained, the 8 th-bit paging data needs to be repeatedly filtered.
The embodiment of the disclosure discloses a method and a device for acquiring paging data, electronic equipment and a computer-readable storage medium. The paging data acquisition method comprises the following steps: obtaining paging parameters; obtaining first candidate paging data according to the paging parameters; acquiring second candidate paging data according to the paging parameters; and obtaining target paging data from the first candidate paging data and the second candidate paging data according to the paging parameters. According to the method, the technical problem that personalized page data are difficult to provide is solved by obtaining the candidate page data and selecting the candidate page data.
In the above, although the steps in the above method embodiments are described in the above sequence, it should be clear to those skilled in the art that the steps in the embodiments of the present disclosure are not necessarily performed in the above sequence, and may also be performed in other sequences such as reverse, parallel, and cross, and further, on the basis of the above steps, other steps may also be added by those skilled in the art, and these obvious modifications or equivalents should also be included in the protection scope of the present disclosure, and are not described herein again.
Fig. 9 is a schematic structural diagram of an embodiment of a paging data obtaining apparatus according to the present disclosure. As shown in fig. 9, the apparatus 900 includes: a parameter obtaining module 901, a first candidate data obtaining module 902, a second candidate data obtaining module 903, and a paging data obtaining module 904. Wherein the content of the first and second substances,
a parameter obtaining module 901, configured to obtain a paging parameter;
a first candidate data obtaining module 902, configured to obtain first candidate paging data according to the paging parameter;
a second candidate data obtaining module 903, configured to obtain second candidate paging data according to the paging parameter;
a paging data obtaining module 904, configured to obtain target paging data from the first candidate paging data and the second candidate paging data according to the paging parameter.
Further, the parameter obtaining module 901 is further configured to:
receiving a paging data request;
and analyzing the paging data request to obtain the paging parameters.
Further, the paging parameters include: one or more of a flag bit, a slice size, filtering information, and an offset; wherein the flag bit represents a paging data start position in a page data list; the slice size represents the amount of target paged data; the filtering information represents information required to filter the paginated data; the offset represents the amount of target page data that has been acquired.
Further, the first candidate data obtaining module 902 is further configured to:
acquiring a page data list;
and acquiring the paging data with the fragment size from the page data list as the first candidate paging data according to the zone bit and the filtering information.
Further, the first candidate data obtaining module 902 is further configured to:
generating a filtering condition according to the filtering information;
determining the starting position of paging data in the page data list according to the zone bit;
and acquiring the paging data with the fragment size from the paging data starting position in the page data list as the first candidate paging data according to the filtering condition.
Further, the first candidate data obtaining module 902 is further configured to:
initializing a paging window;
obtaining paging data from the paging data starting position in the page data list according to the filtering condition until the size of the paging window is equal to the size of the fragment;
and taking the paging data in the paging window as the first candidate paging data.
Further, the first candidate paging data includes:
the paging data which do not satisfy the filtering condition and the paging data which do not satisfy the strong interpolation condition.
Further, the second candidate data obtaining module 903 is further configured to:
generating a filtering condition according to the filtering information;
obtaining at least one paging data meeting the forced insertion condition;
and obtaining the paging data which does not meet the filtering condition from the at least one paging data which meets the forced insertion condition as second candidate paging data.
Further, wherein the paging parameter includes a slice size, the paging data obtaining module 904 is further configured to:
acquiring the insertion position of the second candidate paging data;
inserting the second candidate paging data into the first candidate paging data according to the insertion position to obtain candidate paging data;
and intercepting the target paging data from the candidate paging data according to the fragment size.
Further, the paging data obtaining apparatus 900 is further configured to:
and updating the zone bit in the paging parameter according to the target paging data.
The apparatus shown in fig. 9 can perform the method of the embodiment shown in fig. 1-8, and the detailed description of this embodiment can refer to the related description of the embodiment shown in fig. 1-8. The implementation process and technical effect of the technical solution refer to the descriptions in the embodiments shown in fig. 1 to 8, and are not described herein again.
Referring now to FIG. 10, a block diagram of an electronic device 1000 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 10 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 10, the electronic device 1000 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 1001 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)1002 or a program loaded from a storage means 1008 into a Random Access Memory (RAM) 1003. In the RAM 1003, various programs and data necessary for the operation of the electronic apparatus 1000 are also stored. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other by a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
Generally, the following devices may be connected to the I/O interface 1005: input devices 1006 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 1007 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 1008 including, for example, magnetic tape, hard disk, and the like; and a communication device 1009. The communication device 1009 may allow the electronic device 1000 to communicate with other devices wirelessly or by wire to exchange data. While fig. 10 illustrates an electronic device 1000 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 1009, or installed from the storage means 1008, or installed from the ROM 1002. The computer program, when executed by the processing device 1001, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: the paging data obtaining method in the above embodiment is performed.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a method of obtaining paged data, including:
obtaining paging parameters;
obtaining first candidate paging data according to the paging parameters;
acquiring second candidate paging data according to the paging parameters;
and obtaining target paging data from the first candidate paging data and the second candidate paging data according to the paging parameters.
Further, the obtaining the paging parameter includes:
receiving a paging data request;
and analyzing the paging data request to obtain the paging parameters.
Further, the paging parameters include: one or more of a flag bit, a slice size, filtering information, and an offset; wherein the flag bit represents a paging data start position in a page data list; the slice size represents the amount of target paged data; the filtering information represents information required to filter the paginated data; the offset represents the amount of target page data that has been acquired.
Further, the obtaining the first candidate paging data according to the paging parameter includes:
acquiring a page data list;
and acquiring the paging data with the fragment size from the page data list as the first candidate paging data according to the zone bit and the filtering information.
Further, the obtaining of the paging data with the fragment size from the page data list according to the flag bit and the filtering information as the first candidate paging data includes:
generating a filtering condition according to the filtering information;
determining the starting position of paging data in the page data list according to the zone bit;
and acquiring the paging data with the fragment size from the paging data starting position in the page data list as the first candidate paging data according to the filtering condition.
Further, the obtaining the fragment-size paging data from the paging data start position in the page data list according to the filtering condition as the first candidate paging data includes:
initializing a paging window;
obtaining paging data from the paging data starting position in the page data list according to the filtering condition until the size of the paging window is equal to the size of the fragment;
and taking the paging data in the paging window as the first candidate paging data.
Further, the first candidate paging data includes:
the paging data which do not satisfy the filtering condition and the paging data which do not satisfy the strong interpolation condition.
Further, the obtaining of the second candidate paging data according to the paging parameter includes:
generating a filtering condition according to the filtering information;
obtaining at least one paging data meeting the forced insertion condition;
and obtaining the paging data which does not meet the filtering condition from the at least one paging data which meets the forced insertion condition as second candidate paging data.
Further, the obtaining target paging data from the first candidate paging data and the second candidate paging data according to the paging parameter includes:
acquiring the insertion position of the second candidate paging data;
inserting the second candidate paging data into the first candidate paging data according to the insertion position to obtain candidate paging data;
and intercepting the target paging data from the candidate paging data according to the fragment size.
Further, the method further comprises:
and updating the zone bit in the paging parameter according to the target paging data.
According to one or more embodiments of the present disclosure, there is provided a page data obtaining apparatus including:
the parameter acquisition module is used for acquiring paging parameters;
a first candidate data obtaining module, configured to obtain first candidate paging data according to the paging parameter;
a second candidate data obtaining module, configured to obtain second candidate paging data according to the paging parameter;
and the paging data acquisition module is used for acquiring target paging data from the first candidate paging data and the second candidate paging data according to the paging parameters.
Further, the parameter obtaining module is further configured to:
receiving a paging data request;
and analyzing the paging data request to obtain the paging parameters.
Further, the paging parameters include: one or more of a flag bit, a slice size, filtering information, and an offset; wherein the flag bit represents a paging data start position in a page data list; the slice size represents the amount of target paged data; the filtering information represents information required to filter the paginated data; the offset represents the amount of target page data that has been acquired.
Further, the first candidate data obtaining module is further configured to:
acquiring a page data list;
and acquiring the paging data with the fragment size from the page data list as the first candidate paging data according to the zone bit and the filtering information.
Further, the first candidate data obtaining module is further configured to:
generating a filtering condition according to the filtering information;
determining the starting position of paging data in the page data list according to the zone bit;
and acquiring the paging data with the fragment size from the paging data starting position in the page data list as the first candidate paging data according to the filtering condition.
Further, the first candidate data obtaining module is further configured to:
initializing a paging window;
obtaining paging data from the paging data starting position in the page data list according to the filtering condition until the size of the paging window is equal to the size of the fragment;
and taking the paging data in the paging window as the first candidate paging data.
Further, the first candidate paging data includes:
the paging data which do not satisfy the filtering condition and the paging data which do not satisfy the strong interpolation condition.
Further, the second candidate data obtaining module is further configured to:
generating a filtering condition according to the filtering information;
obtaining at least one paging data meeting the forced insertion condition;
and obtaining the paging data which does not meet the filtering condition from the at least one paging data which meets the forced insertion condition as second candidate paging data.
Further, the paging parameter includes a fragment size, and the paging data obtaining module is further configured to:
acquiring the insertion position of the second candidate paging data;
inserting the second candidate paging data into the first candidate paging data according to the insertion position to obtain candidate paging data;
and intercepting the target paging data from the candidate paging data according to the fragment size.
Further, the paging data obtaining apparatus is further configured to:
and updating the zone bit in the paging parameter according to the target paging data.
According to one or more embodiments of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the paged data retrieval methods of the first aspect.
According to one or more embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, characterized by storing computer instructions for causing a computer to execute any of the paged data acquisition methods of the first aspect.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (13)

1. A method for obtaining paged data, comprising:
obtaining paging parameters;
obtaining first candidate paging data according to the paging parameters;
acquiring second candidate paging data according to the paging parameters;
and obtaining target paging data from the first candidate paging data and the second candidate paging data according to the paging parameters.
2. The method for paging data acquisition as claimed in claim 1, wherein the acquiring the paging parameter comprises:
receiving a paging data request;
and analyzing the paging data request to obtain the paging parameters.
3. The method for retrieving paging data according to any one of claims 1 or 2, wherein the paging parameters include: one or more of a flag bit, a slice size, filtering information, and an offset; wherein the flag bit represents a paging data start position in a page data list; the slice size represents the amount of target paged data; the filtering information represents information required to filter the paginated data; the offset represents the amount of target page data that has been acquired.
4. The method for paging data acquisition as claimed in claim 3, wherein the paging parameter comprises the flag and the filtering information, and the acquiring the first candidate paging data according to the paging parameter comprises:
acquiring the page data list;
and acquiring the paging data with the fragment size from the page data list as the first candidate paging data according to the zone bit and the filtering information.
5. The method for retrieving paged data according to claim 4, wherein said retrieving a slice size of paged data from the page data list as the first candidate paged data according to the flag and the filter information comprises:
generating a filtering condition according to the filtering information;
determining the starting position of paging data in the page data list according to the zone bit;
and acquiring the paging data with the fragment size from the paging data starting position in the page data list as the first candidate paging data according to the filtering condition.
6. The method for retrieving paginated data as claimed in claim 5, wherein the retrieving of the fragment-sized paginated data from the paginated data starting position in the page data list as the first candidate paginated data according to the filtering condition comprises:
initializing a paging window;
obtaining paging data from the paging data starting position in the page data list according to the filtering condition until the size of the paging window is equal to the size of the fragment;
and taking the paging data in the paging window as the first candidate paging data.
7. The method for paging data acquisition according to claim 5, wherein the first candidate paging data comprises:
the page data that does not satisfy the filtering condition and the page data that does not satisfy the interpolation condition.
8. The method for retrieving paging data as claimed in claim 3, wherein the retrieving the second candidate paging data according to the paging parameter comprises:
generating a filtering condition according to the filtering information;
obtaining at least one paging data meeting the forced insertion condition;
and obtaining the paging data which does not meet the filtering condition from the at least one paging data which meets the forced insertion condition as second candidate paging data.
9. The method for paging data acquisition according to claim 3, wherein the paging parameter includes the slice size, and the obtaining target paging data from the first candidate paging data and the second candidate paging data according to the paging parameter comprises:
acquiring the insertion position of the second candidate paging data;
inserting the second candidate paging data into the first candidate paging data according to the insertion position to obtain candidate paging data;
and intercepting the target paging data from the candidate paging data according to the fragment size.
10. The paged data retrieval method according to claim 1, further comprising:
and updating the zone bit in the paging parameter according to the target paging data.
11. A paged data capture device, comprising:
the parameter acquisition module is used for acquiring paging parameters;
a first candidate data obtaining module, configured to obtain first candidate paging data according to the paging parameter;
a second candidate data obtaining module, configured to obtain second candidate paging data according to the paging parameter;
and the paging data acquisition module is used for acquiring target paging data from the first candidate paging data and the second candidate paging data according to the paging parameters.
12. An electronic device, comprising:
a memory for storing computer readable instructions; and
a processor for executing the computer readable instructions such that the processor when executed implements the method of any of claims 1-10.
13. A non-transitory computer readable storage medium storing computer readable instructions which, when executed by a computer, cause the computer to perform the method of any one of claims 1-10.
CN202011294529.0A 2020-11-18 2020-11-18 Paging data acquisition method and device, electronic equipment and computer readable storage medium Pending CN112417276A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011294529.0A CN112417276A (en) 2020-11-18 2020-11-18 Paging data acquisition method and device, electronic equipment and computer readable storage medium
PCT/CN2021/130261 WO2022105682A1 (en) 2020-11-18 2021-11-12 Paging data acquisition method and apparatus, electronic device, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011294529.0A CN112417276A (en) 2020-11-18 2020-11-18 Paging data acquisition method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112417276A true CN112417276A (en) 2021-02-26

Family

ID=74774451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011294529.0A Pending CN112417276A (en) 2020-11-18 2020-11-18 Paging data acquisition method and device, electronic equipment and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN112417276A (en)
WO (1) WO2022105682A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022105682A1 (en) * 2020-11-18 2022-05-27 北京字节跳动网络技术有限公司 Paging data acquisition method and apparatus, electronic device, and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106184A (en) * 2013-03-01 2013-05-15 畅捷通信息技术股份有限公司 Tabular data paging device and tabular data paging method
CN105354256A (en) * 2015-10-22 2016-02-24 浪潮电子信息产业股份有限公司 Data pagination query method and apparatus
CN107943981A (en) * 2017-11-30 2018-04-20 努比亚技术有限公司 HBase rows paging method, server and computer-readable recording medium
CN108090086A (en) * 2016-11-21 2018-05-29 迈普通信技术股份有限公司 Paging query method and device
CN108848244A (en) * 2018-04-02 2018-11-20 阿里巴巴集团控股有限公司 A kind of method and device of Pagination Display
CN109543027A (en) * 2018-11-23 2019-03-29 苏州好玩友网络科技有限公司 The acquisition methods and device of paged data, equipment and storage medium
CN110442406A (en) * 2018-05-02 2019-11-12 天津京东深拓机器人科技有限公司 The method and paging control, electronic equipment of paging control processing data
CN111797091A (en) * 2019-10-18 2020-10-20 北京沃东天骏信息技术有限公司 Method and device for querying data in database, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10509844B1 (en) * 2017-01-19 2019-12-17 Palantir Technologies Inc. Network graph parser
US10585915B2 (en) * 2017-10-25 2020-03-10 International Business Machines Corporation Database sharding
CN108509529A (en) * 2018-03-14 2018-09-07 武汉斗鱼网络科技有限公司 Data page sort method, device and readable storage medium storing program for executing
CN112417276A (en) * 2020-11-18 2021-02-26 北京字节跳动网络技术有限公司 Paging data acquisition method and device, electronic equipment and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106184A (en) * 2013-03-01 2013-05-15 畅捷通信息技术股份有限公司 Tabular data paging device and tabular data paging method
CN105354256A (en) * 2015-10-22 2016-02-24 浪潮电子信息产业股份有限公司 Data pagination query method and apparatus
CN108090086A (en) * 2016-11-21 2018-05-29 迈普通信技术股份有限公司 Paging query method and device
CN107943981A (en) * 2017-11-30 2018-04-20 努比亚技术有限公司 HBase rows paging method, server and computer-readable recording medium
CN108848244A (en) * 2018-04-02 2018-11-20 阿里巴巴集团控股有限公司 A kind of method and device of Pagination Display
CN110442406A (en) * 2018-05-02 2019-11-12 天津京东深拓机器人科技有限公司 The method and paging control, electronic equipment of paging control processing data
CN109543027A (en) * 2018-11-23 2019-03-29 苏州好玩友网络科技有限公司 The acquisition methods and device of paged data, equipment and storage medium
CN111797091A (en) * 2019-10-18 2020-10-20 北京沃东天骏信息技术有限公司 Method and device for querying data in database, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022105682A1 (en) * 2020-11-18 2022-05-27 北京字节跳动网络技术有限公司 Paging data acquisition method and apparatus, electronic device, and computer readable storage medium

Also Published As

Publication number Publication date
WO2022105682A1 (en) 2022-05-27

Similar Documents

Publication Publication Date Title
CN111399956B (en) Content display method and device applied to display equipment and electronic equipment
CN111629252B (en) Video processing method and device, electronic equipment and computer readable storage medium
CN110809189B (en) Video playing method and device, electronic equipment and computer readable medium
CN112311656B (en) Message aggregation and display method and device, electronic equipment and computer readable medium
CN111784712B (en) Image processing method, device, equipment and computer readable medium
CN111459364B (en) Icon updating method and device and electronic equipment
CN112035030B (en) Information display method and device and electronic equipment
CN112383787A (en) Live broadcast room creating method and device, electronic equipment and storage medium
CN111461967B (en) Picture processing method, device, equipment and computer readable medium
CN110852946A (en) Picture display method and device and electronic equipment
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN111163336B (en) Video resource pushing method and device, electronic equipment and computer readable medium
CN111756953A (en) Video processing method, device, equipment and computer readable medium
CN112417276A (en) Paging data acquisition method and device, electronic equipment and computer readable storage medium
CN112380819A (en) Document editing method and device and electronic equipment
CN112053286A (en) Image processing method, image processing device, electronic equipment and readable medium
CN111209432A (en) Information acquisition method and device, electronic equipment and computer readable medium
CN112307393A (en) Information issuing method and device and electronic equipment
CN111625745B (en) Recommendation method, recommendation device, electronic equipment and computer readable medium
CN111290692B (en) Picture display method and device, electronic equipment and computer readable medium
CN112579218B (en) User interface display method and device, computer readable medium and electronic equipment
CN114187169A (en) Method, device and equipment for generating video special effect package and storage medium
CN111258582A (en) Window rendering method and device, computer equipment and storage medium
CN111461966B (en) Image processing method, image processing device, electronic equipment and computer readable medium
CN111294611B (en) Video insertion method and device, electronic equipment and computer readable storage medium

Legal Events

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