public class TaskJsonMapper extends BaseJsonMapper<TaskSearchRepresentation> implements TaskResultMapper
TaskResultMapper.Enhancer
Modifier and Type | Field and Description |
---|---|
protected List<TaskResultMapper.Enhancer> |
resultMapperEnhancers |
Constructor and Description |
---|
TaskJsonMapper() |
Modifier and Type | Method and Description |
---|---|
TaskSearchRepresentation |
convert(com.fasterxml.jackson.databind.JsonNode sourceNode)
Converts the given source node (not the full Elasticsearch hit document, just the source object within it).
|
TaskSearchRepresentation |
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.
|
protected TaskSearchRepresentation |
convertWithoutEnhancer(com.fasterxml.jackson.databind.JsonNode jsonNode) |
List<TaskResultMapper.Enhancer> |
getResultMapperEnhancers() |
void |
setResultMapperEnhancers(List<TaskResultMapper.Enhancer> resultMapperEnhancers) |
createScopeSearchInfo, createTranslationSearchResponses, flattenVariables, transformVariableNode
protected List<TaskResultMapper.Enhancer> resultMapperEnhancers
public TaskSearchRepresentation convertHit(com.fasterxml.jackson.databind.JsonNode hitNode)
ElasticsearchResultConverter.ResultMapper
convertHit
in interface ElasticsearchResultConverter.ResultMapper<TaskSearchRepresentation>
hitNode
- the full hit document node as being returned by Elasticsearchpublic TaskSearchRepresentation convert(com.fasterxml.jackson.databind.JsonNode sourceNode)
ElasticsearchResultConverter.ResultMapper
convert
in interface ElasticsearchResultConverter.ResultMapper<TaskSearchRepresentation>
sourceNode
- the source object as being returned within the Elasticsearch hit documentprotected TaskSearchRepresentation convertWithoutEnhancer(com.fasterxml.jackson.databind.JsonNode jsonNode)
public List<TaskResultMapper.Enhancer> getResultMapperEnhancers()
public void setResultMapperEnhancers(List<TaskResultMapper.Enhancer> resultMapperEnhancers)