public class GetFieldMappingsResponse extends ActionResponse implements ToXContent
GetFieldMappingsRequest
APIModifier and Type | Class and Description |
---|---|
static class |
GetFieldMappingsResponse.FieldMappingMetaData |
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
headers
EMPTY_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, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public 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 GetFieldMappingsRequest
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class ActionResponse
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class ActionResponse
IOException
Copyright © 2009–2016. All rights reserved.