public static class SleepJob.SleepSplit
extends org.apache.hadoop.mapreduce.InputSplit
implements org.apache.hadoop.io.Writable
Constructor and Description |
---|
SleepJob.SleepSplit() |
SleepJob.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 SleepJob.SleepSplit()
public SleepJob.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.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public long getLength()
getLength
in class org.apache.hadoop.mapreduce.InputSplit
public int getId()
public int getNumMaps()
public long getReduceDurations(int i)
public String[] getLocations()
getLocations
in class org.apache.hadoop.mapreduce.InputSplit
Copyright © 2018 Apache Software Foundation. All Rights Reserved.