Class Task
- java.lang.Object
-
- org.apache.sysds.runtime.controlprogram.parfor.Task
-
- All Implemented Interfaces:
Serializable
public class Task extends Object implements Serializable
A task is a logical group of one or multiple iterations (each iteration is assigned to exactly one task). There, each single task is executed sequentially. See TaskPartitioner for how tasks are created and ParWorker for how those tasks are eventually executed. NOTE: (Extension possibility: group of statements)- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTask.TaskType
-
Field Summary
Fields Modifier and Type Field Description static intMAX_TASK_SIZEstatic intMAX_VARNAME_SIZE
-
Constructor Summary
Constructors Constructor Description Task()Task(String iterVar, Task.TaskType type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddIteration(IntObject indexVal)List<IntObject>getIterations()Task.TaskTypegetType()StringgetVarName()static TaskparseCompactString(String stask)intsize()StringtoCompactString()StringtoCompactString(int maxDigits)StringtoFormatedString()StringtoString()
-
-
-
Field Detail
-
MAX_VARNAME_SIZE
public static final int MAX_VARNAME_SIZE
- See Also:
- Constant Field Values
-
MAX_TASK_SIZE
public static final int MAX_TASK_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Task
public Task()
-
Task
public Task(String iterVar, Task.TaskType type)
-
-
Method Detail
-
addIteration
public void addIteration(IntObject indexVal)
-
getType
public Task.TaskType getType()
-
getVarName
public String getVarName()
-
size
public int size()
-
toFormatedString
public String toFormatedString()
-
toCompactString
public String toCompactString()
-
toCompactString
public String toCompactString(int maxDigits)
-
-