Class GetIndexResponse
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportResponse
-
- org.elasticsearch.action.ActionResponse
-
- org.elasticsearch.action.admin.indices.get.GetIndexResponse
-
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
public class GetIndexResponse extends ActionResponse implements ToXContentObject
A response for a get index action.
-
-
Nested Class Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description GetIndexResponse(String[] indices, ImmutableOpenMap<String,ImmutableOpenMap<String,MappingMetaData>> mappings, ImmutableOpenMap<String,List<AliasMetaData>> aliases, ImmutableOpenMap<String,Settings> settings, ImmutableOpenMap<String,Settings> defaultSettings)
-
Method Summary
-
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
-
-
-
-
Constructor Detail
-
GetIndexResponse
public GetIndexResponse(String[] indices, ImmutableOpenMap<String,ImmutableOpenMap<String,MappingMetaData>> mappings, ImmutableOpenMap<String,List<AliasMetaData>> aliases, ImmutableOpenMap<String,Settings> settings, ImmutableOpenMap<String,Settings> defaultSettings)
-
-
Method Detail
-
indices
public String[] indices()
-
getIndices
public String[] getIndices()
-
mappings
public ImmutableOpenMap<String,ImmutableOpenMap<String,MappingMetaData>> mappings()
-
getMappings
public ImmutableOpenMap<String,ImmutableOpenMap<String,MappingMetaData>> getMappings()
-
aliases
public ImmutableOpenMap<String,List<AliasMetaData>> aliases()
-
getAliases
public ImmutableOpenMap<String,List<AliasMetaData>> getAliases()
-
settings
public ImmutableOpenMap<String,Settings> settings()
-
defaultSettings
public ImmutableOpenMap<String,Settings> defaultSettings()
If the originatingGetIndexRequestobject was configured to include defaults, this will contain a mapping of index name toSettingsobjects. The returnedSettingsobjects will contain only those settings taking effect as defaults. Any settings explicitly set on the index will be available viasettings(). See alsoGetIndexRequest.includeDefaults(boolean)
-
getSettings
public ImmutableOpenMap<String,Settings> getSettings()
-
getSetting
public String getSetting(String index, String setting)
Returns the string value for the specified index and setting. If the includeDefaults flag was not set or set to false on theGetIndexRequest, this method will only return a value where the setting was explicitly set on the index. If the includeDefaults flag was set to true on theGetIndexRequest, this method will fall back to return the default value if the setting was not explicitly set.
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
fromXContent
public static GetIndexResponse fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
-