Interface AbstractReactiveElasticsearchTemplate.SearchDocumentCallback<T>
- Type Parameters:
T- the entity type
- All Known Implementing Classes:
AbstractReactiveElasticsearchTemplate.ReadSearchDocumentCallback
- Enclosing class:
AbstractReactiveElasticsearchTemplate
protected static interface AbstractReactiveElasticsearchTemplate.SearchDocumentCallback<T>
Callback to convert a
SearchDocument into different other classes- Since:
- 4.4
- Author:
- Peter-Josef Meisch
-
Method Summary
Modifier and TypeMethodDescriptiontoEntity(SearchDocument searchDocument) converts aSearchDocumentto an entitytoSearchHit(SearchDocument searchDocument) converts aSearchDocumentinto a SearchHit
-
Method Details
-
toEntity
converts aSearchDocumentto an entity- Parameters:
searchDocument- the document to convert- Returns:
- the entity in a MOno
-
toSearchHit
converts aSearchDocumentinto a SearchHit- Parameters:
searchDocument- the document to convert- Returns:
- the converted SearchHit
-