|
GemFire 5.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Function
Defines the interface a user defined function implements.
FunctionAdapter,
FunctionService| Method Summary | |
|---|---|
Serializable |
execute(FunctionContext context)
The method which contain the logic to be executed. |
String |
getId()
Return a unique function identifier, used to register the function with FunctionService |
boolean |
hasResult()
Specifies whether the function returns a result after execution is complete. |
boolean |
optimizeForWrite()
Return true to indicate to GemFire the method requires optimization for writing the targeted FunctionService.onRegion(com.gemstone.gemfire.cache.Region) and any
associated routing objects. |
| Method Detail |
|---|
boolean hasResult()
If hasResult() returns false,
ResultCollector.getResult() throws FunctionException.
If hasResult() returns true,
ResultCollector.getResult() blocks and waits for the
result of function execution
Serializable execute(FunctionContext context)
Execution.
context - data specific to
String getId()
FunctionService
boolean optimizeForWrite()
Return true to indicate to GemFire the method
requires optimization for writing the targeted FunctionService.onRegion(com.gemstone.gemfire.cache.Region) and any
associated routing objects.
Returning false will optimize for read behavior on the targeted
FunctionService.onRegion(com.gemstone.gemfire.cache.Region) and any
associated routing objects.
This method is only consulted when invoked as a data dependent function
FunctionService
|
GemFire 5.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||