|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapred.SpillRecord
@InterfaceAudience.LimitedPrivate(value="MapReduce") @InterfaceStability.Unstable public class SpillRecord
Constructor Summary | |
---|---|
SpillRecord(int numPartitions)
|
|
SpillRecord(org.apache.hadoop.fs.Path indexFileName,
JobConf job,
java.util.zip.Checksum crc,
java.lang.String expectedIndexOwner)
|
|
SpillRecord(org.apache.hadoop.fs.Path indexFileName,
JobConf job,
java.lang.String expectedIndexOwner)
|
Method Summary | |
---|---|
IndexRecord |
getIndex(int partition)
Get spill offsets for given partition. |
void |
putIndex(IndexRecord rec,
int partition)
Set spill offsets for given partition. |
int |
size()
Return number of IndexRecord entries in this spill. |
void |
writeToFile(org.apache.hadoop.fs.Path loc,
JobConf job)
Write this spill record to the location provided. |
void |
writeToFile(org.apache.hadoop.fs.Path loc,
JobConf job,
java.util.zip.Checksum crc)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpillRecord(int numPartitions)
public SpillRecord(org.apache.hadoop.fs.Path indexFileName, JobConf job, java.lang.String expectedIndexOwner) throws java.io.IOException
java.io.IOException
public SpillRecord(org.apache.hadoop.fs.Path indexFileName, JobConf job, java.util.zip.Checksum crc, java.lang.String expectedIndexOwner) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public int size()
public IndexRecord getIndex(int partition)
public void putIndex(IndexRecord rec, int partition)
public void writeToFile(org.apache.hadoop.fs.Path loc, JobConf job) throws java.io.IOException
java.io.IOException
public void writeToFile(org.apache.hadoop.fs.Path loc, JobConf job, java.util.zip.Checksum crc) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |