Class Rename

  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, previous, 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
getConfigDef, getName, getPrevious, getStepConfigDef, getTailNames, getTails, setTails, unwind
Methods inherited from class cascading.pipe.Pipe
equals, getHeads, getTrace, hasConfigDef, hashCode, hasStepConfigDef, isEquivalentTo, named, names, outgoingScopeFor, pipes, print, printInternal, resolveIncomingOperationArgumentFields, resolveIncomingOperationPassThroughFields, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Detail


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"}

previous - of type Pipe
fromFields - of type Fields
toFields - of type Fields

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