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 ByQueryResponse.Failure |
byQueryResponseFailureOf(org.elasticsearch.action.bulk.BulkItemResponse.Failure failure)
Create a new
ByQueryResponse.Failure from BulkItemResponse.Failure |
static ByQueryResponse |
byQueryResponseOf(org.elasticsearch.index.reindex.BulkByScrollResponse bulkByScrollResponse) |
static ByQueryResponse.SearchFailure |
byQueryResponseSearchFailureOf(org.elasticsearch.index.reindex.ScrollableHitSource.SearchFailure searchFailure)
Create a new
ByQueryResponse.SearchFailure from ScrollableHitSource.SearchFailure |
static ClusterHealth |
clusterHealth(org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse clusterHealthResponse) |
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 ReindexResponse.Failure |
reindexResponseFailureOf(org.elasticsearch.action.bulk.BulkItemResponse.Failure failure) |
static ReindexResponse |
reindexResponseOf(org.elasticsearch.index.reindex.BulkByScrollResponse bulkByScrollResponse) |
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)
GetIndexResponsegetIndexResponse - the index response, must not be nullIndexInformations 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 nullIndexInformations 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)
public static ClusterHealth clusterHealth(org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse clusterHealthResponse)
public static ByQueryResponse byQueryResponseOf(org.elasticsearch.index.reindex.BulkByScrollResponse bulkByScrollResponse)
public static ByQueryResponse.Failure byQueryResponseFailureOf(org.elasticsearch.action.bulk.BulkItemResponse.Failure failure)
ByQueryResponse.Failure from BulkItemResponse.Failurefailure - BulkItemResponse.Failure to translateByQueryResponse.Failurepublic static ByQueryResponse.SearchFailure byQueryResponseSearchFailureOf(org.elasticsearch.index.reindex.ScrollableHitSource.SearchFailure searchFailure)
ByQueryResponse.SearchFailure from ScrollableHitSource.SearchFailuresearchFailure - ScrollableHitSource.SearchFailure to translateByQueryResponse.SearchFailurepublic static ReindexResponse reindexResponseOf(org.elasticsearch.index.reindex.BulkByScrollResponse bulkByScrollResponse)
public static ReindexResponse.Failure reindexResponseFailureOf(org.elasticsearch.action.bulk.BulkItemResponse.Failure failure)
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.