cascading.pipe.assembly
Class Coerce
java.lang.Object
cascading.pipe.Pipe
cascading.pipe.SubAssembly
cascading.pipe.assembly.Coerce
- All Implemented Interfaces:
- FlowElement, Serializable
public class Coerce
- extends SubAssembly
Class Coerce is a SubAssembly
that will coerce all incoming Tuple
values to
the given types.
Coerce encapsulates the Identity
function.
- See Also:
SubAssembly
,
Identity
,
Serialized Form
Constructor Summary |
Coerce(Pipe previous,
Class... types)
Constructor Coerce creates a new Coerce instance that will coerce all input Tuple values. |
Coerce(Pipe previous,
Fields coerceFields,
Class... types)
Constructor Coerce creates a new Coerce instance that will only coerce the given coerceFields Tuple values. |
Methods inherited from class cascading.pipe.Pipe |
equals, getConfigDef, getHeads, getStepConfigDef, getTrace, hasConfigDef, hashCode, hasStepConfigDef, isEquivalentTo, named, names, outgoingScopeFor, pipes, print, printInternal, resolveFields, resolveIncomingOperationFields, toString |
Coerce
@ConstructorProperties(value={"previous","types"})
public Coerce(Pipe previous,
Class... types)
- Constructor Coerce creates a new Coerce instance that will coerce all input Tuple values.
- Parameters:
previous
- of type Pipetypes
- of type Class...
Coerce
@ConstructorProperties(value={"previous","coerceFields","types"})
public Coerce(Pipe previous,
Fields coerceFields,
Class... types)
- Constructor Coerce creates a new Coerce instance that will only coerce the given coerceFields Tuple values.
Note the resulting output Tuple will contain all the original incoming Fields.
- Parameters:
previous
- of type PipecoerceFields
- of type Fieldstypes
- of type Class...
Copyright © 2007-2012 Concurrent, Inc. All Rights Reserved.