Package org.elasticsearch.index.mapper
Class NumberFieldMapperTests.NumberSyntheticSourceSupportForKeepTests
java.lang.Object
org.elasticsearch.index.mapper.NumberFieldMapperTests.NumberSyntheticSourceSupport
org.elasticsearch.index.mapper.NumberFieldMapperTests.NumberSyntheticSourceSupportForKeepTests
- All Implemented Interfaces:
MapperTestCase.SyntheticSourceSupport
- Enclosing class:
NumberFieldMapperTests
protected final class NumberFieldMapperTests.NumberSyntheticSourceSupportForKeepTests
extends NumberFieldMapperTests.NumberSyntheticSourceSupport
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNumberSyntheticSourceSupportForKeepTests(Function<Number, Number> round, boolean ignoreMalformed, Mapper.SourceKeepMode sourceKeepMode) -
Method Summary
Modifier and TypeMethodDescriptionexample(int maxVals) Examples that should work when source is generated from doc values.booleanMethods inherited from class org.elasticsearch.index.mapper.NumberFieldMapperTests.NumberSyntheticSourceSupport
invalidExampleMethods 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
-
NumberSyntheticSourceSupportForKeepTests
protected NumberSyntheticSourceSupportForKeepTests(Function<Number, Number> round, boolean ignoreMalformed, Mapper.SourceKeepMode sourceKeepMode)
-
-
Method Details
-
preservesExactSource
public boolean preservesExactSource()- Specified by:
preservesExactSourcein interfaceMapperTestCase.SyntheticSourceSupport- Overrides:
preservesExactSourcein classNumberFieldMapperTests.NumberSyntheticSourceSupport- 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- Overrides:
examplein classNumberFieldMapperTests.NumberSyntheticSourceSupport
-