public abstract class AbstractAsyncBulkIndexByScrollAction<Request extends AbstractBulkIndexByScrollRequest<Request>,Response extends BulkIndexByScrollResponse> extends AbstractAsyncBulkByScrollAction<Request,Response>
mainRequest, task| Constructor and Description |
|---|
AbstractAsyncBulkIndexByScrollAction(BulkByScrollTask task,
ESLogger logger,
ScriptService scriptService,
Client client,
ThreadPool threadPool,
Version smallestNonClientVersion,
Request mainRequest,
SearchRequest firstSearchRequest,
ActionListener<Response> listener) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
applyScript(IndexRequest index,
SearchHit doc,
ExecutableScript script,
Map<String,Object> ctx)
Apply a script to the request.
|
protected BulkRequest |
buildBulk(Iterable<SearchHit> docs) |
protected abstract IndexRequest |
buildIndexRequest(SearchHit doc)
Build the IndexRequest for a single search hit.
|
protected void |
copyMetadata(IndexRequest index,
SearchHit doc)
Copies the metadata from a hit to the index request.
|
protected void |
copyRouting(IndexRequest index,
SearchHit doc)
Part of copyMetadata but called out individual for easy overwriting.
|
protected <T> T |
fieldValue(SearchHit doc,
String fieldName) |
protected abstract void |
scriptChangedId(IndexRequest index,
Object to) |
protected abstract void |
scriptChangedIndex(IndexRequest index,
Object to) |
protected abstract void |
scriptChangedParent(IndexRequest index,
Object to) |
protected abstract void |
scriptChangedRouting(IndexRequest index,
Object to) |
protected abstract void |
scriptChangedTimestamp(IndexRequest index,
Object to) |
protected abstract void |
scriptChangedTTL(IndexRequest index,
Object to) |
protected abstract void |
scriptChangedType(IndexRequest index,
Object to) |
protected abstract void |
scriptChangedVersion(IndexRequest index,
Object to) |
buildResponse, startpublic AbstractAsyncBulkIndexByScrollAction(BulkByScrollTask task, ESLogger logger, ScriptService scriptService, Client client, ThreadPool threadPool, Version smallestNonClientVersion, Request mainRequest, SearchRequest firstSearchRequest, ActionListener<Response> listener)
protected abstract IndexRequest buildIndexRequest(SearchHit doc)
protected BulkRequest buildBulk(Iterable<SearchHit> docs)
buildBulk in class AbstractAsyncBulkByScrollAction<Request extends AbstractBulkIndexByScrollRequest<Request>,Response extends BulkIndexByScrollResponse>protected void copyMetadata(IndexRequest index, SearchHit doc)
protected void copyRouting(IndexRequest index, SearchHit doc)
protected boolean applyScript(IndexRequest index, SearchHit doc, ExecutableScript script, Map<String,Object> ctx)
protected abstract void scriptChangedIndex(IndexRequest index, Object to)
protected abstract void scriptChangedType(IndexRequest index, Object to)
protected abstract void scriptChangedId(IndexRequest index, Object to)
protected abstract void scriptChangedVersion(IndexRequest index, Object to)
protected abstract void scriptChangedRouting(IndexRequest index, Object to)
protected abstract void scriptChangedParent(IndexRequest index, Object to)
protected abstract void scriptChangedTimestamp(IndexRequest index, Object to)
protected abstract void scriptChangedTTL(IndexRequest index, Object to)
Copyright © 2009–2017. All rights reserved.