Skip to content

Instantly share code, notes, and snippets.

Avatar

Mitya Gladyshev dgladyshev

View GitHub Profile
@dgladyshev
dgladyshev / BulkProcessorProvider.java
Created Aug 15, 2015
BulkProcessorProvider provides other classes with instance of BulkProcessor. BulkProcessor is useful then you need to upload large sets of data to elasticsearch.
View BulkProcessorProvider.java
package dglad.projectname.elastic;
import org.elasticsearch.action.bulk.BulkProcessor;
import org.elasticsearch.action.bulk.BulkRequest;
import org.elasticsearch.action.bulk.BulkResponse;
import org.elasticsearch.client.Client;
import org.elasticsearch.common.unit.ByteSizeUnit;
import org.elasticsearch.common.unit.ByteSizeValue;
import org.elasticsearch.common.unit.TimeValue;
You can’t perform that action at this time.