Class IndexWork.Builder
- java.lang.Object
-
- org.hibernate.search.backend.elasticsearch.work.impl.AbstractSingleDocumentIndexingWork.AbstractBuilder<IndexWork.Builder>
-
- org.hibernate.search.backend.elasticsearch.work.impl.IndexWork.Builder
-
- Enclosing class:
- IndexWork
public static class IndexWork.Builder extends AbstractSingleDocumentIndexingWork.AbstractBuilder<IndexWork.Builder>
-
-
Field Summary
-
Fields inherited from class org.hibernate.search.backend.elasticsearch.work.impl.AbstractSingleDocumentIndexingWork.AbstractBuilder
documentIdentifier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexWorkbuild()protected com.google.gson.JsonObjectbuildBulkableActionBody()protected com.google.gson.JsonObjectbuildBulkableActionMetadata()static IndexWork.BuilderforElasticsearch67AndBelow(String entityTypeName, Object entityIdentifier, URLEncodedString elasticsearchIndexName, URLEncodedString typeName, String documentIdentifier, String routingKey, com.google.gson.JsonObject document)static IndexWork.BuilderforElasticsearch7AndAbove(String entityTypeName, Object entityIdentifier, URLEncodedString elasticsearchIndexName, String documentIdentifier, String routingKey, com.google.gson.JsonObject document)-
Methods inherited from class org.hibernate.search.backend.elasticsearch.work.impl.AbstractSingleDocumentIndexingWork.AbstractBuilder
refresh
-
-
-
-
Method Detail
-
forElasticsearch67AndBelow
public static IndexWork.Builder forElasticsearch67AndBelow(String entityTypeName, Object entityIdentifier, URLEncodedString elasticsearchIndexName, URLEncodedString typeName, String documentIdentifier, String routingKey, com.google.gson.JsonObject document)
-
forElasticsearch7AndAbove
public static IndexWork.Builder forElasticsearch7AndAbove(String entityTypeName, Object entityIdentifier, URLEncodedString elasticsearchIndexName, String documentIdentifier, String routingKey, com.google.gson.JsonObject document)
-
buildBulkableActionMetadata
protected com.google.gson.JsonObject buildBulkableActionMetadata()
- Specified by:
buildBulkableActionMetadatain classAbstractSingleDocumentIndexingWork.AbstractBuilder<IndexWork.Builder>
-
buildBulkableActionBody
protected com.google.gson.JsonObject buildBulkableActionBody()
- Specified by:
buildBulkableActionBodyin classAbstractSingleDocumentIndexingWork.AbstractBuilder<IndexWork.Builder>
-
build
public IndexWork build()
- Specified by:
buildin classAbstractSingleDocumentIndexingWork.AbstractBuilder<IndexWork.Builder>
-
-