Interface AbstractReactiveElasticsearchTemplate.DocumentCallback<T>

Type Parameters:
T - the entity type
All Known Implementing Classes:
AbstractReactiveElasticsearchTemplate.ReadDocumentCallback
Enclosing class:
AbstractReactiveElasticsearchTemplate

protected static interface AbstractReactiveElasticsearchTemplate.DocumentCallback<T>
Callback to convert Document into an entity of type T
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<T>
    toEntity(Document document)
    Convert a document into an entity
  • Method Details

    • toEntity

      @NonNull reactor.core.publisher.Mono<T> toEntity(@Nullable Document document)
      Convert a document into an entity
      Parameters:
      document - the document to convert
      Returns:
      a Mono of the entity