YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.upnp.search.SearchPaging Class Reference

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...

Collaboration diagram for de.yaacc.upnp.search.SearchPaging:
Collaboration graph

Static Public Member Functions

static long[][] slices (long[] counts, long first, long max)
 
static long total (long[] counts)
 

Detailed Description

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.

Member Function Documentation

◆ slices()

static long[][] de.yaacc.upnp.search.SearchPaging.slices ( long[] counts,
long first,
long max )
static
Parameters
countsthe number of matches of every source, in the order of the results
firstthe index of the first result of the page (0 based)
maxthe 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: