Interface ResultIterable<DOC>

Type Parameters:
DOC - parameterized type
All Superinterfaces:
Iterable<DOC>

public interface ResultIterable<DOC> extends Iterable<DOC>
Building an Iterable to interact with Api.
  • Method Details

    • batchSize

      ResultIterable<DOC> batchSize(int batchSize)
      Enable to change the Batch Size.
      Parameters:
      batchSize - batch size
      Returns:
      current instance
    • one

      default DOC one()
      Return the first element.
      Returns:
      first element
    • all

      default List<DOC> all()
      Return all elements.
      Returns:
      all elements
    • isFullyFetched

      boolean isFullyFetched()
      Return the first element.
      Returns:
      first element
    • map

      default <U> ResultIterable<U> map(Function<DOC,U> mapper)
      Map the result to another type.
      Type Parameters:
      U - new type
      Parameters:
      mapper - mapper
      Returns:
      new instance