org.apache.nutch.mapReduce
Class MapOutputLocation

java.lang.Object
  extended byorg.apache.nutch.mapReduce.MapOutputLocation
All Implemented Interfaces:
Writable

public class MapOutputLocation
extends Object
implements Writable

The location of a map output file, as passed to a reduce task via the InterTrackerProtocol.


Constructor Summary
MapOutputLocation()
          RPC constructor
MapOutputLocation(String mapTaskId, String host, int port)
          Construct a location.
 
Method Summary
 String getHost()
          The host the task completed on.
 String getMapTaskId()
          The map task id.
 int getPort()
          The port listening for MapOutputProtocol connections.
 void readFields(DataInput in)
          Reads the fields of this object from in.
 void write(DataOutput out)
          Writes the fields of this object to out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapOutputLocation

public MapOutputLocation()
RPC constructor


MapOutputLocation

public MapOutputLocation(String mapTaskId,
                         String host,
                         int port)
Construct a location.

Method Detail

getMapTaskId

public String getMapTaskId()
The map task id.


getHost

public String getHost()
The host the task completed on.


getPort

public int getPort()
The port listening for MapOutputProtocol connections.


write

public void write(DataOutput out)
           throws IOException
Description copied from interface: Writable
Writes the fields of this object to out.

Specified by:
write in interface Writable
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Description copied from interface: Writable
Reads the fields of this object from in. For efficiency, implementations should attempt to re-use storage in the existing object where possible.

Specified by:
readFields in interface Writable
Throws:
IOException


Copyright © 2006 The Apache Software Foundation