cascading.pipe.assembly
Class Rename
java.lang.Object
cascading.pipe.Pipe
cascading.pipe.SubAssembly
cascading.pipe.assembly.Rename
- All Implemented Interfaces:
- FlowElement, Serializable
public class Rename
- extends SubAssembly
Class Rename is a SubAssembly
that will rename the fromFields to the names in toFields.
Note that if any input field names are not given, they will retain their names.
- See Also:
- Serialized Form
Constructor Summary |
Rename(Pipe previous,
Fields fromFields,
Fields toFields)
Rename the fromFields in the current Tuple to the given toFields. |
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 |
Rename
@ConstructorProperties(value={"previous","fromFields","toFields"})
public Rename(Pipe previous,
Fields fromFields,
Fields toFields)
- Rename the fromFields in the current Tuple to the given toFields.
incoming: {"first", "middle", "last"} -> from:{"middle"} to:{"initial"} -> outgoing:{"first", "last", "initial"}
- Parameters:
previous
- of type PipefromFields
- of type FieldstoFields
- of type Fields
Copyright © 2007-2014 Concurrent, Inc. All Rights Reserved.