|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcascading.flow.FlowStep
public class FlowStep
Class FlowStep is an internal representation of a given Job to be executed on a remote cluster. During planning, pipe assemblies are broken down into "steps" and encapsulated in this class.
FlowSteps are submitted in order of dependency. If two or more steps do not share the same dependencies and all can be scheduled simultaneously, thegetSubmitPriority()
value determines the order in which
all steps will be submitted for execution. The default submit priority is 5.
This class is for internal use, there are no stable public methods.
Field Summary | |
---|---|
protected Tap |
sink
Field sink |
Constructor Summary | |
---|---|
protected |
FlowStep(String name,
int id)
|
Method Summary | |
---|---|
void |
clean(JobConf jobConf)
Method clean removes any temporary files used by this FlowStep instance. |
boolean |
containsPipeNamed(String pipeName)
|
protected FlowStepJob |
createFlowStepJob(JobConf parentConf)
|
boolean |
equals(Object object)
|
Collection<Operation> |
getAllOperations()
|
Group |
getGroup()
|
int |
getID()
Method getId returns the id of this FlowStep object. |
protected JobConf |
getJobConf()
|
protected JobConf |
getJobConf(JobConf parentConf)
|
Tap |
getMapperTrap(String name)
|
Map<String,Tap> |
getMapperTraps()
|
String |
getName()
Method getName returns the name of this FlowStep object. |
FlowElement |
getNextFlowElement(Scope scope)
|
Scope |
getNextScope(FlowElement flowElement)
Method getNextScope returns the next Scope instance in the graph. |
Set<Scope> |
getNextScopes(FlowElement flowElement)
|
String |
getParentFlowName()
Method getParentFlowName returns the parentFlowName of this FlowStep object. |
Set<Scope> |
getPreviousScopes(FlowElement flowElement)
Method getPreviousScopes returns the previous Scope instances. |
Map<Object,Object> |
getProperties()
Method getProperties returns the properties of this FlowStep object. |
Tap |
getReducerTrap(String name)
|
Map<String,Tap> |
getReducerTraps()
|
String |
getSourceName(Tap source)
|
String |
getStepName()
Method getStepName returns the stepName of this FlowStep object. |
int |
getSubmitPriority()
Method getSubmitPriority returns the submitPriority of this FlowStep object. |
int |
hashCode()
|
boolean |
hasProperties()
Method hasProperties returns true if there are properties associated with this FlowStep. |
protected boolean |
isDebugEnabled()
|
protected boolean |
isInfoEnabled()
|
protected void |
logDebug(String message)
|
protected void |
logError(String message,
Throwable throwable)
|
protected void |
logInfo(String message)
|
protected void |
logWarn(String message)
|
protected void |
logWarn(String message,
Throwable throwable)
|
TupleEntryIterator |
openSinkForRead(JobConf conf)
|
TapIterator |
openSourceForRead(JobConf conf)
|
protected void |
setGroup(Group group)
|
void |
setName(String name)
|
void |
setParentFlowName(String parentFlowName)
Method setParentFlowName sets the parentFlowName of this FlowStep object. |
void |
setProperties(Map<Object,Object> properties)
Method setProperties sets the properties of this FlowStep object. |
void |
setSubmitPriority(int submitPriority)
Method setSubmitPriority sets the submitPriority of this FlowStep object. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Tap sink
Constructor Detail |
---|
protected FlowStep(String name, int id)
Method Detail |
---|
public int getID()
public String getName()
public void setName(String name)
public String getParentFlowName()
public void setParentFlowName(String parentFlowName)
parentFlowName
- the parentFlowName of this FlowStep object.public String getStepName()
public int getSubmitPriority()
public void setSubmitPriority(int submitPriority)
submitPriority
- the submitPriority of this FlowStep object.public Group getGroup()
protected void setGroup(Group group)
public Map<String,Tap> getMapperTraps()
public Map<String,Tap> getReducerTraps()
public Map<Object,Object> getProperties()
public void setProperties(Map<Object,Object> properties)
properties
- the properties of this FlowStep object.public boolean hasProperties()
true
if there are properties associated with this FlowStep.
protected JobConf getJobConf() throws IOException
IOException
protected JobConf getJobConf(JobConf parentConf) throws IOException
IOException
public TapIterator openSourceForRead(JobConf conf) throws IOException
IOException
public TupleEntryIterator openSinkForRead(JobConf conf) throws IOException
IOException
public Tap getMapperTrap(String name)
public Tap getReducerTrap(String name)
public Set<Scope> getPreviousScopes(FlowElement flowElement)
flowElement
- of type FlowElement
public Scope getNextScope(FlowElement flowElement)
flowElement
- of type FlowElement
public Set<Scope> getNextScopes(FlowElement flowElement)
public FlowElement getNextFlowElement(Scope scope)
public String getSourceName(Tap source)
public Collection<Operation> getAllOperations()
public boolean containsPipeNamed(String pipeName)
public void clean(JobConf jobConf)
jobConf
- of type JobConfpublic boolean equals(Object object)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
protected FlowStepJob createFlowStepJob(JobConf parentConf) throws IOException
IOException
protected final boolean isInfoEnabled()
protected final boolean isDebugEnabled()
protected void logDebug(String message)
protected void logInfo(String message)
protected void logWarn(String message)
protected void logWarn(String message, Throwable throwable)
protected void logError(String message, Throwable throwable)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |