public class ResponseConverter extends Object
Modifier and Type | Method and Description |
---|---|
static Map<String,Set<AliasData>> |
aliasDatas(Map<String,Set<org.elasticsearch.cluster.metadata.AliasMetadata>> aliasesMetadatas) |
static Settings |
fromSettingsResponse(org.elasticsearch.action.admin.indices.settings.get.GetSettingsResponse response,
String indexName)
extract the index settings information for a given index
|
static MultiGetItem.Failure |
getFailure(org.elasticsearch.action.get.MultiGetItemResponse itemResponse) |
static List<IndexInformation> |
getIndexInformations(org.elasticsearch.client.indices.GetIndexResponse getIndexResponse)
get the index informations from a
GetIndexResponse |
static List<IndexInformation> |
getIndexInformations(org.elasticsearch.action.admin.indices.get.GetIndexResponse getIndexResponse)
get the index informations from a
GetIndexResponse (transport
client) |
static TemplateData |
getTemplateData(org.elasticsearch.client.indices.GetIndexTemplatesResponse getIndexTemplatesResponse,
String templateName) |
static AliasData |
toAliasData(org.elasticsearch.cluster.metadata.AliasMetadata aliasMetaData) |
public static Map<String,Set<AliasData>> aliasDatas(Map<String,Set<org.elasticsearch.cluster.metadata.AliasMetadata>> aliasesMetadatas)
public static AliasData toAliasData(org.elasticsearch.cluster.metadata.AliasMetadata aliasMetaData)
public static List<IndexInformation> getIndexInformations(org.elasticsearch.client.indices.GetIndexResponse getIndexResponse)
GetIndexResponse
getIndexResponse
- the index response, must not be nullIndexInformation
s for the different indicespublic static List<IndexInformation> getIndexInformations(org.elasticsearch.action.admin.indices.get.GetIndexResponse getIndexResponse)
GetIndexResponse
(transport
client)getIndexResponse
- the index response, must not be nullIndexInformation
s for the different indices@Nullable public static TemplateData getTemplateData(org.elasticsearch.client.indices.GetIndexTemplatesResponse getIndexTemplatesResponse, String templateName)
public static Settings fromSettingsResponse(org.elasticsearch.action.admin.indices.settings.get.GetSettingsResponse response, String indexName)
response
- the Elasticsearch responseindexName
- the index name@Nullable public static MultiGetItem.Failure getFailure(org.elasticsearch.action.get.MultiGetItemResponse itemResponse)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.