public class RemoveDuplicateFields extends Transformer
FieldPath).| Modifier and Type | Class and Description |
|---|---|
static class |
RemoveDuplicateFields.DuplicateFieldsPolicy |
static interface |
RemoveDuplicateFields.IDuplicateFieldsPolicy |
static class |
RemoveDuplicateFields.RenamePolicy
An alternative to
RemoveDuplicateFields.DuplicateFieldsPolicy.RENAME that uses a configurable separator between
the original field name and the numeric suffix, preventing ambiguous names like 20101 when
the field name itself ends in digits (e.g. |
| Constructor and Description |
|---|
RemoveDuplicateFields(RemoveDuplicateFields.IDuplicateFieldsPolicy duplicateFieldsPolicy,
Set<String> fieldNames) |
RemoveDuplicateFields(RemoveDuplicateFields.IDuplicateFieldsPolicy duplicateFieldsPolicy,
String... fieldNames) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getFields() |
String |
toString() |
boolean |
transform(Record record)
Applies this transformer to a record on its way through a
TransformingReader or TransformingWriter. |
addExceptionProperties, close, geEndpoint, getEndpoint, getReader, getWriter, of, open, setWriterpublic RemoveDuplicateFields(RemoveDuplicateFields.IDuplicateFieldsPolicy duplicateFieldsPolicy, Set<String> fieldNames)
public RemoveDuplicateFields(RemoveDuplicateFields.IDuplicateFieldsPolicy duplicateFieldsPolicy, String... fieldNames)
public boolean transform(Record record) throws Throwable
TransformerTransformingReader or TransformingWriter.
Contract for subclasses (see also docs/authoring/Transformer.md):
record in place as needed.true to keep the record in the pipeline.false to drop the record (the host routes it to a discard
writer if one is configured, otherwise it disappears).incrementRecordCount() on the host endpoint; the host handles it.transform in class TransformerThrowableCopyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.