|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcascading.flow.planner.FlowPlanner<F,Config>
public abstract class FlowPlanner<F extends Flow,Config>
Class FlowPlanner is the base class for all planner implementations.
Field Summary | |
---|---|
protected AssertionLevel |
assertionLevel
Field assertionLevel |
protected String |
checkpointRootPath
|
protected DebugLevel |
debugLevel
Field debugLevel |
protected Map<Object,Object> |
properties
Field properties |
Constructor Summary | |
---|---|
FlowPlanner()
|
Method Summary | |
---|---|
abstract F |
buildFlow(FlowDef flowDef)
Method buildFlow renders the actual Flow instance. |
protected ElementGraph |
createElementGraph(FlowDef flowDef,
Pipe[] flowTails)
|
protected abstract Flow |
createFlow(FlowDef flowDef)
|
protected void |
failOnGroupEverySplit(ElementGraph elementGraph)
|
protected void |
failOnLoneGroupAssertion(ElementGraph elementGraph)
Verifies that there are not only GroupAssertions following any given Group instance. |
protected void |
failOnMissingGroup(ElementGraph elementGraph)
|
protected void |
failOnMisusedBuffer(ElementGraph elementGraph)
|
abstract Config |
getConfig()
|
abstract PlatformInfo |
getPlatformInfo()
|
Map<Object,Object> |
getProperties()
|
protected PlannerException |
handleExceptionDuringPlanning(Exception exception,
ElementGraph elementGraph)
|
protected void |
handleJobPartitioning(ElementGraph elementGraph)
Inserts a temporary Tap between logical MR jobs. |
protected void |
handleJoins(ElementGraph elementGraph)
Prevent leftmost sources from sourcing a downstream join on the rightmost side intra-task by inserting a temp tap between the left-sourced join and right-sourced join. |
protected void |
handleNonSafeOperations(ElementGraph elementGraph)
|
void |
initialize(FlowConnector flowConnector,
Map<Object,Object> properties)
|
protected void |
insertTempTapAfter(ElementGraph graph,
Pipe pipe)
Method insertTapAfter ... |
protected Tap |
makeTempTap(String name)
|
protected abstract Tap |
makeTempTap(String prefix,
String name)
|
protected Pipe[] |
resolveAssemblyPlanners(FlowDef flowDef,
Flow flow,
Pipe[] pipes)
|
protected Pipe[] |
resolveTails(FlowDef flowDef,
Flow<Config> flow)
|
protected void |
verifyAllTaps(FlowDef flowDef)
|
protected void |
verifyAssembly(FlowDef flowDef,
Pipe[] tails)
|
protected void |
verifyCheckpoints(FlowDef flowDef,
Pipe[] flowTails)
|
protected void |
verifyPipeAssemblyEndPoints(FlowDef flowDef,
Pipe[] flowTails)
Method verifyEndPoints verifies there aren't dupe names in heads or tails. |
protected void |
verifySourceNotSinks(Map<String,Tap> sources,
Map<String,Tap> sinks)
|
protected void |
verifyTaps(Map<String,Tap> taps,
boolean areSources,
boolean mayNotBeEmpty)
Method verifyTaps ... |
protected void |
verifyTraps(FlowDef flowDef,
Pipe[] flowTails)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<Object,Object> properties
protected String checkpointRootPath
protected AssertionLevel assertionLevel
protected DebugLevel debugLevel
Constructor Detail |
---|
public FlowPlanner()
Method Detail |
---|
public Map<Object,Object> getProperties()
public abstract Config getConfig()
public abstract PlatformInfo getPlatformInfo()
public void initialize(FlowConnector flowConnector, Map<Object,Object> properties)
protected abstract Flow createFlow(FlowDef flowDef)
public abstract F buildFlow(FlowDef flowDef)
flowDef
-
protected Pipe[] resolveTails(FlowDef flowDef, Flow<Config> flow)
protected Pipe[] resolveAssemblyPlanners(FlowDef flowDef, Flow flow, Pipe[] pipes)
protected void verifyAssembly(FlowDef flowDef, Pipe[] tails)
protected void verifyAllTaps(FlowDef flowDef)
protected ElementGraph createElementGraph(FlowDef flowDef, Pipe[] flowTails)
protected void verifySourceNotSinks(Map<String,Tap> sources, Map<String,Tap> sinks)
protected void verifyTaps(Map<String,Tap> taps, boolean areSources, boolean mayNotBeEmpty)
taps
- of type MapareSources
- of type booleanmayNotBeEmpty
- of type booleanprotected void verifyPipeAssemblyEndPoints(FlowDef flowDef, Pipe[] flowTails)
protected void verifyTraps(FlowDef flowDef, Pipe[] flowTails)
protected void verifyCheckpoints(FlowDef flowDef, Pipe[] flowTails)
protected void failOnLoneGroupAssertion(ElementGraph elementGraph)
protected void failOnMissingGroup(ElementGraph elementGraph)
protected void failOnMisusedBuffer(ElementGraph elementGraph)
protected void failOnGroupEverySplit(ElementGraph elementGraph)
protected PlannerException handleExceptionDuringPlanning(Exception exception, ElementGraph elementGraph)
protected void handleNonSafeOperations(ElementGraph elementGraph)
protected void insertTempTapAfter(ElementGraph graph, Pipe pipe)
graph
- of type PipeGraphpipe
- of type Pipeprotected Tap makeTempTap(String name)
protected abstract Tap makeTempTap(String prefix, String name)
protected void handleJobPartitioning(ElementGraph elementGraph)
elementGraph
- of type PipeGraphprotected void handleJoins(ElementGraph elementGraph)
elementGraph
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |