Class SearchClient<T>

java.lang.Object
co.yellowdog.platform.clients.SearchClient<T>

public class SearchClient<T> extends Object
  • Constructor Details

  • Method Details

    • slice

      public Slice<T> slice(SliceReference sliceReference)
      Gets a slice of items at a given point and of a given size defined by a SliceReference
      Parameters:
      sliceReference - the slice reference.
      Returns:
      the slice.
    • streamAll

      public Stream<T> streamAll()
      Streams all items.
      Returns:
      A stream of all items.
    • listAll

      public List<T> listAll()
      Lists all items.
      Returns:
      A list of all items.
    • iterateAll

      public Iterable<T> iterateAll()
      Iterable that iterates over all items, only loading slices of items when required.
       
        for (T item : searchClient.iterateAll()) {
            // action...
        }
       
       
      Returns:
      the iterable.