Package org.elasticsearch.index.mapper
Class NumberFieldMapperTests.NumberSyntheticSourceSupport
java.lang.Object
org.elasticsearch.index.mapper.NumberFieldMapperTests.NumberSyntheticSourceSupport
- All Implemented Interfaces:
MapperTestCase.SyntheticSourceSupport
- Enclosing class:
NumberFieldMapperTests
protected final class NumberFieldMapperTests.NumberSyntheticSourceSupport
extends Object
implements MapperTestCase.SyntheticSourceSupport
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
NumberSyntheticSourceSupport
(Function<Number, Number> round, boolean ignoreMalformed) -
Method Summary
Modifier and TypeMethodDescriptionexample
(int maxVals) Examples that should work when source is generated from doc values.Examples of mappings that should be rejected when source is configured to be loaded from doc values.boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.index.mapper.MapperTestCase.SyntheticSourceSupport
ignoreAbove
-
Constructor Details
-
NumberSyntheticSourceSupport
-
-
Method Details
-
preservesExactSource
public boolean preservesExactSource()- Specified by:
preservesExactSource
in interfaceMapperTestCase.SyntheticSourceSupport
- Returns:
- True if synthetic source support is implemented to exactly store the source without modifications.
-
example
Description copied from interface:MapperTestCase.SyntheticSourceSupport
Examples that should work when source is generated from doc values.- Specified by:
example
in interfaceMapperTestCase.SyntheticSourceSupport
-
invalidExample
Description copied from interface:MapperTestCase.SyntheticSourceSupport
Examples of mappings that should be rejected when source is configured to be loaded from doc values.- Specified by:
invalidExample
in interfaceMapperTestCase.SyntheticSourceSupport
- Throws:
IOException
-