Class ScaledFloatFieldMapper.ScaledFloatFieldType
java.lang.Object
org.opensearch.index.mapper.MappedFieldType
org.opensearch.index.mapper.SimpleMappedFieldType
org.opensearch.index.mapper.ScaledFloatFieldMapper.ScaledFloatFieldType
- All Implemented Interfaces:
FieldValueConverter,NumericPointEncoder
- Enclosing class:
ScaledFloatFieldMapper
public static final class ScaledFloatFieldMapper.ScaledFloatFieldType
extends SimpleMappedFieldType
implements NumericPointEncoder, FieldValueConverter
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.index.mapper.MappedFieldType
MappedFieldType.Relation -
Constructor Summary
ConstructorsConstructorDescriptionScaledFloatFieldType(String name, boolean indexed, boolean stored, boolean hasDocValues, Map<String, String> meta, double scalingFactor, Double nullValue) ScaledFloatFieldType(String name, double scalingFactor) -
Method Summary
Modifier and TypeMethodDescriptiondocValueFormat(String format, ZoneId timeZone) byte[]encodePoint(Number value) byte[]encodePoint(Object value, boolean roundUp) fielddataBuilder(String fullyQualifiedIndexName, Supplier<SearchLookup> searchLookup) doubleorg.apache.lucene.search.QueryrangeQuery(Object lowerTerm, Object upperTerm, boolean includeLower, boolean includeUpper, QueryShardContext context) org.apache.lucene.search.QuerytermQuery(Object value, QueryShardContext context) org.apache.lucene.search.QuerytermsQuery(List<?> values, QueryShardContext context) doubletoDoubleValue(long value) typeName()valueFetcher(QueryShardContext context, SearchLookup searchLookup, String format) valueForDisplay(Object value) Methods inherited from class org.opensearch.index.mapper.SimpleMappedFieldType
rangeQueryMethods inherited from class org.opensearch.index.mapper.MappedFieldType
boost, distanceFeatureQuery, eagerGlobalOrdinals, existsQuery, extractTerm, failIfNoDocValues, failIfNotIndexed, failIfNotIndexedAndNoDocValues, familyTypeName, fuzzyQuery, getTextSearchInfo, hasDocValues, indexAnalyzer, intervals, isAggregatable, isFieldWithinQuery, isSearchable, isStored, meta, multiPhraseQuery, multiPhraseQuery, name, normalizedWildcardQuery, phrasePrefixQuery, phrasePrefixQuery, phraseQuery, phraseQuery, pointReaderIfPossible, prefixQuery, prefixQuery, regexpQuery, setBoost, setEagerGlobalOrdinals, setIndexAnalyzer, spanPrefixQuery, termQueryCaseInsensitive, unwrap, wildcardQuery, wildcardQuery
-
Constructor Details
-
ScaledFloatFieldType
-
ScaledFloatFieldType
-
-
Method Details
-
encodePoint
- Specified by:
encodePointin interfaceNumericPointEncoder
-
encodePoint
- Specified by:
encodePointin interfaceNumericPointEncoder
-
getScalingFactor
public double getScalingFactor() -
typeName
- Specified by:
typeNamein classMappedFieldType
-
termQuery
- Specified by:
termQueryin classMappedFieldType
-
termsQuery
- Overrides:
termsQueryin classMappedFieldType
-
rangeQuery
public org.apache.lucene.search.Query rangeQuery(Object lowerTerm, Object upperTerm, boolean includeLower, boolean includeUpper, QueryShardContext context) - Overrides:
rangeQueryin classSimpleMappedFieldType
-
fielddataBuilder
public IndexFieldData.Builder fielddataBuilder(String fullyQualifiedIndexName, Supplier<SearchLookup> searchLookup) - Overrides:
fielddataBuilderin classMappedFieldType
-
valueFetcher
public ValueFetcher valueFetcher(QueryShardContext context, SearchLookup searchLookup, String format) - Specified by:
valueFetcherin classMappedFieldType
-
valueForDisplay
- Overrides:
valueForDisplayin classMappedFieldType
-
docValueFormat
- Overrides:
docValueFormatin classMappedFieldType
-
toDoubleValue
public double toDoubleValue(long value) - Specified by:
toDoubleValuein interfaceFieldValueConverter
-