Top Description Fields Constructors Methods
net.sf.ehcache.search

public Class ExecutionHints

extends Object
Class Inheritance

Builder-style class that allows user to specify query execution preferences, if necessary
Author
Terracotta

Field Summary

Modifier and TypeField and Description
private int
public static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

desired search result batch size
getResultBatchSize
()

public ExecutionHints
setResultBatchSize(int size)

Set desired batch size for search results.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

batchSizeback to summary
private int batchSize
DEFAULT_RESULT_BATCH_SIZEback to summary
public static final int DEFAULT_RESULT_BATCH_SIZE

Default value

Constructor Detail

ExecutionHintsback to summary
public ExecutionHints()

Method Detail

getResultBatchSizeback to summary
public int getResultBatchSize()
Returns:int

desired search result batch size

setResultBatchSizeback to summary
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.