public class FetchOptions
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FetchOptions.FetchMode
Specifies the fetching strategy
for query results.
|
Modifier and Type | Field and Description |
---|---|
private FetchOptions.FetchMode |
fetchMode |
private int |
fetchSize |
Constructor and Description |
---|
FetchOptions() |
Modifier and Type | Method and Description |
---|---|
FetchOptions |
fetchMode(FetchOptions.FetchMode fetchMode)
Set the fetch mode to be used to fetch matching results
|
FetchOptions |
fetchSize(int fetchSize)
Set the fetch size for batch loading of matches
|
FetchOptions.FetchMode |
getFetchMode() |
int |
getFetchSize() |
private FetchOptions.FetchMode fetchMode
private int fetchSize
public FetchOptions fetchMode(FetchOptions.FetchMode fetchMode)
fetchMode
- this
to allow method chainingpublic FetchOptions fetchSize(int fetchSize)
fetchSize
- this
to allow method chainingpublic FetchOptions.FetchMode getFetchMode()
public int getFetchSize()