Package net.sf.ehcache.search
Class ExecutionHints
- java.lang.Object
-
- net.sf.ehcache.search.ExecutionHints
-
public class ExecutionHints extends java.lang.ObjectBuilder-style class that allows user to specify query execution preferences, if necessary- Author:
- Terracotta
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_RESULT_BATCH_SIZEDefault value
-
Constructor Summary
Constructors Constructor Description ExecutionHints()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetResultBatchSize()ExecutionHintssetResultBatchSize(int size)Set desired batch size for search results.
-
-
-
Field Detail
-
DEFAULT_RESULT_BATCH_SIZE
public static final int DEFAULT_RESULT_BATCH_SIZE
Default value- See Also:
- Constant Field Values
-
-
Method Detail
-
setResultBatchSize
public ExecutionHints setResultBatchSize(int size)
Set desired batch size for search results. This may be used as a safeguard to keep memory overhead fixed, when expecting total number of results to be large.- Parameters:
size-- Returns:
-
getResultBatchSize
public int getResultBatchSize()
- Returns:
- desired search result batch size
-
-