org.apache.hadoop.mapred.gridmix
Class SleepJob.SleepSplit
java.lang.Object
org.apache.hadoop.mapreduce.InputSplit
org.apache.hadoop.mapred.gridmix.SleepJob.SleepSplit
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
- Enclosing class:
- SleepJob
public static class SleepJob.SleepSplit
- extends org.apache.hadoop.mapreduce.InputSplit
- implements org.apache.hadoop.io.Writable
| Methods inherited from class org.apache.hadoop.mapreduce.InputSplit |
getLocationInfo |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SleepJob.SleepSplit
public SleepJob.SleepSplit()
SleepJob.SleepSplit
public SleepJob.SleepSplit(int id,
long sleepDuration,
long[] reduceDurations,
int nMaps,
String[] locations)
write
public void write(DataOutput out)
throws IOException
- Specified by:
write in interface org.apache.hadoop.io.Writable
- Throws:
IOException
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields in interface org.apache.hadoop.io.Writable
- Throws:
IOException
getLength
public long getLength()
- Specified by:
getLength in class org.apache.hadoop.mapreduce.InputSplit
getId
public int getId()
getNumMaps
public int getNumMaps()
getReduceDurations
public long getReduceDurations(int i)
getLocations
public String[] getLocations()
- Specified by:
getLocations in class org.apache.hadoop.mapreduce.InputSplit
Copyright © 2014 Apache Software Foundation. All Rights Reserved.