PageFilterResult

data class PageFilterResult(name: String, hits: List<<ERROR CLASS><out <ERROR CLASS>>>, totalHits: Long, page: Int, perPage: Int, totalPages: Int, from: Int, size: Int) : FilterResult, Iterable<<ERROR CLASS><out <ERROR CLASS>>>

PageFilterResult holds result of a PageFilter.

Parameters

name
hits
  • list of hits on the current page

totalHits
  • total number of hits

page
  • number of the current page

perPage
  • number of hits per page

totalPages
  • total number of pages

from
  • value applied to SearchQuery.from

size
  • value applied to SearchQuery.size

Constructors

PageFilterResult
Link copied to clipboard
fun PageFilterResult(name: String, hits: List<<ERROR CLASS><out <ERROR CLASS>>>, totalHits: Long, page: Int, perPage: Int, totalPages: Int, from: Int, size: Int)

Functions

iterator
Link copied to clipboard
open operator override fun iterator(): Iterator<<ERROR CLASS><out <ERROR CLASS>>>

Properties

from
Link copied to clipboard
val from: Int
  • value applied to SearchQuery.from

hits
Link copied to clipboard
val hits: List<<ERROR CLASS><out <ERROR CLASS>>>
  • list of hits on the current page

name
Link copied to clipboard
open override val name: String
page
Link copied to clipboard
val page: Int
  • number of the current page

perPage
Link copied to clipboard
val perPage: Int
  • number of hits per page

size
Link copied to clipboard
val size: Int
  • value applied to SearchQuery.size

totalHits
Link copied to clipboard
val totalHits: Long
  • total number of hits

totalPages
Link copied to clipboard
val totalPages: Int
  • total number of pages