Class ElasticsearchReaderUtil
java.lang.Object
io.camunda.optimize.service.db.es.reader.ElasticsearchReaderUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> booleanatLeastOneResponseExistsForMultiGet(co.elastic.clients.elasticsearch.core.MgetResponse<T> multiGetResponse) static <T> List<T> mapHits(co.elastic.clients.elasticsearch.core.search.HitsMetadata<?> searchHits, Class<T> itemClass, com.fasterxml.jackson.databind.ObjectMapper objectMapper) static <T> List<T> mapHits(co.elastic.clients.elasticsearch.core.search.HitsMetadata<?> searchHits, Class<T> itemClass, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean agg) static <T> List<T> mapHits(co.elastic.clients.elasticsearch.core.search.HitsMetadata<?> searchHits, Integer resultLimit, Class<T> itemClass, Function<co.elastic.clients.elasticsearch.core.search.Hit<?>, T> mappingFunction) static <T> List<T> retrieveAllScrollResults(co.elastic.clients.elasticsearch.core.SearchResponse<?> initialScrollResponse, Class<T> itemClass, Function<co.elastic.clients.elasticsearch.core.search.Hit<?>, T> mappingFunction, OptimizeElasticsearchClient esClient, Integer scrollingTimeoutInSeconds) static <T> List<T> retrieveAllScrollResults(co.elastic.clients.elasticsearch.core.SearchResponse<T> initialScrollResponse, Class<T> itemClass, com.fasterxml.jackson.databind.ObjectMapper objectMapper, OptimizeElasticsearchClient esClient, Integer scrollingTimeoutInSeconds) static <T> PageResultDto<T> retrieveNextScrollResultsPage(String scrollId, Class<T> itemClass, Function<co.elastic.clients.elasticsearch.core.search.Hit<?>, T> mappingFunction, OptimizeElasticsearchClient esClient, Integer scrollingTimeoutInSeconds, Integer limit) static <T> List<T> retrieveScrollResultsTillLimit(co.elastic.clients.elasticsearch.core.search.ResponseBody<?> initialScrollResponse, Class<T> itemClass, com.fasterxml.jackson.databind.ObjectMapper objectMapper, OptimizeElasticsearchClient esClient, Integer scrollingTimeoutInSeconds, Integer limit) static <T> List<T> retrieveScrollResultsTillLimit(co.elastic.clients.elasticsearch.core.search.ResponseBody<?> initialScrollResponse, Class<T> itemClass, com.fasterxml.jackson.databind.ObjectMapper objectMapper, OptimizeElasticsearchClient esClient, Integer scrollingTimeoutInSeconds, Integer limit, boolean agg) static <T> List<T> retrieveScrollResultsTillLimit(co.elastic.clients.elasticsearch.core.search.ResponseBody<?> initialScrollResponse, Class<T> itemClass, Function<co.elastic.clients.elasticsearch.core.search.Hit<?>, T> mappingFunction, OptimizeElasticsearchClient esClient, Integer scrollingTimeoutInSeconds, Integer limit)
-
Method Details
-
retrieveAllScrollResults
public static <T> List<T> retrieveAllScrollResults(co.elastic.clients.elasticsearch.core.SearchResponse<T> initialScrollResponse, Class<T> itemClass, com.fasterxml.jackson.databind.ObjectMapper objectMapper, OptimizeElasticsearchClient esClient, Integer scrollingTimeoutInSeconds) -
retrieveAllScrollResults
public static <T> List<T> retrieveAllScrollResults(co.elastic.clients.elasticsearch.core.SearchResponse<?> initialScrollResponse, Class<T> itemClass, Function<co.elastic.clients.elasticsearch.core.search.Hit<?>, T> mappingFunction, OptimizeElasticsearchClient esClient, Integer scrollingTimeoutInSeconds) -
retrieveScrollResultsTillLimit
public static <T> List<T> retrieveScrollResultsTillLimit(co.elastic.clients.elasticsearch.core.search.ResponseBody<?> initialScrollResponse, Class<T> itemClass, com.fasterxml.jackson.databind.ObjectMapper objectMapper, OptimizeElasticsearchClient esClient, Integer scrollingTimeoutInSeconds, Integer limit) -
retrieveScrollResultsTillLimit
public static <T> List<T> retrieveScrollResultsTillLimit(co.elastic.clients.elasticsearch.core.search.ResponseBody<?> initialScrollResponse, Class<T> itemClass, com.fasterxml.jackson.databind.ObjectMapper objectMapper, OptimizeElasticsearchClient esClient, Integer scrollingTimeoutInSeconds, Integer limit, boolean agg) -
retrieveNextScrollResultsPage
public static <T> PageResultDto<T> retrieveNextScrollResultsPage(String scrollId, Class<T> itemClass, Function<co.elastic.clients.elasticsearch.core.search.Hit<?>, T> mappingFunction, OptimizeElasticsearchClient esClient, Integer scrollingTimeoutInSeconds, Integer limit) -
retrieveScrollResultsTillLimit
public static <T> List<T> retrieveScrollResultsTillLimit(co.elastic.clients.elasticsearch.core.search.ResponseBody<?> initialScrollResponse, Class<T> itemClass, Function<co.elastic.clients.elasticsearch.core.search.Hit<?>, T> mappingFunction, OptimizeElasticsearchClient esClient, Integer scrollingTimeoutInSeconds, Integer limit) -
mapHits
-
mapHits
-
mapHits
-
atLeastOneResponseExistsForMultiGet
public static <T> boolean atLeastOneResponseExistsForMultiGet(co.elastic.clients.elasticsearch.core.MgetResponse<T> multiGetResponse)
-