Package org.elasticsearch.index.mapper
Class NumberFieldMapperTests.NumberSyntheticSourceSupport
java.lang.Object
org.elasticsearch.index.mapper.NumberFieldMapperTests.NumberSyntheticSourceSupport
- All Implemented Interfaces:
MapperTestCase.SyntheticSourceSupport
- Direct Known Subclasses:
NumberFieldMapperTests.NumberSyntheticSourceSupportForKeepTests
- Enclosing class:
NumberFieldMapperTests
protected class NumberFieldMapperTests.NumberSyntheticSourceSupport
extends Object
implements MapperTestCase.SyntheticSourceSupport
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNumberSyntheticSourceSupport(Function<Number, Number> round, boolean ignoreMalformed) protectedNumberSyntheticSourceSupport(Function<Number, Number> round, boolean ignoreMalformed, boolean isColumnar) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexample(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.booleanbooleanMethods 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
-
NumberSyntheticSourceSupport
-
-
Method Details
-
isColumnar
public boolean isColumnar()- Specified by:
isColumnarin interfaceMapperTestCase.SyntheticSourceSupport- Returns:
- true when the index mode for this test is strictly columnar, meaning multi-value fields preserve insertion order and duplicates.
-
preservesExactSource
public boolean preservesExactSource()- Specified by:
preservesExactSourcein interfaceMapperTestCase.SyntheticSourceSupport- Returns:
- True if synthetic source support is implemented to exactly store the source without modifications.
-
enforcesSingleValue
public boolean enforcesSingleValue()- Specified by:
enforcesSingleValuein interfaceMapperTestCase.SyntheticSourceSupport- Returns:
- true when the field enforces single-value semantics (ie.
doc_values.multi_value: false). In such cases, a doc with more than one value for the field is rejected at parse time andMapperTestCase.SyntheticSourceSupport.example(int)must only produce single-valued documents.
-
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
-