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-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<T>
toEntity
(SearchDocument searchDocument) converts aSearchDocument
to an entitytoSearchHit
(SearchDocument searchDocument) converts aSearchDocument
into a SearchHit
-
Method Details
-
toEntity
converts aSearchDocument
to an entity- Parameters:
searchDocument
- the document to convert- Returns:
- the entity in a MOno
-
toSearchHit
converts aSearchDocument
into a SearchHit- Parameters:
searchDocument
- the document to convert- Returns:
- the converted SearchHit
-