@Documented @Retention(value=RUNTIME) @Target(value=TYPE) public @interface ComputeTaskNoResultCache
ComputeTask
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 into
ComputeTask.result(ComputeJobResult, List<ComputeJobResult>)
method or ComputeTask.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
on ComputeTaskSession
:
ComputeTaskSession.getJobSiblings()
ComputeTaskSession.getJobSibling(org.apache.ignite.lang.IgniteUuid)
ComputeTaskSession.refreshJobSiblings()
ComputeTask.result(ComputeJobResult, List<ComputeJobResult>)
method.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019