Package io.ebeanservice.elastic
Class ElasticQueryUpdate<T>
- java.lang.Object
-
- io.ebeanservice.elastic.ElasticQueryUpdate<T>
-
- All Implemented Interfaces:
io.ebeanservice.docstore.api.DocStoreQueryUpdate<T>
public class ElasticQueryUpdate<T> extends Object implements io.ebeanservice.docstore.api.DocStoreQueryUpdate<T>
ElasticSearch implementation of DocStoreQueryUpdate.Uses the ElasticSearch BULK API.
-
-
Constructor Summary
Constructors Constructor Description ElasticQueryUpdate(BulkUpdate bulkUpdate, io.ebean.plugin.BeanType<T> beanType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()Flush the current buffer sending the Bulk API request to ElasticSearch.voidstore(Object idValue, T bean)
-
-
-
Constructor Detail
-
ElasticQueryUpdate
public ElasticQueryUpdate(BulkUpdate bulkUpdate, io.ebean.plugin.BeanType<T> beanType) throws IOException
- Throws:
IOException
-
-
Method Detail
-
store
public void store(Object idValue, T bean) throws IOException
- Specified by:
storein interfaceio.ebeanservice.docstore.api.DocStoreQueryUpdate<T>- Throws:
IOException
-
flush
public void flush() throws IOException
Flush the current buffer sending the Bulk API request to ElasticSearch.- Specified by:
flushin interfaceio.ebeanservice.docstore.api.DocStoreQueryUpdate<T>- Throws:
IOException
-
-