Interface AfterLoadCallback<T>

All Superinterfaces:
EntityCallback<Document>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface AfterLoadCallback<T> extends EntityCallback<Document>
Callback being invoked after a Document is read from Elasticsearch and before it is converted into a domain object.
Since:
4.4
Author:
Peter-Josef Meisch
See Also:
  • Method Details

    • onAfterLoad

      Document onAfterLoad(Document document, Class<T> type, IndexCoordinates indexCoordinates)
      Entity callback method invoked after a domain object is materialized from a Document. Can return either the same or a modified instance of the Document object.
      Parameters:
      document - the document.
      indexCoordinates - of the index the document was read from.
      Returns:
      a possible modified or new Document.