public class FastRenameField extends Transformer
RenameField
that assumes
1) a flat table structure (no nested fields or arrays),
2) columns are always in the same position from row to row
3) no missing fields (nulls field values are okay), and
4) the target name does not already exist (otherwise there will be two fields with the same name).Constructor and Description |
---|
FastRenameField(Integer oldIndex,
String newName) |
FastRenameField(String oldName,
String newName) |
Modifier and Type | Method and Description |
---|---|
String |
getNewName() |
Integer |
getOldIndex() |
String |
getOldName() |
protected void |
open()
Called by
TransformingReader or TransformingWriter when their open() method is called (before reading or writing starts). |
String |
toString() |
boolean |
transform(Record record) |
addExceptionProperties, close, geEndpoint, getEndpoint, getReader, getWriter, setWriter
public String getOldName()
public Integer getOldIndex()
public String getNewName()
protected void open()
Transformer
TransformingReader
or TransformingWriter
when their open()
method is called (before reading or writing starts).open
in class Transformer
public boolean transform(Record record) throws Throwable
transform
in class Transformer
Throwable
Copyright (c) 2006-2023 North Concepts Inc. All Rights Reserved.