Class Result

java.lang.Object
  |
  +--Result

public class Result
extends java.lang.Object

Result is the data structure which contains the returned result(s) of a task execution.


Field Summary
 long argumentPosition
          When the results are intermediate, this field specifies which input argument (of the destination task) must be set.
 Sequence computedBy
          This field keeps track of the task that produced the results.
 TaskInfo destinationTaskInfo
          When the results are not final, this field keeps information about the destination task, i.e.
 long jobId
          The Id of the current job
 java.lang.Object results
          The actual results are stored here.
 
Constructor Summary
Result(Result copyResult)
          Use this constructor when you want to replicate a "result" object.
Result(TaskInfo taskInfo, Sequence computedBy, long argPos, java.lang.Object result)
          Use this constructor when you want to create a Result object form scratch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

argumentPosition

public long argumentPosition
When the results are intermediate, this field specifies which input argument (of the destination task) must be set.

computedBy

public Sequence computedBy
This field keeps track of the task that produced the results. This information can be used for statistical reasons, and helps us NOT to execute the same task twice.

destinationTaskInfo

public TaskInfo destinationTaskInfo
When the results are not final, this field keeps information about the destination task, i.e. the task which will receive as input argument those results.

jobId

public long jobId
The Id of the current job

results

public java.lang.Object results
The actual results are stored here. Even though they appear as type "Object", in reality they are treated as an array of type "Object".
Constructor Detail

Result

public Result(TaskInfo taskInfo,
              Sequence computedBy,
              long argPos,
              java.lang.Object result)
Use this constructor when you want to create a Result object form scratch

Result

public Result(Result copyResult)
Use this constructor when you want to replicate a "result" object.