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 class
FetchOptions.FetchMode
Specifies 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 FetchOptions
fetchMode(FetchOptions.FetchMode fetchMode)
Set the fetch mode to be used to fetch matching resultsFetchOptions
fetchSize(int fetchSize)
Set the fetch size for batch loading of matchesFetchOptions.FetchMode
getFetchMode()
int
getFetchSize()
-
-
-
Method Detail
-
fetchMode
public FetchOptions fetchMode(FetchOptions.FetchMode fetchMode)
Set the fetch mode to be used to fetch matching results- Parameters:
fetchMode
-- Returns:
this
to allow method chaining
-
fetchSize
public FetchOptions fetchSize(int fetchSize)
Set the fetch size for batch loading of matches- Parameters:
fetchSize
-- Returns:
this
to allow method chaining
-
getFetchMode
public FetchOptions.FetchMode getFetchMode()
- Returns:
- the selected fetch mode
-
getFetchSize
public int getFetchSize()
- Returns:
- the used fetch size
-
-