One page of a search over several sources (music, videos, images in this order) that are queried one after the other: from the number of matches of every source, which part of each source belongs to the page that starts at first and holds at most max results.
More...
|
| static long[][] | slices (long[] counts, long first, long max) |
| |
| static long | total (long[] counts) |
| |
One page of a search over several sources (music, videos, images in this order) that are queried one after the other: from the number of matches of every source, which part of each source belongs to the page that starts at first and holds at most max results.
Pure Java.
◆ slices()
| static long[][] de.yaacc.upnp.search.SearchPaging.slices |
( |
long[] | counts, |
|
|
long | first, |
|
|
long | max ) |
|
static |
- Parameters
-
| counts | the number of matches of every source, in the order of the results |
| first | the index of the first result of the page (0 based) |
| max | the most results of the page; 0 or less means all |
- Returns
- for every source {offset in the source, number to take}; the number is 0 for a source that is not on the page
◆ total()
| static long de.yaacc.upnp.search.SearchPaging.total |
( |
long[] | counts | ) |
|
|
static |
- Returns
- the sum of the counts, the TotalMatches of the search
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/upnp/search/SearchPaging.java