public class GetFieldMappingsResponse extends ActionResponse implements ToXContent
GetFieldMappingsRequest API| Modifier and Type | Class and Description |
|---|---|
static class |
GetFieldMappingsResponse.FieldMappingMetaData |
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsheadersEMPTY_PARAMS| Modifier and Type | Method and Description |
|---|---|
GetFieldMappingsResponse.FieldMappingMetaData |
fieldMappings(String index,
String type,
String field)
Returns the mappings of a specific field.
|
com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableMap<String,GetFieldMappingsResponse.FieldMappingMetaData>>> |
mappings()
returns the retrieved field mapping.
|
void |
readFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableMap<String,com.google.common.collect.ImmutableMap<String,GetFieldMappingsResponse.FieldMappingMetaData>>> mappings()
public GetFieldMappingsResponse.FieldMappingMetaData fieldMappings(String index, String type, String field)
field - field name as specified in the GetFieldMappingsRequestpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionResponseIOExceptionCopyright © 2009–2017. All rights reserved.