|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cascading.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.
setTails(Pipe...)
.
Field Summary |
---|
Fields inherited from class cascading.pipe.Pipe |
---|
configDef, previous, stepConfigDef |
Constructor Summary | |
---|---|
SubAssembly()
|
Method Summary | |
---|---|
ConfigDef |
getConfigDef()
Returns a ConfigDef instance that allows for local properties to be set and made available via
a resulting FlowProcess instance when the pipe is invoked. |
String |
getName()
Get the name of this pipe. |
Pipe[] |
getPrevious()
Get all the upstream pipes this pipe is connected to. |
ConfigDef |
getStepConfigDef()
Returns a ConfigDef instance that allows for process level properties to be set and made available via
a resulting FlowProcess instance when the pipe is invoked. |
String[] |
getTailNames()
Method getTailNames returns the tailNames of this PipeAssembly object. |
Pipe[] |
getTails()
Method getTails returns all the tails of this PipeAssembly object. |
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 PipeAssembly instances. |
Methods inherited from class cascading.pipe.Pipe |
---|
equals, getHeads, getTrace, hasConfigDef, hashCode, hasStepConfigDef, isEquivalentTo, named, names, outgoingScopeFor, pipes, print, printInternal, resolveIncomingOperationArgumentFields, resolveIncomingOperationPassThroughFields, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SubAssembly()
Method Detail |
---|
protected 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
public static Pipe[] unwind(Pipe... tails)
tails
- of type Pipe[]
public ConfigDef getStepConfigDef()
Pipe
ConfigDef
instance that allows for process level properties to be set and made available via
a resulting FlowProcess
instance when the pipe is invoked.
Any properties set on the stepConfigDef will not show up in any Flow configuration, but will show up in
the current process FlowStep
(in Hadoop the MapReduce jobconf). Any value set in the
stepConfigDef will be overridden by the pipe local #getConfigDef
instance.
Use this method to tweak properties in the process step this pipe instance is planned into. In the case of the
Hadoop platform, when set on a GroupBy
instance, the number of reducers can be modified.
getStepConfigDef
in interface FlowElement
getStepConfigDef
in class Pipe
public ConfigDef getConfigDef()
Pipe
ConfigDef
instance that allows for local properties to be set and made available via
a resulting FlowProcess
instance when the pipe is invoked.
Any properties set on the configDef will not show up in any Flow
or
FlowStep
process level configuration, but will override any of those values as seen by the
current Pipe instance.
getConfigDef
in interface FlowElement
getConfigDef
in class Pipe
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |