public class RenameField extends Transformer
FieldPath for supported field name expressions.| Constructor and Description | 
|---|
| RenameField(FieldPath oldFieldPath,
           String newName)Creates a new transformer to rename fields in a dataset using a  FieldPathas the source and a new name as the target. | 
| RenameField(String oldFieldPathExpression,
           String newName)Creates a new transformer to rename fields in a dataset using an expression as the source and a new name as the target. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getNewName() | 
| FieldPath | getOldFieldPath() | 
| String | getOldFieldPathAsString() | 
| String | getOldName()Deprecated. 
 use  getOldFieldPathAsString()instead. | 
| boolean | isAllowDuplicateFieldNames() | 
| RenameField | setAllowDuplicateFieldNames(boolean allowDuplicateFieldNames) | 
| String | toString() | 
| boolean | transform(Record record) | 
addExceptionProperties, close, geEndpoint, getEndpoint, getReader, getWriter, open, setWriterpublic RenameField(String oldFieldPathExpression, String newName)
FieldPath for supported field name expressions.oldFieldPathExpression - newName - public RenameField(FieldPath oldFieldPath, String newName)
FieldPath as the source and a new name as the target.  This transformer does not change the nested location of the field, only its name.
 
 See FieldPath for supported field name expressions.oldFieldPath - newName - public FieldPath getOldFieldPath()
public String getOldFieldPathAsString()
@Deprecated public String getOldName()
getOldFieldPathAsString() instead.public String getNewName()
public boolean isAllowDuplicateFieldNames()
public RenameField setAllowDuplicateFieldNames(boolean allowDuplicateFieldNames)
public boolean transform(Record record) throws Throwable
transform in class TransformerThrowableCopyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.