Package org.elasticsearch.index.mapper
Class ScaledFloatFieldMapper.ScaledFloatFieldType
java.lang.Object
org.elasticsearch.index.mapper.MappedFieldType
org.elasticsearch.index.mapper.SimpleMappedFieldType
org.elasticsearch.index.mapper.ScaledFloatFieldMapper.ScaledFloatFieldType
- Enclosing class:
- ScaledFloatFieldMapper
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.MappedFieldType
MappedFieldType.CollapseType, MappedFieldType.Relation -
Constructor Summary
ConstructorsConstructorDescriptionScaledFloatFieldType(String name, boolean indexed, boolean stored, boolean hasDocValues, Map<String, String> meta, double scalingFactor, Double nullValue, TimeSeriesParams.MetricType metricType) ScaledFloatFieldType(String name, double scalingFactor) -
Method Summary
Modifier and TypeMethodDescriptiondocValueFormat(String format, ZoneId timeZone) fielddataBuilder(String fullyQualifiedIndexName, Supplier<SearchLookup> searchLookup) If field is a time series metric field, returns its metric typedoubleorg.apache.lucene.search.QueryrangeQuery(Object lowerTerm, Object upperTerm, boolean includeLower, boolean includeUpper, SearchExecutionContext context) org.apache.lucene.search.QuerytermQuery(Object value, SearchExecutionContext context) org.apache.lucene.search.QuerytermsQuery(Collection<?> values, SearchExecutionContext context) typeName()valueFetcher(SearchExecutionContext context, String format) valueForDisplay(Object value) Methods inherited from class org.elasticsearch.index.mapper.SimpleMappedFieldType
rangeQueryMethods inherited from class org.elasticsearch.index.mapper.MappedFieldType
boost, checkNoFormat, checkNoTimeZone, collapseType, distanceFeatureQuery, eagerGlobalOrdinals, existsQuery, extractTerm, failIfNoDocValues, failIfNotIndexed, familyTypeName, fuzzyIntervals, fuzzyQuery, getTerms, getTextSearchInfo, hasDocValues, isAggregatable, isDimension, isFieldWithinQuery, isSearchable, isStored, meta, multiPhraseQuery, name, normalizedWildcardQuery, phrasePrefixQuery, phraseQuery, pointReaderIfPossible, prefixIntervals, prefixQuery, prefixQuery, regexpQuery, setBoost, spanPrefixQuery, termIntervals, termQueryCaseInsensitive, wildcardIntervals, wildcardQuery, wildcardQuery
-
Constructor Details
-
ScaledFloatFieldType
-
ScaledFloatFieldType
-
-
Method Details
-
getScalingFactor
public double getScalingFactor() -
typeName
- Specified by:
typeNamein classMappedFieldType
-
termQuery
- Specified by:
termQueryin classMappedFieldType
-
termsQuery
public org.apache.lucene.search.Query termsQuery(Collection<?> values, SearchExecutionContext context) - Overrides:
termsQueryin classMappedFieldType
-
rangeQuery
public org.apache.lucene.search.Query rangeQuery(Object lowerTerm, Object upperTerm, boolean includeLower, boolean includeUpper, SearchExecutionContext context) - Overrides:
rangeQueryin classSimpleMappedFieldType
-
fielddataBuilder
public IndexFieldData.Builder fielddataBuilder(String fullyQualifiedIndexName, Supplier<SearchLookup> searchLookup) - Overrides:
fielddataBuilderin classMappedFieldType
-
valueFetcher
- Specified by:
valueFetcherin classMappedFieldType
-
valueForDisplay
- Overrides:
valueForDisplayin classMappedFieldType
-
docValueFormat
- Overrides:
docValueFormatin classMappedFieldType
-
getMetricType
If field is a time series metric field, returns its metric type- Returns:
- the metric type or null
-