Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Class AbstractShapeGeometryFieldMapper<T>
java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.FieldMapper
org.elasticsearch.index.mapper.AbstractGeometryFieldMapper<T>
org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper<T>
- All Implemented Interfaces:
Iterable<Mapper>
,ToXContent
,ToXContentFragment
Base class for shape field mappers
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper
AbstractGeometryFieldMapper.AbstractGeometryFieldType<T>, AbstractGeometryFieldMapper.DefaultMalformedValueHandler, AbstractGeometryFieldMapper.MalformedValueHandler, AbstractGeometryFieldMapper.NoopMalformedValueHandler, AbstractGeometryFieldMapper.Parser<T>
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.FieldMapper
FieldMapper.Builder, FieldMapper.BuilderParams, FieldMapper.Conflicts, FieldMapper.CopyTo, FieldMapper.DimensionBuilder, FieldMapper.MergeValidator<T>, FieldMapper.MultiFields, FieldMapper.Parameter<T>, FieldMapper.Serializer<T>, FieldMapper.SerializerCheck<T>, FieldMapper.SyntheticSourceMode, FieldMapper.SyntheticSourceSupport, FieldMapper.TypeParser
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.Mapper
Mapper.SourceKeepMode
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Field Summary
FieldsFields inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper
DEPRECATION_LOGGER
Fields inherited from class org.elasticsearch.index.mapper.FieldMapper
builderParams, COERCE_SETTING, deprecationLogger, DOC_VALUES_SPARSE_INDEX, IGNORE_MALFORMED_SETTING, mappedFieldType
Fields inherited from class org.elasticsearch.index.mapper.Mapper
SYNTHETIC_SOURCE_KEEP_INDEX_SETTING, SYNTHETIC_SOURCE_KEEP_PARAM
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractShapeGeometryFieldMapper
(String simpleName, MappedFieldType mappedFieldType, FieldMapper.BuilderParams builderParams, Explicit<Boolean> ignoreMalformed, Explicit<Boolean> coerce, Explicit<Boolean> ignoreZValue, Explicit<Orientation> orientation, AbstractGeometryFieldMapper.Parser<T> parser) -
Method Summary
Modifier and TypeMethodDescriptionboolean
coerce()
static FieldMapper.Parameter
<Explicit<Boolean>> coerceParam
(Function<FieldMapper, Explicit<Boolean>> initializer, boolean coerceByDefault) static FieldMapper.Parameter
<Explicit<Orientation>> orientationParam
(Function<FieldMapper, Explicit<Orientation>> initializer) protected boolean
Whether this mapper can handle an object value during document parsing.Methods inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper
fieldType, ignoreMalformed, ignoreMalformedParam, ignoreZValue, ignoreZValueParam, index, onMalformedValue, parse, parseCreateField, parsesArrayValue
Methods inherited from class org.elasticsearch.index.mapper.FieldMapper
checkIncomingMergeType, contentType, copyTo, createTypeParserWithLegacySupport, doValidate, doXContentBody, executeScript, fullPath, getMergeBuilder, getTotalFieldsCount, hasScript, indexAnalyzers, indexScriptValues, iterator, merge, multiFields, multiFieldsIterator, notFromDynamicTemplates, notInMultiFields, sourceKeepMode, sourcePathUsedBy, syntheticFieldLoader, syntheticSourceSupport, toXContent, typeName, validate
Methods inherited from class org.elasticsearch.index.mapper.Mapper
freezeAndDeduplicateFieldType, internFieldName, leafName, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
coerce
-
orientation
-
-
Constructor Details
-
AbstractShapeGeometryFieldMapper
protected AbstractShapeGeometryFieldMapper(String simpleName, MappedFieldType mappedFieldType, FieldMapper.BuilderParams builderParams, Explicit<Boolean> ignoreMalformed, Explicit<Boolean> coerce, Explicit<Boolean> ignoreZValue, Explicit<Orientation> orientation, AbstractGeometryFieldMapper.Parser<T> parser)
-
-
Method Details
-
supportsParsingObject
protected boolean supportsParsingObject()Description copied from class:FieldMapper
Whether this mapper can handle an object value during document parsing. When the subobjects property is set to false, and we encounter an object while parsing we need a way to understand if its fieldMapper is able to parse an object. If that's the case we can provide the entire object to the FieldMapper otherwise its name becomes the part of the dotted field name of each internal value.- Overrides:
supportsParsingObject
in classAbstractGeometryFieldMapper<T>
-
coerceParam
public static FieldMapper.Parameter<Explicit<Boolean>> coerceParam(Function<FieldMapper, Explicit<Boolean>> initializer, boolean coerceByDefault) -
orientationParam
public static FieldMapper.Parameter<Explicit<Orientation>> orientationParam(Function<FieldMapper, Explicit<Orientation>> initializer) -
coerce
public boolean coerce() -
orientation
-