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.booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.index.mapper.MapperTestCase.SyntheticSourceSupport
ignoreAbove
-
Constructor Details
-
NumberSyntheticSourceSupport
-
-
Method Details
-
preservesExactSource
public boolean preservesExactSource()- Specified by:
preservesExactSourcein interfaceMapperTestCase.SyntheticSourceSupport- Returns:
- True if synthetic source support is implemented to exactly store the source without modifications.
-
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
-