Package org.elasticsearch.index.mapper
Class AbstractShapeGeometryFieldMapper<Parsed,Processed>
java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.FieldMapper
org.elasticsearch.index.mapper.AbstractGeometryFieldMapper<Parsed,Processed>
org.elasticsearch.index.mapper.AbstractShapeGeometryFieldMapper<Parsed,Processed>
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Iterable<Mapper>
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
- Direct Known Subclasses:
GeoShapeFieldMapper
,LegacyGeoShapeFieldMapper
public abstract class AbstractShapeGeometryFieldMapper<Parsed,Processed> extends AbstractGeometryFieldMapper<Parsed,Processed>
Base class for
GeoShapeFieldMapper
and LegacyGeoShapeFieldMapper
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractShapeGeometryFieldMapper.AbstractShapeGeometryFieldType
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper
AbstractGeometryFieldMapper.AbstractGeometryFieldType, AbstractGeometryFieldMapper.Indexer<Parsed,Processed>, AbstractGeometryFieldMapper.Parser<Parsed>
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.FieldMapper
FieldMapper.Builder, FieldMapper.Conflicts, FieldMapper.CopyTo, FieldMapper.MergeValidator<T>, FieldMapper.MultiFields, FieldMapper.Parameter<T>, FieldMapper.Serializer<T>, FieldMapper.SerializerCheck<T>, FieldMapper.TypeParser
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
Field Summary
Fields Modifier and Type Field Description protected Explicit<java.lang.Boolean>
coerce
protected Explicit<ShapeBuilder.Orientation>
orientation
Fields inherited from class org.elasticsearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, IGNORE_MALFORMED_SETTING, indexAnalyzers, mappedFieldType, multiFields
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractShapeGeometryFieldMapper(java.lang.String simpleName, MappedFieldType mappedFieldType, java.util.Map<java.lang.String,NamedAnalyzer> indexAnalyzers, Explicit<java.lang.Boolean> ignoreMalformed, Explicit<java.lang.Boolean> coerce, Explicit<java.lang.Boolean> ignoreZValue, Explicit<ShapeBuilder.Orientation> orientation, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo, AbstractGeometryFieldMapper.Indexer<Parsed,Processed> indexer, AbstractGeometryFieldMapper.Parser<Parsed> parser)
protected
AbstractShapeGeometryFieldMapper(java.lang.String simpleName, MappedFieldType mappedFieldType, Explicit<java.lang.Boolean> ignoreMalformed, Explicit<java.lang.Boolean> coerce, Explicit<java.lang.Boolean> ignoreZValue, Explicit<ShapeBuilder.Orientation> orientation, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo, AbstractGeometryFieldMapper.Indexer<Parsed,Processed> indexer, AbstractGeometryFieldMapper.Parser<Parsed> parser)
-
Method Summary
Modifier and Type Method Description boolean
coerce()
static FieldMapper.Parameter<Explicit<java.lang.Boolean>>
coerceParam(java.util.function.Function<FieldMapper,Explicit<java.lang.Boolean>> initializer, boolean coerceByDefault)
ShapeBuilder.Orientation
orientation()
static FieldMapper.Parameter<Explicit<ShapeBuilder.Orientation>>
orientationParam(java.util.function.Function<FieldMapper,Explicit<ShapeBuilder.Orientation>> initializer)
boolean
parsesArrayValue()
Whether this mapper can handle an array value during document parsing.Methods inherited from class org.elasticsearch.index.mapper.AbstractGeometryFieldMapper
addDocValuesFields, addMultiFields, addStoredFields, fieldType, ignoreMalformed, ignoreMalformedParam, ignoreZValue, ignoreZValueParam, parse, parseCreateField
Methods inherited from class org.elasticsearch.index.mapper.FieldMapper
checkIncomingMergeType, contentType, copyTo, createFieldNamesField, doValidate, doXContentBody, getMergeBuilder, indexAnalyzers, iterator, merge, multiFields, name, toXContent, typeName, validate
Methods inherited from class org.elasticsearch.index.mapper.Mapper
simpleName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Field Details
-
coerce
-
orientation
-
-
Constructor Details
-
AbstractShapeGeometryFieldMapper
protected AbstractShapeGeometryFieldMapper(java.lang.String simpleName, MappedFieldType mappedFieldType, java.util.Map<java.lang.String,NamedAnalyzer> indexAnalyzers, Explicit<java.lang.Boolean> ignoreMalformed, Explicit<java.lang.Boolean> coerce, Explicit<java.lang.Boolean> ignoreZValue, Explicit<ShapeBuilder.Orientation> orientation, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo, AbstractGeometryFieldMapper.Indexer<Parsed,Processed> indexer, AbstractGeometryFieldMapper.Parser<Parsed> parser) -
AbstractShapeGeometryFieldMapper
protected AbstractShapeGeometryFieldMapper(java.lang.String simpleName, MappedFieldType mappedFieldType, Explicit<java.lang.Boolean> ignoreMalformed, Explicit<java.lang.Boolean> coerce, Explicit<java.lang.Boolean> ignoreZValue, Explicit<ShapeBuilder.Orientation> orientation, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo, AbstractGeometryFieldMapper.Indexer<Parsed,Processed> indexer, AbstractGeometryFieldMapper.Parser<Parsed> parser)
-
-
Method Details
-
coerceParam
public static FieldMapper.Parameter<Explicit<java.lang.Boolean>> coerceParam(java.util.function.Function<FieldMapper,Explicit<java.lang.Boolean>> initializer, boolean coerceByDefault) -
orientationParam
public static FieldMapper.Parameter<Explicit<ShapeBuilder.Orientation>> orientationParam(java.util.function.Function<FieldMapper,Explicit<ShapeBuilder.Orientation>> initializer) -
parsesArrayValue
public final boolean parsesArrayValue()Description copied from class:FieldMapper
Whether this mapper can handle an array value during document parsing. If true, when an array is encountered during parsing, the document parser will pass the whole array to the mapper. If false, the array is split into individual values and each value is passed to the mapper for parsing.- Overrides:
parsesArrayValue
in classFieldMapper
-
coerce
public boolean coerce() -
orientation
-