Class FieldAttribute

All Implemented Interfaces:
NamedWriteable, Writeable, Resolvable

public class FieldAttribute extends TypedAttribute
Attribute for an ES field. This class offers: - name - the name of the attribute, but not necessarily of the field. - The raw EsField representing the field; for parent.child.grandchild this is just grandchild. - parentName - the full path to the immediate parent of the field, e.g. parent.child (without .grandchild) To adequately represent e.g. union types, the name of the attribute can be altered because we may have multiple synthetic field attributes that really belong to the same underlying field. For instance, if a multi-typed field is used both as field::string and field::ip, we'll generate 2 field attributes called $$field$converted_to$keyword and $$field$converted_to$ip which still refer to the same underlying index field.