public class BulkIndexHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
BulkIndexHelper.IResponseHandler |
class |
BulkIndexHelper.Session |
| Constructor and Description |
|---|
BulkIndexHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
await()
await termination of all running batch index tasks
|
void |
bulkIndex(org.elasticsearch.action.bulk.BulkRequestBuilder request) |
void |
bulkIndex(Esi4JIndex index,
List<?> list) |
int |
getFailed() |
int |
getMaxRunning() |
int |
getSucceeded() |
BulkIndexHelper.Session |
newSession(org.elasticsearch.client.Client client,
String indexName,
Esi4JOperation.OperationContext context,
int batchSize) |
BulkIndexHelper.Session |
newSession(Esi4JIndex index,
int batchSize) |
BulkIndexHelper |
setMaxRunning(int maxRunning) |
BulkIndexHelper |
setResponseHandler(BulkIndexHelper.IResponseHandler responseHandler) |
public BulkIndexHelper.Session newSession(Esi4JIndex index, int batchSize)
public BulkIndexHelper.Session newSession(org.elasticsearch.client.Client client, String indexName, Esi4JOperation.OperationContext context, int batchSize)
public void bulkIndex(Esi4JIndex index, List<?> list)
public void bulkIndex(org.elasticsearch.action.bulk.BulkRequestBuilder request)
public void await()
throws InterruptedException
InterruptedExceptionpublic int getSucceeded()
public int getFailed()
public int getMaxRunning()
public BulkIndexHelper setMaxRunning(int maxRunning)
public BulkIndexHelper setResponseHandler(BulkIndexHelper.IResponseHandler responseHandler)
Copyright © 2013 Molindo GmbH. All Rights Reserved.