class PlatformBroadcastingSingleClosureTask extends PlatformAbstractTask {
    /** */
    private static final long serialVersionUID = 0L;

    /** */
    private PlatformJob job;

    /**
     * Constructor.
     *
     * @param ctx Platform context.
     * @param taskPtr Task pointer.
     */
    public PlatformBroadcastingSingleClosureTask(PlatformContext ctx, long taskPtr) {
        super(ctx, taskPtr);
    }

    /** {@inheritDoc} */
    @NotNull @Override public Map<? extends ComputeJob, ClusterNode> map(List<ClusterNode> subgrid,
        @Nullable Object arg) {<FILL_FUNCTION_BODY>}

    /**
     * @param job Job.
     */
    public void job(PlatformJob job) {
        this.job = job;
    }
}

        assert job != null : "Job null-check must be performed in native platform.";

        if (!F.isEmpty(subgrid)) {
            Map<ComputeJob, ClusterNode> map = new HashMap<>(subgrid.size(), 1);

            boolean first = true;

            for (ClusterNode node : subgrid) {
                if (first) {
                    map.put(job, node);

                    first = false;
                }
                else
                    map.put(ctx.createClosureJob(this, job.pointer(), job.job(), job.name()), node);
            }

            return map;
        }
        else
            return Collections.emptyMap();
    
<methods>public void onDone(java.lang.Exception) ,public java.lang.Void reduce(List<org.apache.ignite.compute.ComputeJobResult>) ,public org.apache.ignite.compute.ComputeJobResultPolicy result(org.apache.ignite.compute.ComputeJobResult, List<org.apache.ignite.compute.ComputeJobResult>) <variables>protected final non-sealed org.apache.ignite.internal.processors.platform.PlatformContext ctx,protected boolean done,protected final java.util.concurrent.locks.ReadWriteLock lock,protected final non-sealed long taskPtr