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.
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 Summary
Modifier and TypeMethodDescriptiononAfterLoad(Document document, Class<T> type, IndexCoordinates indexCoordinates) Entity callback method invoked after aDocumentis read from Elasticsearch.
-
Method Details
-
onAfterLoad
Entity callback method invoked after aDocumentis read from Elasticsearch. Can return either the same or a modified instance of theDocumentobject.- Parameters:
document- the document.type- the type into which the document will be convertedindexCoordinates- of the index the document was read from.- Returns:
- a possible modified or new
Document.
-