org.apache.ignite.compute

## Annotation Type ComputeTaskNoResultCache

-     @Documented
       @Retention(value=RUNTIME)
       @Target(value=TYPE)
      public @interface ComputeTaskNoResultCache

  This annotation disables caching of task results when attached to `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()`
  Use this annotation when job results are too large to hold in memory and can be discarded after being processed in `ComputeTask.result(ComputeJobResult, List<ComputeJobResult>)` method.

2022 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.13.0
Release Date | : April 20 2022