Package org.elasticsearch.client.indices
Class GetFieldMappingsResponse
- java.lang.Object
-
- org.elasticsearch.client.indices.GetFieldMappingsResponse
-
public class GetFieldMappingsResponse extends Object
Response object forGetFieldMappingsRequestAPI
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetFieldMappingsResponse.FieldMappingMetaData
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)GetFieldMappingsResponse.FieldMappingMetaDatafieldMappings(String index, String field)Returns the mappings of a specific index and field.static GetFieldMappingsResponsefromXContent(XContentParser parser)inthashCode()Map<String,Map<String,GetFieldMappingsResponse.FieldMappingMetaData>>mappings()Returns the fields mapping.StringtoString()
-
-
-
Method Detail
-
mappings
public Map<String,Map<String,GetFieldMappingsResponse.FieldMappingMetaData>> mappings()
Returns the fields mapping. The return map keys are indexes and fields (as specified in the request).
-
fieldMappings
public GetFieldMappingsResponse.FieldMappingMetaData fieldMappings(String index, String field)
Returns the mappings of a specific index and field.- Parameters:
field- field name as specified in theGetFieldMappingsRequest- Returns:
- FieldMappingMetaData for the requested field or null if not found.
-
fromXContent
public static GetFieldMappingsResponse fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
-