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
ConstructorsModifierConstructorDescriptionprotectedNumberSyntheticSourceSupport(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.
-
Constructor Details
-
NumberSyntheticSourceSupport
-
-
Method Details
-
example
Description copied from interface:MapperTestCase.SyntheticSourceSupportExamples that should work when source is generated from doc values.- Specified by:
examplein interfaceMapperTestCase.SyntheticSourceSupport
-
invalidExample
Description copied from interface:MapperTestCase.SyntheticSourceSupportExamples of mappings that should be rejected when source is configured to be loaded from doc values.- Specified by:
invalidExamplein interfaceMapperTestCase.SyntheticSourceSupport- Throws:
IOException
-