Package com.flowable.indexing.utils
Class ElasticsearchResultConverter
java.lang.Object
com.flowable.indexing.utils.ElasticsearchResultConverter
public class ElasticsearchResultConverter
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ElasticsearchResultConverter.ResultMapper<T>
-
Method Summary
Modifier and Type Method Description protected static <T> java.util.List<T>
convertHits(com.fasterxml.jackson.databind.JsonNode hitsRoot, ElasticsearchResultConverter.ResultMapper<T> resultMapper)
static <T> Page<T>
convertSearchResult(com.fasterxml.jackson.databind.JsonNode searchResult, ElasticsearchResultConverter.ResultMapper<T> resultMapper, int start, int size)
static <T> java.util.List<T>
convertSearchResultToList(com.fasterxml.jackson.databind.JsonNode searchResult, ElasticsearchResultConverter.ResultMapper<T> resultMapper)
protected static long
getHitsTotalCount(com.fasterxml.jackson.databind.JsonNode hitsRoot)
-
Method Details
-
convertSearchResult
public static <T> Page<T> convertSearchResult(com.fasterxml.jackson.databind.JsonNode searchResult, ElasticsearchResultConverter.ResultMapper<T> resultMapper, int start, int size) -
convertSearchResultToList
public static <T> java.util.List<T> convertSearchResultToList(com.fasterxml.jackson.databind.JsonNode searchResult, ElasticsearchResultConverter.ResultMapper<T> resultMapper) -
convertHits
protected static <T> java.util.List<T> convertHits(com.fasterxml.jackson.databind.JsonNode hitsRoot, ElasticsearchResultConverter.ResultMapper<T> resultMapper) -
getHitsTotalCount
protected static long getHitsTotalCount(com.fasterxml.jackson.databind.JsonNode hitsRoot)
-