Class ResponseConverter
java.lang.Object
org.springframework.data.elasticsearch.client.erhlc.ResponseConverter
Deprecated.
since 5.0
Factory class to convert elasticsearch responses to different type of data classes.
- Since:
- 4.2
- Author:
- George Popides, Peter-Josef Meisch, Sijia Liu
-
Method Summary
Modifier and TypeMethodDescriptionaliasDatas
(Map<String, Set<org.elasticsearch.cluster.metadata.AliasMetadata>> aliasesMetadatas) Deprecated.static ByQueryResponse.Failure
byQueryResponseFailureOf
(org.elasticsearch.action.bulk.BulkItemResponse.Failure failure) Deprecated.Create a newByQueryResponse.Failure
fromBulkItemResponse.Failure
static ByQueryResponse
byQueryResponseOf
(org.elasticsearch.index.reindex.BulkByScrollResponse bulkByScrollResponse) Deprecated.byQueryResponseSearchFailureOf
(org.elasticsearch.index.reindex.ScrollableHitSource.SearchFailure searchFailure) Deprecated.Create a newByQueryResponse.SearchFailure
fromScrollableHitSource.SearchFailure
static ClusterHealth
clusterHealth
(org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse clusterHealthResponse) Deprecated.static Settings
fromSettingsResponse
(org.elasticsearch.action.admin.indices.settings.get.GetSettingsResponse response, String indexName) Deprecated.extract the index settings information for a given indexstatic MultiGetItem.Failure
getFailure
(org.elasticsearch.action.get.MultiGetItemResponse itemResponse) Deprecated.static List<IndexInformation>
getIndexInformations
(org.elasticsearch.action.admin.indices.get.GetIndexResponse getIndexResponse) Deprecated.get the index informations from aGetIndexResponse
(transport client)static List<IndexInformation>
getIndexInformations
(org.elasticsearch.client.indices.GetIndexResponse getIndexResponse) Deprecated.get the index informations from aGetIndexResponse
static TemplateData
getTemplateData
(org.elasticsearch.client.indices.GetIndexTemplatesResponse getIndexTemplatesResponse, String templateName) Deprecated.static ReindexResponse.Failure
reindexResponseFailureOf
(org.elasticsearch.action.bulk.BulkItemResponse.Failure failure) Deprecated.static ReindexResponse
reindexResponseOf
(org.elasticsearch.index.reindex.BulkByScrollResponse bulkByScrollResponse) Deprecated.static AliasData
toAliasData
(org.elasticsearch.cluster.metadata.AliasMetadata aliasMetaData) Deprecated.
-
Method Details
-
aliasDatas
public static Map<String,Set<AliasData>> aliasDatas(Map<String, Set<org.elasticsearch.cluster.metadata.AliasMetadata>> aliasesMetadatas) Deprecated. -
toAliasData
Deprecated. -
getIndexInformations
public static List<IndexInformation> getIndexInformations(org.elasticsearch.client.indices.GetIndexResponse getIndexResponse) Deprecated.get the index informations from aGetIndexResponse
- Parameters:
getIndexResponse
- the index response, must not be null- Returns:
- list of
IndexInformation
s for the different indices
-
getIndexInformations
public static List<IndexInformation> getIndexInformations(org.elasticsearch.action.admin.indices.get.GetIndexResponse getIndexResponse) Deprecated.get the index informations from aGetIndexResponse
(transport client)- Parameters:
getIndexResponse
- the index response, must not be null- Returns:
- list of
IndexInformation
s for the different indices
-
getTemplateData
@Nullable public static TemplateData getTemplateData(org.elasticsearch.client.indices.GetIndexTemplatesResponse getIndexTemplatesResponse, String templateName) Deprecated. -
fromSettingsResponse
public static Settings fromSettingsResponse(org.elasticsearch.action.admin.indices.settings.get.GetSettingsResponse response, String indexName) Deprecated.extract the index settings information for a given index- Parameters:
response
- the Elasticsearch responseindexName
- the index name- Returns:
- settings
-
getFailure
@Nullable public static MultiGetItem.Failure getFailure(org.elasticsearch.action.get.MultiGetItemResponse itemResponse) Deprecated. -
clusterHealth
public static ClusterHealth clusterHealth(org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse clusterHealthResponse) Deprecated. -
byQueryResponseOf
public static ByQueryResponse byQueryResponseOf(org.elasticsearch.index.reindex.BulkByScrollResponse bulkByScrollResponse) Deprecated. -
byQueryResponseFailureOf
public static ByQueryResponse.Failure byQueryResponseFailureOf(org.elasticsearch.action.bulk.BulkItemResponse.Failure failure) Deprecated.Create a newByQueryResponse.Failure
fromBulkItemResponse.Failure
- Parameters:
failure
-BulkItemResponse.Failure
to translate- Returns:
- a new
ByQueryResponse.Failure
-
byQueryResponseSearchFailureOf
public static ByQueryResponse.SearchFailure byQueryResponseSearchFailureOf(org.elasticsearch.index.reindex.ScrollableHitSource.SearchFailure searchFailure) Deprecated.Create a newByQueryResponse.SearchFailure
fromScrollableHitSource.SearchFailure
- Parameters:
searchFailure
-ScrollableHitSource.SearchFailure
to translate- Returns:
- a new
ByQueryResponse.SearchFailure
-
reindexResponseOf
public static ReindexResponse reindexResponseOf(org.elasticsearch.index.reindex.BulkByScrollResponse bulkByScrollResponse) Deprecated.- Since:
- 4.4
-
reindexResponseFailureOf
public static ReindexResponse.Failure reindexResponseFailureOf(org.elasticsearch.action.bulk.BulkItemResponse.Failure failure) Deprecated.- Since:
- 4.4
-