is compatible with the Properties
class, so properties can be loaded at
runtime from a configuration file.
By default, all Assertion
s are planned into the resulting Flow instance. This can be
changed for a given Flow by calling FlowDef.setAssertionLevel(cascading.operation.AssertionLevel)
or globally
via FlowConnectorProps.setAssertionLevel(cascading.operation.AssertionLevel)
.
Also by default, all Debug
s are planned into the resulting Flow instance. This can be
changed for a given flow by calling FlowDef.setDebugLevel(cascading.operation.DebugLevel)
or globally via
FlowConnectorProps.setDebugLevel(cascading.operation.DebugLevel)
.
See Also: cascading.flow.local.LocalFlowConnector
,
cascading.flow.hadoop.HadoopFlowConnector
Method Summary
Flow
connect (FlowDef flowDef)
Flow
connect (Map <String ,Tap > sources,
Map <String ,Tap > sinks,
Pipe ... tails)
Method connect links the named sources and sinks to the given pipe assembly.
Flow
connect (Map <String ,Tap > sources,
Tap sink,
Pipe tail)
Method connect links the named source Taps and sink Tap to the given pipe assembly.
Flow
connect (String name,
Map <String ,Tap > sources,
Map <String ,Tap > sinks,
Map <String ,Tap > traps,
Pipe ... tails)
Method connect links the named sources, sinks and traps to the given pipe assembly.
Flow
connect (String name,
Map <String ,Tap > sources,
Map <String ,Tap > sinks,
Pipe ... tails)
Method connect links the named sources and sinks to the given pipe assembly.
Flow
connect (String name,
Map <String ,Tap > sources,
Tap sink,
Map <String ,Tap > traps,
Pipe tail)
Method connect links the named source and trap Taps and sink Tap to the given pipe assembly.
Flow
connect (String name,
Map <String ,Tap > sources,
Tap sink,
Pipe tail)
Method connect links the named source Taps and sink Tap to the given pipe assembly.
Flow
connect (String name,
Tap source,
Map <String ,Tap > sinks,
Collection <Pipe > tails)
Method connect links the named source Taps and sink Tap to the given pipe assembly.
Flow
connect (String name,
Tap source,
Map <String ,Tap > sinks,
Pipe ... tails)
Method connect links the named source Taps and sink Tap to the given pipe assembly.
Flow
connect (String name,
Tap source,
Tap sink,
Map <String ,Tap > traps,
Pipe tail)
Method connect links the named trap Taps, source and sink Tap to the given pipe assembly.
Flow
connect (String name,
Tap source,
Tap sink,
Pipe tail)
Method connect links the given source and sink Taps to the given pipe assembly.
Flow
connect (String name,
Tap source,
Tap sink,
Tap trap,
Pipe tail)
Method connect links the given source, sink, and trap Taps to the given pipe assembly.
Flow
connect (Tap source,
Map <String ,Tap > sinks,
Collection <Pipe > tails)
Method connect links the named source Taps and sink Tap to the given pipe assembly.
Flow
connect (Tap source,
Map <String ,Tap > sinks,
Pipe ... tails)
Method connect links the named source Taps and sink Tap to the given pipe assembly.
Flow
connect (Tap source,
Tap sink,
Pipe tail)
Method connect links the given source and sink Taps to the given pipe assembly.
protected abstract FlowPlanner
createFlowPlanner ()
protected abstract Class <? extends Scheme >
getDefaultIntermediateSchemeClass ()
Class
getIntermediateSchemeClass (Map <Object ,Object > properties)
Method getIntermediateSchemeClass is used for debugging.
PlatformInfo
getPlatformInfo ()
Method getPlatformInfo returns an instance of PlatformInfo
for the underlying platform.
Map <Object ,Object >
getProperties ()
Method getProperties returns the properties of this FlowConnector object.
static void
setApplicationJarClass (Map <Object ,Object > properties,
Class type)
Deprecated.
static void
setApplicationJarPath (Map <Object ,Object > properties,
String path)
Deprecated.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
properties
protected Map <Object ,Object > properties
Field properties
FlowConnector
protected FlowConnector ()
FlowConnector
protected FlowConnector (Map <Object ,Object > properties)
getIntermediateSchemeClass
public Class getIntermediateSchemeClass (Map <Object ,Object > properties)
Method getIntermediateSchemeClass is used for debugging.
Parameters: properties
- of type Map
Returns: Class
setApplicationJarClass
@Deprecated
public static void setApplicationJarClass (Map <Object ,Object > properties,
Class type)
Deprecated.
This has moved to AppProps.setApplicationJarClass(java.util.Map, Class)
.
Parameters: properties
- type
-
setApplicationJarPath
@Deprecated
public static void setApplicationJarPath (Map <Object ,Object > properties,
String path)
Deprecated.
This has moved to AppProps.setApplicationJarPath(java.util.Map, String)
.
Parameters: properties
- path
-
getDefaultIntermediateSchemeClass
protected abstract Class <? extends Scheme > getDefaultIntermediateSchemeClass ()
getProperties
public Map <Object ,Object > getProperties ()
Method getProperties returns the properties of this FlowConnector object. The returned Map instance
is immutable to prevent changes to the underlying property values in this FlowConnector instance.
If a Properties
instance was passed to the constructor, the returned object will be a flattened
Map
instance.
Returns: the properties (type Map) of this FlowConnector object.
connect
public Flow connect (Tap source,
Tap sink,
Pipe tail)
Method connect links the given source and sink Taps to the given pipe assembly.
Parameters: source
- source Tap to bind to the head of the given tail Pipesink
- sink Tap to bind to the given tail Pipetail
- tail end of a pipe assembly
Returns: Flow
connect
public Flow connect (String name,
Tap source,
Tap sink,
Pipe tail)
Method connect links the given source and sink Taps to the given pipe assembly.
Parameters: name
- name to give the resulting Flowsource
- source Tap to bind to the head of the given tail Pipesink
- sink Tap to bind to the given tail Pipetail
- tail end of a pipe assembly
Returns: Flow
connect
public Flow connect (String name,
Tap source,
Tap sink,
Tap trap,
Pipe tail)
Method connect links the given source, sink, and trap Taps to the given pipe assembly. The given trap will
be linked to the assembly head along with the source.
Parameters: name
- name to give the resulting Flowsource
- source Tap to bind to the head of the given tail Pipesink
- sink Tap to bind to the given tail Pipetrap
- trap Tap to sink all failed Tuples intotail
- tail end of a pipe assembly
Returns: Flow
connect
public Flow connect (Map <String ,Tap > sources,
Tap sink,
Pipe tail)
Method connect links the named source Taps and sink Tap to the given pipe assembly.
Parameters: sources
- all head names and source Taps to bind to the heads of the given tail Pipesink
- sink Tap to bind to the given tail Pipetail
- tail end of a pipe assembly
Returns: Flow
connect
public Flow connect (String name,
Map <String ,Tap > sources,
Tap sink,
Pipe tail)
Method connect links the named source Taps and sink Tap to the given pipe assembly.
Parameters: name
- name to give the resulting Flowsources
- all head names and source Taps to bind to the heads of the given tail Pipesink
- sink Tap to bind to the given tail Pipetail
- tail end of a pipe assembly
Returns: Flow
connect
public Flow connect (String name,
Map <String ,Tap > sources,
Tap sink,
Map <String ,Tap > traps,
Pipe tail)
Method connect links the named source and trap Taps and sink Tap to the given pipe assembly.
Parameters: name
- name to give the resulting Flowsources
- all head names and source Taps to bind to the heads of the given tail Pipesink
- sink Tap to bind to the given tail Pipetraps
- all pipe names and trap Taps to sink all failed Tuples intotail
- tail end of a pipe assembly
Returns: Flow
connect
public Flow connect (String name,
Tap source,
Tap sink,
Map <String ,Tap > traps,
Pipe tail)
Method connect links the named trap Taps, source and sink Tap to the given pipe assembly.
Parameters: name
- name to give the resulting Flowsource
- source Tap to bind to the head of the given tail Pipesink
- sink Tap to bind to the given tail Pipetraps
- all pipe names and trap Taps to sink all failed Tuples intotail
- tail end of a pipe assembly
Returns: Flow
connect
public Flow connect (Tap source,
Map <String ,Tap > sinks,
Collection <Pipe > tails)
Method connect links the named source Taps and sink Tap to the given pipe assembly.
Since only once source Tap is given, it is assumed to be associated with the 'head' pipe.
So the head pipe does not need to be included as an argument.
Parameters: source
- source Tap to bind to the head of the given tail Pipessinks
- all tail names and sink Taps to bind to the given tail Pipestails
- all tail ends of a pipe assembly
Returns: Flow
connect
public Flow connect (String name,
Tap source,
Map <String ,Tap > sinks,
Collection <Pipe > tails)
Method connect links the named source Taps and sink Tap to the given pipe assembly.
Since only once source Tap is given, it is assumed to be associated with the 'head' pipe.
So the head pipe does not need to be included as an argument.
Parameters: name
- name to give the resulting Flowsource
- source Tap to bind to the head of the given tail Pipessinks
- all tail names and sink Taps to bind to the given tail Pipestails
- all tail ends of a pipe assembly
Returns: Flow
connect
public Flow connect (Tap source,
Map <String ,Tap > sinks,
Pipe ... tails)
Method connect links the named source Taps and sink Tap to the given pipe assembly.
Since only once source Tap is given, it is assumed to be associated with the 'head' pipe.
So the head pipe does not need to be included as an argument.
Parameters: source
- source Tap to bind to the head of the given tail Pipessinks
- all tail names and sink Taps to bind to the given tail Pipestails
- all tail ends of a pipe assembly
Returns: Flow
connect
public Flow connect (String name,
Tap source,
Map <String ,Tap > sinks,
Pipe ... tails)
Method connect links the named source Taps and sink Tap to the given pipe assembly.
Since only once source Tap is given, it is assumed to be associated with the 'head' pipe.
So the head pipe does not need to be included as an argument.
Parameters: name
- name to give the resulting Flowsource
- source Tap to bind to the head of the given tail Pipessinks
- all tail names and sink Taps to bind to the given tail Pipestails
- all tail ends of a pipe assembly
Returns: Flow
connect
public Flow connect (Map <String ,Tap > sources,
Map <String ,Tap > sinks,
Pipe ... tails)
Method connect links the named sources and sinks to the given pipe assembly.
Parameters: sources
- all head names and source Taps to bind to the heads of the given tail Pipessinks
- all tail names and sink Taps to bind to the given tail Pipestails
- all tail ends of a pipe assembly
Returns: Flow
connect
public Flow connect (String name,
Map <String ,Tap > sources,
Map <String ,Tap > sinks,
Pipe ... tails)
Method connect links the named sources and sinks to the given pipe assembly.
Parameters: name
- name to give the resulting Flowsources
- all head names and source Taps to bind to the heads of the given tail Pipessinks
- all tail names and sink Taps to bind to the given tail Pipestails
- all tail ends of a pipe assembly
Returns: Flow
connect
public Flow connect (String name,
Map <String ,Tap > sources,
Map <String ,Tap > sinks,
Map <String ,Tap > traps,
Pipe ... tails)
Method connect links the named sources, sinks and traps to the given pipe assembly.
Parameters: name
- name to give the resulting Flowsources
- all head names and source Taps to bind to the heads of the given tail Pipessinks
- all tail names and sink Taps to bind to the given tail Pipestraps
- all pipe names and trap Taps to sink all failed Tuples intotails
- all tail ends of a pipe assembly
Returns: Flow
connect
public Flow connect (FlowDef flowDef)
createFlowPlanner
protected abstract FlowPlanner createFlowPlanner ()
getPlatformInfo
public PlatformInfo getPlatformInfo ()
Method getPlatformInfo returns an instance of PlatformInfo
for the underlying platform.
Returns: of type PlatformInfo
Copyright © 2007-2014 Concurrent, Inc. All Rights Reserved.