public abstract class BaseGeoPointFieldMapper extends FieldMapper implements ArrayValueMapperParser
Modifier and Type | Class and Description |
---|---|
static class |
BaseGeoPointFieldMapper.Builder<T extends BaseGeoPointFieldMapper.Builder,Y extends BaseGeoPointFieldMapper> |
static class |
BaseGeoPointFieldMapper.Defaults |
static class |
BaseGeoPointFieldMapper.GeoPointFieldType |
static class |
BaseGeoPointFieldMapper.Names |
static class |
BaseGeoPointFieldMapper.TypeParser |
FieldMapper.CopyTo, FieldMapper.MultiFields
Mapper.BuilderContext
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE |
protected static DeprecationLogger |
deprecationLogger |
protected StringFieldMapper |
geoHashMapper |
protected Explicit<Boolean> |
ignoreMalformed |
protected DoubleFieldMapper |
latMapper |
protected DoubleFieldMapper |
lonMapper |
protected ContentPath.Type |
pathType |
copyTo, defaultFieldType, fieldType, indexCreatedBefore2x, multiFields
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
protected |
BaseGeoPointFieldMapper(String simpleName,
MappedFieldType fieldType,
MappedFieldType defaultFieldType,
Settings indexSettings,
ContentPath.Type pathType,
DoubleFieldMapper latMapper,
DoubleFieldMapper lonMapper,
StringFieldMapper geoHashMapper,
FieldMapper.MultiFields multiFields,
Explicit<Boolean> ignoreMalformed,
FieldMapper.CopyTo copyTo) |
Modifier and Type | Method and Description |
---|---|
protected String |
contentType() |
protected void |
doMerge(Mapper mergeWith,
boolean updateAllTypes)
Merge changes coming from
mergeWith in place. |
protected void |
doXContentBody(XContentBuilder builder,
boolean includeDefaults,
ToXContent.Params params) |
BaseGeoPointFieldMapper.GeoPointFieldType |
fieldType() |
Iterator<Mapper> |
iterator() |
Mapper |
parse(ParseContext context)
Parse using the provided
ParseContext and return a mapping
update if dynamic mappings modified the mappings, or null if
mappings were not modified. |
protected void |
parse(ParseContext context,
GeoPoint point,
String geoHash) |
protected void |
parseCreateField(ParseContext context,
List<org.apache.lucene.document.Field> fields)
Parse the field value and populate
fields . |
FieldMapper |
updateFieldType(Map<String,MappedFieldType> fullNameToFieldType)
Update the field type of this mapper.
|
clone, copyTo, customBoost, doXContentAnalyzers, doXContentDocValues, hasCustomFieldDataSettings, indexOptionToString, indexTokenizeOptionToString, isGenerated, merge, name, termVectorOptionsToString, toXContent
simpleName
public static final String CONTENT_TYPE
protected static final DeprecationLogger deprecationLogger
protected DoubleFieldMapper latMapper
protected DoubleFieldMapper lonMapper
protected final ContentPath.Type pathType
protected StringFieldMapper geoHashMapper
protected BaseGeoPointFieldMapper(String simpleName, MappedFieldType fieldType, MappedFieldType defaultFieldType, Settings indexSettings, ContentPath.Type pathType, DoubleFieldMapper latMapper, DoubleFieldMapper lonMapper, StringFieldMapper geoHashMapper, FieldMapper.MultiFields multiFields, Explicit<Boolean> ignoreMalformed, FieldMapper.CopyTo copyTo)
public BaseGeoPointFieldMapper.GeoPointFieldType fieldType()
fieldType
in class FieldMapper
protected void doMerge(Mapper mergeWith, boolean updateAllTypes)
FieldMapper
mergeWith
in place.doMerge
in class FieldMapper
updateAllTypes
- TODOpublic Iterator<Mapper> iterator()
iterator
in interface Iterable<Mapper>
iterator
in class FieldMapper
protected String contentType()
contentType
in class FieldMapper
protected void parseCreateField(ParseContext context, List<org.apache.lucene.document.Field> fields) throws IOException
FieldMapper
fields
.parseCreateField
in class FieldMapper
IOException
protected void parse(ParseContext context, GeoPoint point, String geoHash) throws IOException
IOException
public Mapper parse(ParseContext context) throws IOException
FieldMapper
ParseContext
and return a mapping
update if dynamic mappings modified the mappings, or null
if
mappings were not modified.parse
in class FieldMapper
IOException
protected void doXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params) throws IOException
doXContentBody
in class FieldMapper
IOException
public FieldMapper updateFieldType(Map<String,MappedFieldType> fullNameToFieldType)
Mapper
updateFieldType
in class FieldMapper
Copyright © 2009–2017. All rights reserved.