Package org.apache.ignite.compute
Annotation Type ComputeTaskNoResultCache
-
@Documented @Retention(RUNTIME) @Target(TYPE) public @interface ComputeTaskNoResultCache
This annotation disables caching of task results when attached toComputeTask
class being executed. Use it when number of jobs within task grows too big, or jobs themselves are too large to keep in memory throughout task execution. By default all results are cached and passed intoComputeTask.result(ComputeJobResult, List<ComputeJobResult>)
method orComputeTask.reduce(List<ComputeJobResult>)
method. When this annotation is attached to a task class, then this list of job results will always be empty.Note that if this annotation is attached to a task class, then job siblings list is not maintained and always has size of
0
. This is done to make sure that in case if task emits large number of jobs, list of jobs siblings does not grow. This only affects the following methods onComputeTaskSession
:ComputeTaskSession.getJobSiblings()
ComputeTaskSession.getJobSibling(org.apache.ignite.lang.IgniteUuid)
ComputeTaskSession.refreshJobSiblings()
ComputeTask.result(ComputeJobResult, List<ComputeJobResult>)
method.