Class GetFieldMappingsResponse.FieldMappingMetaData
- java.lang.Object
-
- org.elasticsearch.action.admin.indices.mapping.get.GetFieldMappingsResponse.FieldMappingMetaData
-
- All Implemented Interfaces:
ToXContent,ToXContentFragment
- Enclosing class:
- GetFieldMappingsResponse
public static class GetFieldMappingsResponse.FieldMappingMetaData extends Object implements ToXContentFragment
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description static GetFieldMappingsResponse.FieldMappingMetaDataNULL-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description FieldMappingMetaData(String fullName, BytesReference source)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static GetFieldMappingsResponse.FieldMappingMetaDatafromXContent(XContentParser parser)StringfullName()inthashCode()booleanisNull()Map<String,Object>sourceAsMap()Returns the mappings as a map.StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Field Detail
-
NULL
public static final GetFieldMappingsResponse.FieldMappingMetaData NULL
-
-
Constructor Detail
-
FieldMappingMetaData
public FieldMappingMetaData(String fullName, BytesReference source)
-
-
Method Detail
-
fullName
public String fullName()
-
sourceAsMap
public Map<String,Object> sourceAsMap()
Returns the mappings as a map. Note that the returned map has a single key which is always the field'sMapper#name.
-
isNull
public boolean isNull()
-
fromXContent
public static GetFieldMappingsResponse.FieldMappingMetaData fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
-