Package org.elasticsearch.client.indices
Class GetIndexResponse
- java.lang.Object
-
- org.elasticsearch.client.indices.GetIndexResponse
-
public class GetIndexResponse extends Object
A client side response for a get index action.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetIndexResponsefromXContent(XContentParser parser)Map<String,List<AliasMetaData>>getAliases()Map<String,Settings>getDefaultSettings()If the originatingGetIndexRequestobject was configured to include defaults, this will contain a mapping of index name toSettingsobjects.String[]getIndices()Map<String,MappingMetaData>getMappings()StringgetSetting(String index, String setting)Returns the string value for the specified index and setting.Map<String,Settings>getSettings()
-
-
-
Method Detail
-
getIndices
public String[] getIndices()
-
getMappings
public Map<String,MappingMetaData> getMappings()
-
getAliases
public Map<String,List<AliasMetaData>> getAliases()
-
getDefaultSettings
public Map<String,Settings> getDefaultSettings()
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 viagetSettings(). See alsoGetIndexRequest.includeDefaults(boolean)
-
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.
-
fromXContent
public static GetIndexResponse fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
-