public class BatchOperation<T> extends Object implements Serializable
| Constructor and Description |
|---|
BatchOperation(String indexName,
String action) |
BatchOperation(String indexName,
String action,
T body) |
BatchOperation(String action,
T body) |
| Modifier and Type | Method and Description |
|---|---|
static <T> BatchOperation<T> |
createAddObject(T body) |
static <T> BatchOperation<T> |
createDelete(T body) |
static <T> BatchOperation<T> |
createDeleteObject(T body) |
static <T> BatchOperation<T> |
createPartialUpdateObject(T body) |
static <T> BatchOperation<T> |
createPartialUpdateObjectNoCreate(T body) |
static <T> BatchOperation<T> |
createUpdateObject(T body) |
String |
getAction() |
T |
getBody() |
String |
getIndexName() |
BatchOperation<T> |
setAction(String action) |
BatchOperation<T> |
setBody(T body) |
BatchOperation<T> |
setIndexName(String indexName) |
public static <T> BatchOperation<T> createAddObject(@Nonnull T body)
public static <T> BatchOperation<T> createUpdateObject(@Nonnull T body)
public static <T> BatchOperation<T> createPartialUpdateObject(@Nonnull T body)
public static <T> BatchOperation<T> createPartialUpdateObjectNoCreate(@Nonnull T body)
public static <T> BatchOperation<T> createDeleteObject(@Nonnull T body)
public static <T> BatchOperation<T> createDelete(@Nonnull T body)
public String getAction()
public BatchOperation<T> setAction(String action)
public String getIndexName()
public BatchOperation<T> setIndexName(String indexName)
public T getBody()
public BatchOperation<T> setBody(T body)
Copyright © 2019. All rights reserved.