Package com.flowable.indexing.utils
Interface ElasticsearchResultConverter.ResultMapper<T>
-
- Type Parameters:
T
- the response object type according the index where the search was executed
- All Known Subinterfaces:
CaseInstanceResultMapper
,ContentItemResultMapper
,ProcessInstanceResultMapper
,TaskResultMapper
,WorkInstanceResultMapper
- All Known Implementing Classes:
BaseJsonMapper
,CaseInstanceJsonMapper
,ContentItemJsonMapper
,ProcessInstanceJsonMapper
,TaskJsonMapper
,WorkInstanceJsonMapper
- Enclosing class:
- ElasticsearchResultConverter
public static interface ElasticsearchResultConverter.ResultMapper<T>
The result mapper is used to map a hit returned by an Elasticsearch query into a response object. You can either implement this interface directly or extend from the default implementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description T
convert(com.fasterxml.jackson.databind.JsonNode sourceNode)
Converts the given source node (not the full Elasticsearch hit document, just the source object within it).default T
convertHit(com.fasterxml.jackson.databind.JsonNode hitNode)
Implement this method, if you want to enhance or enrich the response with additional data outside of the source object within the hit document returned by Elasticsearch.
-
-
-
Method Detail
-
convertHit
default T convertHit(com.fasterxml.jackson.databind.JsonNode hitNode)
Implement this method, if you want to enhance or enrich the response with additional data outside of the source object within the hit document returned by Elasticsearch.- Parameters:
hitNode
- the full hit document node as being returned by Elasticsearch- Returns:
- the response object with the mapped / extracted data from the hit
-
convert
T convert(com.fasterxml.jackson.databind.JsonNode sourceNode)
Converts the given source node (not the full Elasticsearch hit document, just the source object within it).- Parameters:
sourceNode
- the source object as being returned within the Elasticsearch hit document- Returns:
- the converted response object
-
-