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.FailurebyQueryResponseFailureOf(org.elasticsearch.action.bulk.BulkItemResponse.Failure failure) Deprecated.Create a newByQueryResponse.FailurefromBulkItemResponse.Failurestatic ByQueryResponsebyQueryResponseOf(org.elasticsearch.index.reindex.BulkByScrollResponse bulkByScrollResponse) Deprecated.byQueryResponseSearchFailureOf(org.elasticsearch.index.reindex.ScrollableHitSource.SearchFailure searchFailure) Deprecated.Create a newByQueryResponse.SearchFailurefromScrollableHitSource.SearchFailurestatic ClusterHealthclusterHealth(org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse clusterHealthResponse) Deprecated.static SettingsfromSettingsResponse(org.elasticsearch.action.admin.indices.settings.get.GetSettingsResponse response, String indexName) Deprecated.extract the index settings information for a given indexstatic MultiGetItem.FailuregetFailure(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 aGetIndexResponsestatic TemplateDatagetTemplateData(org.elasticsearch.client.indices.GetIndexTemplatesResponse getIndexTemplatesResponse, String templateName) Deprecated.static ReindexResponse.FailurereindexResponseFailureOf(org.elasticsearch.action.bulk.BulkItemResponse.Failure failure) Deprecated.static ReindexResponsereindexResponseOf(org.elasticsearch.index.reindex.BulkByScrollResponse bulkByScrollResponse) Deprecated.static AliasDatatoAliasData(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
IndexInformations 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
IndexInformations 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.FailurefromBulkItemResponse.Failure- Parameters:
failure-BulkItemResponse.Failureto translate- Returns:
- a new
ByQueryResponse.Failure
-
byQueryResponseSearchFailureOf
public static ByQueryResponse.SearchFailure byQueryResponseSearchFailureOf(org.elasticsearch.index.reindex.ScrollableHitSource.SearchFailure searchFailure) Deprecated.Create a newByQueryResponse.SearchFailurefromScrollableHitSource.SearchFailure- Parameters:
searchFailure-ScrollableHitSource.SearchFailureto 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
-