cascading.pipe.assembly
Class Rename

java.lang.Object
  extended by cascading.pipe.Pipe
      extended by cascading.pipe.SubAssembly
          extended by 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

Field Summary
 
Fields inherited from class cascading.pipe.Pipe
configDef, name, parent, stepConfigDef
 
Constructor Summary
Rename(Pipe previous, Fields fromFields, Fields toFields)
          Rename the fromFields in the current Tuple to the given toFields.
 
Method Summary
 
Methods inherited from class cascading.pipe.SubAssembly
getName, getPrevious, getTailNames, getTails, setPrevious, setTails, unwind
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Pipe
fromFields - of type Fields
toFields - of type Fields


Copyright © 2007-2014 Concurrent, Inc. All Rights Reserved.