Package org.opensearch.index.mapper
Class IpFieldMapper
java.lang.Object
org.opensearch.index.mapper.Mapper
org.opensearch.index.mapper.FieldMapper
org.opensearch.index.mapper.ParametrizedFieldMapper
org.opensearch.index.mapper.IpFieldMapper
- All Implemented Interfaces:
Cloneable
,Iterable<Mapper>
,org.opensearch.core.xcontent.ToXContent
,org.opensearch.core.xcontent.ToXContentFragment
A
FieldMapper
for ip addresses.- Opensearch.internal:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builderstatic final class
Field type for IP fieldsNested classes/interfaces inherited from class org.opensearch.index.mapper.ParametrizedFieldMapper
ParametrizedFieldMapper.Parameter<T>, ParametrizedFieldMapper.Serializer<T>, ParametrizedFieldMapper.SerializerCheck<T>, ParametrizedFieldMapper.TypeParser
Nested classes/interfaces inherited from class org.opensearch.index.mapper.FieldMapper
FieldMapper.CopyTo, FieldMapper.MultiFields
Nested classes/interfaces inherited from class org.opensearch.index.mapper.Mapper
Mapper.BuilderContext
Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.Params
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final ParametrizedFieldMapper.TypeParser
Fields inherited from class org.opensearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, fieldType, IGNORE_MALFORMED_SETTING, mappedFieldType, multiFields
Fields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionprotected IpFieldMapper
clone()
protected String
Returns aParametrizedFieldMapper.Builder
to be used for merging and serializationprotected void
parseCreateField
(ParseContext context) Parse the field value and populate the fields onParseContext.doc()
.Methods inherited from class org.opensearch.index.mapper.ParametrizedFieldMapper
doXContentBody, merge, mergeOptions
Methods inherited from class org.opensearch.index.mapper.FieldMapper
copyTo, createFieldNamesField, docValuesByDefault, doValidate, doXContentAnalyzers, indexedByDefault, indexOptionToString, iterator, multiFields, name, parse, parsesArrayValue, storedByDefault, toXContent, typeName, validate
Methods inherited from class org.opensearch.index.mapper.Mapper
hasIndexCreated, simpleName
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.opensearch.core.xcontent.ToXContentFragment
isFragment
-
Field Details
-
CONTENT_TYPE
- See Also:
-
PARSER
-
-
Method Details
-
fieldType
- Overrides:
fieldType
in classFieldMapper
-
contentType
- Specified by:
contentType
in classFieldMapper
-
clone
- Overrides:
clone
in classFieldMapper
-
parseCreateField
Description copied from class:FieldMapper
Parse the field value and populate the fields onParseContext.doc()
.Implementations of this method should ensure that on failing to parse parser.currentToken() must be the current failing token
- Specified by:
parseCreateField
in classFieldMapper
- Throws:
IOException
-
getMergeBuilder
Description copied from class:ParametrizedFieldMapper
Returns aParametrizedFieldMapper.Builder
to be used for merging and serializationImplement as follows:
return new MyBuilder(simpleName()).init(this);
- Specified by:
getMergeBuilder
in classParametrizedFieldMapper
-