Class GetFieldMappingsResponse
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportResponse
-
- org.elasticsearch.action.ActionResponse
-
- org.elasticsearch.action.admin.indices.mapping.get.GetFieldMappingsResponse
-
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
public class GetFieldMappingsResponse extends ActionResponse implements ToXContentObject
Response object forGetFieldMappingsRequestAPI Note: there is a new class with the same name for the Java HLRC that uses a typeless format. Any changes done to this class should go to that client class as well.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetFieldMappingsResponse.FieldMappingMetaData-
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
TransportResponse.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)GetFieldMappingsResponse.FieldMappingMetaDatafieldMappings(String index, String type, String field)Returns the mappings of a specific field.static GetFieldMappingsResponsefromXContent(XContentParser parser)inthashCode()Map<String,Map<String,Map<String,GetFieldMappingsResponse.FieldMappingMetaData>>>mappings()returns the retrieved field mapping.StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Method Detail
-
mappings
public Map<String,Map<String,Map<String,GetFieldMappingsResponse.FieldMappingMetaData>>> mappings()
returns the retrieved field mapping. The return map keys are index, type, field (as specified in the request).
-
fieldMappings
public GetFieldMappingsResponse.FieldMappingMetaData fieldMappings(String index, String type, String field)
Returns the mappings of a specific field.- Parameters:
field- field name as specified in theGetFieldMappingsRequest- Returns:
- FieldMappingMetaData for the requested field or null if not found.
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
fromXContent
public static GetFieldMappingsResponse fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
-