|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcascading.pipe.Pipe
cascading.pipe.SubAssembly
public abstract class SubAssembly
Subclasses of SubAssembly encapsulate complex assemblies of Pipe
s so they my be reused in the same manner
a Pipe is used.
setPrevious(Pipe...)
. This
allows the current SubAssembly to become the parent of any Pipe instances between the previous and the tails,
exclusive of the previous, and inclusive of the tails.
Subsequently all tail Pipes must be set via the setTails(Pipe...)
method.
Note if the SubAssembly represents a split in the pipeline process,
all the 'tails' of the assembly must be passed to setTails(Pipe...)
. It is up the the developer to
provide any other access to the tails so they may be chained into any subsequent Pipes.
Any ConfigDef
values on this SubAssembly will be honored by child Pipe instances via the
Pipe.getParent()
back link described above.
Field Summary |
---|
Fields inherited from class cascading.pipe.Pipe |
---|
configDef, name, parent, stepConfigDef |
Constructor Summary | |
---|---|
protected |
SubAssembly()
|
protected |
SubAssembly(Pipe... previous)
|
protected |
SubAssembly(String name,
Pipe[] previous)
|
Method Summary | |
---|---|
String |
getName()
Get the name of this pipe. |
Pipe[] |
getPrevious()
Get all the upstream pipes this pipe is connected to. |
String[] |
getTailNames()
Method getTailNames returns the tailNames of this SubAssembly object. |
Pipe[] |
getTails()
Method getTails returns all the tails of this SubAssembly object. |
protected void |
setPrevious(Pipe... previous)
Must be called by subclasses to set the start end points of the assembly the subclass represents. |
protected void |
setTails(Pipe... tails)
Must be called by subclasses to set the final end points of the assembly the subclass represents. |
static Pipe[] |
unwind(Pipe... tails)
Is responsible for unwinding nested SubAssembly instances. |
Methods inherited from class cascading.pipe.Pipe |
---|
equals, getConfigDef, getHeads, getParent, getStepConfigDef, getTrace, hasConfigDef, hashCode, hasStepConfigDef, id, isEquivalentTo, named, names, outgoingScopeFor, pipes, print, printInternal, resolveIncomingOperationArgumentFields, resolveIncomingOperationPassThroughFields, setParent, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected SubAssembly()
protected SubAssembly(Pipe... previous)
protected SubAssembly(String name, Pipe[] previous)
Method Detail |
---|
public static Pipe[] unwind(Pipe... tails)
tails
- of type Pipe[]
protected void setPrevious(Pipe... previous)
previous
- of type Pipeprotected void setTails(Pipe... tails)
tails
- of type Pipepublic Pipe[] getTails()
setTails(Pipe...)
.
public String[] getTailNames()
public String getName()
Pipe
getName
in class Pipe
public Pipe[] getPrevious()
Pipe
getPrevious
in class Pipe
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |