Class KernelSearchResults<T>

  • Type Parameters:
    T - The type of the search results.

    public class KernelSearchResults<T>
    extends Object
    The search results.
    • Constructor Detail

      • KernelSearchResults

        public KernelSearchResults​(List<T> results)
        Creates a new instance of the KernelSearchResults class.
        Parameters:
        results - The search results.
      • KernelSearchResults

        public KernelSearchResults​(List<T> results,
                                   long totalCount,
                                   Map<String,​Object> metadata)
        Creates a new instance of the KernelSearchResults class.
        Parameters:
        results - The search results.
        totalCount - The total count of search results.
        metadata - The metadata.
    • Method Detail

      • getTotalCount

        public long getTotalCount()
        Gets the total count of search results. This value represents the total number of results that are available for the current query and not the number of results being returned.
        Returns:
        The total count of search results.
      • getResults

        public List<T> getResults()
        Gets the search results.
        Returns:
        The search results.
      • getMetadata

        public Map<String,​Object> getMetadata()
        Gets the metadata associated with the search results.
        Returns:
        The metadata.