Package com.adaptris.core.elastic.rest
Class ElasticRequestBuilder
java.lang.Object
com.adaptris.core.elastic.rest.ElasticRequestBuilder
- All Implemented Interfaces:
RequestBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.action.bulk.BulkRequestorg.elasticsearch.action.delete.DeleteRequestbuildDeleteRequest(String index, com.adaptris.core.elastic.DocumentWrapper doc, String refreshPolicy) org.elasticsearch.action.index.IndexRequestbuildIndexRequest(String index, com.adaptris.core.elastic.DocumentWrapper doc, String refreshPolicy) org.elasticsearch.action.update.UpdateRequestbuildUpdateRequest(String index, com.adaptris.core.elastic.DocumentWrapper doc, String refreshPolicy) org.elasticsearch.action.update.UpdateRequestbuildUpsertRequest(String index, com.adaptris.core.elastic.DocumentWrapper doc, String refreshPolicy)
-
Constructor Details
-
ElasticRequestBuilder
public ElasticRequestBuilder()
-
-
Method Details
-
buildIndexRequest
public org.elasticsearch.action.index.IndexRequest buildIndexRequest(String index, com.adaptris.core.elastic.DocumentWrapper doc, String refreshPolicy) - Specified by:
buildIndexRequestin interfaceRequestBuilder
-
buildUpdateRequest
public org.elasticsearch.action.update.UpdateRequest buildUpdateRequest(String index, com.adaptris.core.elastic.DocumentWrapper doc, String refreshPolicy) - Specified by:
buildUpdateRequestin interfaceRequestBuilder
-
buildUpsertRequest
public org.elasticsearch.action.update.UpdateRequest buildUpsertRequest(String index, com.adaptris.core.elastic.DocumentWrapper doc, String refreshPolicy) - Specified by:
buildUpsertRequestin interfaceRequestBuilder
-
buildDeleteRequest
public org.elasticsearch.action.delete.DeleteRequest buildDeleteRequest(String index, com.adaptris.core.elastic.DocumentWrapper doc, String refreshPolicy) - Specified by:
buildDeleteRequestin interfaceRequestBuilder
-
buildBulkRequest
public org.elasticsearch.action.bulk.BulkRequest buildBulkRequest()- Specified by:
buildBulkRequestin interfaceRequestBuilder
-