Package org.infinispan.query
Class FetchOptions
- java.lang.Object
-
- org.infinispan.query.FetchOptions
-
public class FetchOptions extends Object
- Author:
- Marko Luksa
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFetchOptions.FetchModeSpecifies the fetching strategy for query results.
-
Constructor Summary
Constructors Constructor Description FetchOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FetchOptionsfetchMode(FetchOptions.FetchMode fetchMode)Set the fetch mode to be used to fetch matching resultsFetchOptionsfetchSize(int fetchSize)Set the fetch size for batch loading of matchesFetchOptions.FetchModegetFetchMode()intgetFetchSize()
-
-
-
Method Detail
-
fetchMode
public FetchOptions fetchMode(FetchOptions.FetchMode fetchMode)
Set the fetch mode to be used to fetch matching results- Parameters:
fetchMode-- Returns:
thisto allow method chaining
-
fetchSize
public FetchOptions fetchSize(int fetchSize)
Set the fetch size for batch loading of matches- Parameters:
fetchSize-- Returns:
thisto allow method chaining
-
getFetchMode
public FetchOptions.FetchMode getFetchMode()
- Returns:
- the selected fetch mode
-
getFetchSize
public int getFetchSize()
- Returns:
- the used fetch size
-
-