public class WorkerInputSplitsHandler extends Object
Constructor and Description |
---|
WorkerInputSplitsHandler(WorkerInfo workerInfo,
int masterTaskId,
WorkerClient workerClient)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
receivedInputSplit(InputType splitType,
byte[] serializedInputSplit)
Called when an input split has been received from master, adding it to
the map
|
byte[] |
reserveInputSplit(InputType splitType,
boolean isFirstSplit)
Try to reserve an InputSplit for loading.
|
public WorkerInputSplitsHandler(WorkerInfo workerInfo, int masterTaskId, WorkerClient workerClient)
workerInfo
- Worker info of this workermasterTaskId
- Task id of masterworkerClient
- Worker client, used for communicationpublic void receivedInputSplit(InputType splitType, byte[] serializedInputSplit)
splitType
- Type of splitserializedInputSplit
- Splitpublic byte[] reserveInputSplit(InputType splitType, boolean isFirstSplit)
splitType
- Type of splitisFirstSplit
- Whether this is the first split input thread readsCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.