Interface Limit<T>
-
- Type Parameters:
T
-
- All Superinterfaces:
Executor<T>
- All Known Subinterfaces:
Filter<T>
,OrderByFieldOrLimit<T>
,OrderByOperation<T>
,Query<T>
,ScoredFilter<T>
public interface Limit<T> extends Executor<T>
Limit and execute operations- API:
- This is a public API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Executor<T>
limit(int size)
Limits the result to the given sizeExecutor<T>
limit(int from, int size)
Limits the result to the given from position and size
-
-
-
Method Detail
-
limit
Executor<T> limit(int size)
Limits the result to the given sizeExample:
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 sizeExample:
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.
-
-