public static class SleepJob.SleepSplit
extends org.apache.hadoop.mapreduce.InputSplit
implements org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
SleepSplit() |
SleepSplit(int id,
long sleepDuration,
long[] reduceDurations,
int nMaps,
String[] locations) |
| Modifier and Type | Method and Description |
|---|---|
int |
getId() |
long |
getLength() |
String[] |
getLocations() |
int |
getNumMaps() |
long |
getReduceDurations(int i) |
void |
readFields(DataInput in) |
void |
write(DataOutput out) |
public SleepSplit()
public SleepSplit(int id,
long sleepDuration,
long[] reduceDurations,
int nMaps,
String[] locations)
public void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic long getLength()
getLength in class org.apache.hadoop.mapreduce.InputSplitpublic int getId()
public int getNumMaps()
public long getReduceDurations(int i)
public String[] getLocations()
getLocations in class org.apache.hadoop.mapreduce.InputSplitCopyright © 2008–2023 Apache Software Foundation. All rights reserved.