Package org.opensearch.index.mapper
Class ScaledFloatFieldMapper
- java.lang.Object
-
- org.opensearch.index.mapper.Mapper
-
- org.opensearch.index.mapper.FieldMapper
-
- org.opensearch.index.mapper.ParametrizedFieldMapper
-
- org.opensearch.index.mapper.ScaledFloatFieldMapper
-
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Iterable<Mapper>,ToXContent,ToXContentFragment
public class ScaledFloatFieldMapper extends ParametrizedFieldMapper
AFieldMapperfor scaled floats. Values are internally multiplied by a scaling factor and rounded to the closest long.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScaledFloatFieldMapper.Builderstatic classScaledFloatFieldMapper.ScaledFloatFieldType-
Nested classes/interfaces inherited from class org.opensearch.index.mapper.ParametrizedFieldMapper
ParametrizedFieldMapper.Parameter<T extends java.lang.Object>, ParametrizedFieldMapper.Serializer<T extends java.lang.Object>, ParametrizedFieldMapper.SerializerCheck<T extends java.lang.Object>, 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.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONTENT_TYPEstatic ParametrizedFieldMapper.TypeParserPARSER-
Fields inherited from class org.opensearch.index.mapper.FieldMapper
copyTo, fieldType, IGNORE_MALFORMED_SETTING, mappedFieldType, multiFields
-
Fields inherited from interface org.opensearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ScaledFloatFieldMapperclone()protected java.lang.StringcontentType()ScaledFloatFieldMapper.ScaledFloatFieldTypefieldType()ParametrizedFieldMapper.BuildergetMergeBuilder()protected voidparseCreateField(ParseContext context)-
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 org.opensearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Field Detail
-
CONTENT_TYPE
public static final java.lang.String CONTENT_TYPE
- See Also:
- Constant Field Values
-
PARSER
public static final ParametrizedFieldMapper.TypeParser PARSER
-
-
Method Detail
-
fieldType
public ScaledFloatFieldMapper.ScaledFloatFieldType fieldType()
- Overrides:
fieldTypein classFieldMapper
-
contentType
protected java.lang.String contentType()
- Specified by:
contentTypein classFieldMapper
-
getMergeBuilder
public ParametrizedFieldMapper.Builder getMergeBuilder()
- Specified by:
getMergeBuilderin classParametrizedFieldMapper
-
clone
protected ScaledFloatFieldMapper clone()
- Overrides:
clonein classFieldMapper
-
parseCreateField
protected void parseCreateField(ParseContext context) throws java.io.IOException
- Specified by:
parseCreateFieldin classFieldMapper- Throws:
java.io.IOException
-
-