ehcache

net.sf.ehcache.search
Class ExecutionHints

java.lang.Object
  extended by net.sf.ehcache.search.ExecutionHints

public class ExecutionHints
extends Object

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

Author:
Terracotta

Field Summary
static int DEFAULT_RESULT_BATCH_SIZE
          Default value
 
Constructor Summary
ExecutionHints()
           
 
Method Summary
 int getResultBatchSize()
           
 ExecutionHints setResultBatchSize(int size)
          Set desired batch size for search results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_RESULT_BATCH_SIZE

public static final int DEFAULT_RESULT_BATCH_SIZE
Default value

See Also:
Constant Field Values
Constructor Detail

ExecutionHints

public ExecutionHints()
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

ehcache

Copyright 2001-2014, Terracotta, Inc.