Module org.elasticsearch.server
Package org.elasticsearch.index.mapper
Interface MappedFieldType.BlockLoaderContext
- Enclosing class:
MappedFieldType
public static interface MappedFieldType.BlockLoaderContext
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionHow the field should be extracted into the BlockLoader.The_field_namesfield mapper, mostly used to check if it is enabled.The name of the index.The index settings of the indexlookup()SearchLookupused for building scripts.MappingLookup for the queried index.Number of bytes reserved for each ordinalsBlockLoader.Reader.parentField(String field) If field is a leaf multi-field return the path to the parent field.Number of bytes reserved for each scriptBlockLoader.Reader.sourcePaths(String name) Find the paths in_sourcethat contain values for the field namedname.warnings()Warnings collector for the block loader.
-
Field Details
-
DEFAULT_ORDINALS_BYTE_SIZE
-
DEFAULT_SCRIPT_BYTE_SIZE
-
-
Method Details
-
indexName
String indexName()The name of the index. -
indexSettings
IndexSettings indexSettings()The index settings of the index -
fieldExtractPreference
MappedFieldType.FieldExtractPreference fieldExtractPreference()How the field should be extracted into the BlockLoader. The default isMappedFieldType.FieldExtractPreference.NONE, which means that the field type can choose where to load the field from. However, in some cases, the caller may have a preference. For example, when loading a spatial field for usage in STATS, it is preferable to load from doc-values. -
lookup
SearchLookup lookup()SearchLookupused for building scripts. -
sourcePaths
Find the paths in_sourcethat contain values for the field namedname. -
parentField
If field is a leaf multi-field return the path to the parent field. Otherwise, return null. -
fieldNames
FieldNamesFieldMapper.FieldNamesFieldType fieldNames()The_field_namesfield mapper, mostly used to check if it is enabled. -
mappingLookup
MappingLookup mappingLookup()MappingLookup for the queried index. -
blockLoaderFunctionConfig
-
warnings
Warnings collector for the block loader. May benullif warnings are not supported. -
ordinalsByteSize
ByteSizeValue ordinalsByteSize()Number of bytes reserved for each ordinalsBlockLoader.Reader. -
scriptByteSize
ByteSizeValue scriptByteSize()Number of bytes reserved for each scriptBlockLoader.Reader.
-