Package io.ebeanservice.elastic.query
Class EQueryService
- java.lang.Object
-
- io.ebeanservice.elastic.query.EQueryService
-
public class EQueryService extends Object
Internal query service.
-
-
Constructor Summary
Constructors Constructor Description EQueryService(io.ebean.plugin.SpiServer server, com.fasterxml.jackson.core.JsonFactory jsonFactory, IndexMessageSender messageSender)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcopyIndexSince(io.ebean.plugin.BeanType<?> desc, String newIndex, BulkUpdate txn, long epochMillis)Execute copyIndexSince which does a raw index to index copy.longcopyIndexSince(io.ebeaninternal.api.SpiQuery<?> query, String newIndex, BulkUpdate txn)Execute copyIndexSince which does a raw index to index copy.<T> TfindById(io.ebeanservice.docstore.api.DocQueryRequest<T> request)Execute the find by id query request.<T> voidfindEach(io.ebeanservice.docstore.api.DocQueryRequest<T> request, Consumer<T> consumer)Execute the findEach query request.voidfindEachRaw(String indexName, String rawQuery, Consumer<io.ebeanservice.docstore.api.RawDoc> consumer)Execute raw find each query.<T> voidfindEachWhile(io.ebeanservice.docstore.api.DocQueryRequest<T> request, Predicate<T> consumer)Execute the findEachWhile query request.voidfindEachWhile(String nameType, String jsonQuery, Predicate<io.ebeanservice.docstore.api.RawDoc> consumer)Execute raw find each query.<T> List<T>findList(io.ebeanservice.docstore.api.DocQueryRequest<T> request)Execute the findList query request.<T> io.ebean.PagedList<T>findPagedList(io.ebeanservice.docstore.api.DocQueryRequest<T> request)Execute the query returning a PagedList of hits.
-
-
-
Constructor Detail
-
EQueryService
public EQueryService(io.ebean.plugin.SpiServer server, com.fasterxml.jackson.core.JsonFactory jsonFactory, IndexMessageSender messageSender)
-
-
Method Detail
-
findPagedList
public <T> io.ebean.PagedList<T> findPagedList(io.ebeanservice.docstore.api.DocQueryRequest<T> request)
Execute the query returning a PagedList of hits.
-
findList
public <T> List<T> findList(io.ebeanservice.docstore.api.DocQueryRequest<T> request)
Execute the findList query request.
-
findEachWhile
public <T> void findEachWhile(io.ebeanservice.docstore.api.DocQueryRequest<T> request, Predicate<T> consumer)
Execute the findEachWhile query request.
-
findEach
public <T> void findEach(io.ebeanservice.docstore.api.DocQueryRequest<T> request, Consumer<T> consumer)
Execute the findEach query request.
-
findById
public <T> T findById(io.ebeanservice.docstore.api.DocQueryRequest<T> request)
Execute the find by id query request.
-
copyIndexSince
public long copyIndexSince(io.ebean.plugin.BeanType<?> desc, String newIndex, BulkUpdate txn, long epochMillis)
Execute copyIndexSince which does a raw index to index copy.
-
copyIndexSince
public long copyIndexSince(io.ebeaninternal.api.SpiQuery<?> query, String newIndex, BulkUpdate txn)
Execute copyIndexSince which does a raw index to index copy.
-
findEachRaw
public void findEachRaw(String indexName, String rawQuery, Consumer<io.ebeanservice.docstore.api.RawDoc> consumer)
Execute raw find each query.
-
findEachWhile
public void findEachWhile(String nameType, String jsonQuery, Predicate<io.ebeanservice.docstore.api.RawDoc> consumer)
Execute raw find each query.
-
-