Interface Limit<T>

    • Method Detail

      • limit

        Executor<T> limit​(int size)
        Limits the result to the given size

        Example:

         import workflow.business.data.Dossier;
         
         List<Dossier> result = ivy.repo.search(Dossier.class)
             .limit(100)
             .execute()
             .getAll();
         

        If you do not specify a limit then the maximum number of results is 10.

        Parameters:
        size -
        Returns:
        execute operation
        See Also:
        limit(int, int)
        API:
        This public API is available in IvyScript and Java. It has the visibility ADVANCED.
      • limit

        Executor<T> limit​(int from,
                          int size)
        Limits the result to the given from position and size

        Example:

         import workflow.business.data.Dossier;
         
         List<Dossier> result = ivy.repo.search(Dossier.class)
             .limit(900, 100)
             .execute()
             .getAll();
         

        If you do not use a limit method then the maximum number of results that are returned is 10.

        Parameters:
        from -
        size -
        Returns:
        execute operation
        See Also:
        limit(int)
        API:
        This public API is available in IvyScript and Java. It has the visibility ADVANCED.