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.LegacyGeoPointFieldType |
static class |
BaseGeoPointFieldMapper.Names |
static class |
BaseGeoPointFieldMapper.TypeParser |
FieldMapper.CopyTo, FieldMapper.MultiFieldsMapper.BuilderContextToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTENT_TYPE |
protected static DeprecationLogger |
deprecationLogger |
protected FieldMapper |
geoHashMapper |
protected Explicit<java.lang.Boolean> |
ignoreMalformed |
protected FieldMapper |
latMapper |
protected FieldMapper |
lonMapper |
COERCE_SETTING, copyTo, defaultFieldType, fieldType, IGNORE_MALFORMED_SETTING, multiFieldsEMPTY_PARAMS| Modifier | Constructor and Description |
|---|---|
protected |
BaseGeoPointFieldMapper(java.lang.String simpleName,
MappedFieldType fieldType,
MappedFieldType defaultFieldType,
Settings indexSettings,
FieldMapper latMapper,
FieldMapper lonMapper,
FieldMapper geoHashMapper,
FieldMapper.MultiFields multiFields,
Explicit<java.lang.Boolean> ignoreMalformed,
FieldMapper.CopyTo copyTo) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.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) |
java.util.Iterator<Mapper> |
iterator() |
protected void |
legacyDoXContentBody(XContentBuilder builder,
boolean includeDefaults,
ToXContent.Params params) |
BaseGeoPointFieldMapper.LegacyGeoPointFieldType |
legacyFieldType() |
java.util.Iterator<Mapper> |
legacyIterator() |
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,
java.lang.String geoHash) |
protected void |
parseCreateField(ParseContext context,
java.util.List<org.apache.lucene.document.Field> fields)
Parse the field value and populate
fields. |
FieldMapper |
updateFieldType(java.util.Map<java.lang.String,MappedFieldType> fullNameToFieldType)
Update the field type of this mapper.
|
clone, copyTo, customBoost, doXContentAnalyzers, doXContentDocValues, fieldType, indexOptionToString, indexTokenizeOption, merge, name, termVectorOptionsToString, toXContentsimpleNamepublic static final java.lang.String CONTENT_TYPE
protected static final DeprecationLogger deprecationLogger
protected FieldMapper latMapper
protected FieldMapper lonMapper
protected FieldMapper geoHashMapper
protected Explicit<java.lang.Boolean> ignoreMalformed
protected BaseGeoPointFieldMapper(java.lang.String simpleName,
MappedFieldType fieldType,
MappedFieldType defaultFieldType,
Settings indexSettings,
FieldMapper latMapper,
FieldMapper lonMapper,
FieldMapper geoHashMapper,
FieldMapper.MultiFields multiFields,
Explicit<java.lang.Boolean> ignoreMalformed,
FieldMapper.CopyTo copyTo)
public BaseGeoPointFieldMapper.LegacyGeoPointFieldType legacyFieldType()
protected void doMerge(Mapper mergeWith, boolean updateAllTypes)
FieldMappermergeWith in place.doMerge in class FieldMapperupdateAllTypes - TODOpublic java.util.Iterator<Mapper> iterator()
iterator in interface java.lang.Iterable<Mapper>iterator in class FieldMapperpublic java.util.Iterator<Mapper> legacyIterator()
protected java.lang.String contentType()
contentType in class FieldMapperprotected void parseCreateField(ParseContext context, java.util.List<org.apache.lucene.document.Field> fields) throws java.io.IOException
FieldMapperfields.parseCreateField in class FieldMapperjava.io.IOExceptionprotected void parse(ParseContext context, GeoPoint point, java.lang.String geoHash) throws java.io.IOException
java.io.IOExceptionpublic Mapper parse(ParseContext context) throws java.io.IOException
FieldMapperParseContext and return a mapping
update if dynamic mappings modified the mappings, or null if
mappings were not modified.parse in class FieldMapperjava.io.IOExceptionprotected void doXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params) throws java.io.IOException
doXContentBody in class FieldMapperjava.io.IOExceptionprotected void legacyDoXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params) throws java.io.IOException
java.io.IOExceptionpublic FieldMapper updateFieldType(java.util.Map<java.lang.String,MappedFieldType> fullNameToFieldType)
MapperupdateFieldType in class FieldMapper