-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathtask.go
More file actions
33 lines (28 loc) · 726 Bytes
/
Copy pathtask.go
File metadata and controls
33 lines (28 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package corral
import (
"github.com/bcongdon/corral/internal/pkg/corfs"
)
// Phase is a descriptor of the phase (i.e. Map or Reduce) of a Job
type Phase int
// Descriptors of the Job phase
const (
MapPhase Phase = iota
ReducePhase
)
// task defines a serialized description of a single unit of work
// in a MapReduce job, as well as the necessary information for a
// remote executor to initialize itself and begin working.
type task struct {
JobNumber int
Phase Phase
BinID uint
IntermediateBins uint
Splits []inputSplit
FileSystemType corfs.FileSystemType
WorkingLocation string
Cleanup bool
}
type taskResult struct {
BytesRead int
BytesWritten int
}