Field Order
The Field Order processor orders fields in a map or list-map field and outputs the fields into a list-map or list root field.
Use the Field Order processor for the following reasons:
- Order the fields in a map field
- Fields in a map field have no defined order. Use the Field Order processor to specify the order of the fields and then output the fields to either the list-map or list root field which both retain field order.
- Reorder the fields in a list-map field
- Fields in a list-map field have a defined order. Use the Field Order processor when you need to reorder the fields, and then output the fields to the list-map root field.
When you configure the Field Order processor, you define the order of the fields. You specify whether to output the ordered fields to a list-map or list root field.
You configure how the processor handles missing or extra fields in the record. You can also list any fields that you want the processor to discard from the record.
Missing and Extra Fields
When you configure the Field Order processor, you specify the list of fields to order. An incoming record might be missing one of those fields or it might have some extra fields. You configure how the processor handles any missing or extra fields.
The Field Order processor can encounter the following types of fields in each record:
- Missing fields
- Missing fields are fields that you specified in the ordered list but that do not exist in the record. For example, you list these fields in the following order: FirstName, LastName, Age. However, an incoming record doesn't include the Age field.
- Extra fields
- Extra fields are fields that you did not specify in the ordered list but that do exist in the record. For example, you list these fields in the following order: FirstName, LastName, Age. However, an incoming record includes a MiddleName field.
Configuring a Field Order Processor
Configure a Field Order processor to order fields in a map or list-map field.