java.lang.Object
org.elasticsearch.index.mapper.LeafRuntimeField
- All Implemented Interfaces:
RuntimeField,ToXContent,ToXContentFragment
RuntimeField base class for leaf fields that will only ever return a single
MappedFieldType
from RuntimeField.asMappedFieldTypes(). Can be a standalone runtime field, or part of a composite.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.index.mapper.RuntimeField
RuntimeField.Builder, RuntimeField.ParserNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionLeafRuntimeField(String name, MappedFieldType mappedFieldType, List<FieldMapper.Parameter<?>> parameters) -
Method Summary
Modifier and TypeMethodDescriptionExposes theMappedFieldTypes backing this runtime field, used to execute queries, run aggs etc.name()Exposes the name of the runtime fieldtoXContent(XContentBuilder builder, ToXContent.Params params) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
LeafRuntimeField
public LeafRuntimeField(String name, MappedFieldType mappedFieldType, List<FieldMapper.Parameter<?>> parameters)
-
-
Method Details
-
name
Description copied from interface:RuntimeFieldExposes the name of the runtime field- Specified by:
namein interfaceRuntimeField- Returns:
- name of the field
-
asMappedFieldTypes
Description copied from interface:RuntimeFieldExposes theMappedFieldTypes backing this runtime field, used to execute queries, run aggs etc.- Specified by:
asMappedFieldTypesin interfaceRuntimeField- Returns:
- the
MappedFieldTypes backing this runtime field
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-