Class BatchOperation<T>
- java.lang.Object
-
- com.algolia.search.models.indexing.BatchOperation<T>
-
- All Implemented Interfaces:
Serializable
public class BatchOperation<T> extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BatchOperation(String indexName, String action)BatchOperation(String indexName, String action, T body)BatchOperation(String action, T body)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)StringgetAction()TgetBody()StringgetIndexName()BatchOperation<T>setAction(String action)BatchOperation<T>setBody(T body)BatchOperation<T>setIndexName(String indexName)
-
-
-
Method Detail
-
createAddObject
public static <T> BatchOperation<T> createAddObject(@Nonnull T body)
-
createUpdateObject
public static <T> BatchOperation<T> createUpdateObject(@Nonnull T body)
-
createPartialUpdateObject
public static <T> BatchOperation<T> createPartialUpdateObject(@Nonnull T body)
-
createPartialUpdateObjectNoCreate
public static <T> BatchOperation<T> createPartialUpdateObjectNoCreate(@Nonnull T body)
-
createDeleteObject
public static <T> BatchOperation<T> createDeleteObject(@Nonnull T body)
-
createDelete
public static <T> BatchOperation<T> createDelete(@Nonnull T body)
-
getAction
public String getAction()
-
setAction
public BatchOperation<T> setAction(String action)
-
getIndexName
public String getIndexName()
-
setIndexName
public BatchOperation<T> setIndexName(String indexName)
-
getBody
public T getBody()
-
setBody
public BatchOperation<T> setBody(T body)
-
-