Package org.elasticsearch.index.mapper
Class FieldTypeTestCase.Modifier
- java.lang.Object
-
- org.elasticsearch.index.mapper.FieldTypeTestCase.Modifier
-
- Enclosing class:
- FieldTypeTestCase
public abstract static class FieldTypeTestCase.Modifier extends java.lang.Object
Abstraction for mutating a property of a MappedFieldType
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
property
The name of the property that is being modified.boolean
updateable
True if this property is updateable, false otherwise.
-
Constructor Summary
Constructors Constructor Description Modifier(java.lang.String property, boolean updateable)
-
Method Summary
Modifier and Type Method Description abstract void
modify(MappedFieldType ft)
Modifies the propertyvoid
normalizeOther(MappedFieldType other)
Optional method to implement that allows the field type that will be compared to be modified, so that it does not have the default value for the property being modified.
-
-
-
Method Detail
-
modify
public abstract void modify(MappedFieldType ft)
Modifies the property
-
normalizeOther
public void normalizeOther(MappedFieldType other)
Optional method to implement that allows the field type that will be compared to be modified, so that it does not have the default value for the property being modified.
-
-