org.apache.tez.runtime.library.shuffle.common
Class InputHost
java.lang.Object
org.apache.tez.runtime.library.shuffle.common.InputHost
public class InputHost
- extends Object
Represents a Host with respect to the MapReduce ShuffleHandler.
srcPhysicalIndex / partition is part of this since that only knows how to
serve ine partition at a time.
|
Constructor Summary |
InputHost(String hostName,
int port,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
int srcPhysicalIndex)
|
InputHost
public InputHost(String hostName,
int port,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
int srcPhysicalIndex)
getHost
public String getHost()
getPort
public int getPort()
getSrcPhysicalIndex
public int getSrcPhysicalIndex()
getNumPendingInputs
public int getNumPendingInputs()
addKnownInput
public void addKnownInput(InputAttemptIdentifier srcAttempt)
clearAndGetPendingInputs
public List<InputAttemptIdentifier> clearAndGetPendingInputs()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
toDetailedString
public String toDetailedString()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2014 Apache Software Foundation. All rights reserved.