Package org.elasticsearch.index.reindex
Class AbstractAsyncBulkByScrollAction.ScriptApplier
java.lang.Object
org.elasticsearch.index.reindex.AbstractAsyncBulkByScrollAction.ScriptApplier
- All Implemented Interfaces:
BiFunction<AbstractAsyncBulkByScrollAction.RequestWrapper<?>,org.elasticsearch.index.reindex.ScrollableHitSource.Hit,AbstractAsyncBulkByScrollAction.RequestWrapper<?>>
- Enclosing class:
- AbstractAsyncBulkByScrollAction<Request extends org.elasticsearch.index.reindex.AbstractBulkByScrollRequest<Request>,Action extends org.elasticsearch.action.support.TransportAction<Request,?>>
public abstract static class AbstractAsyncBulkByScrollAction.ScriptApplier
extends Object
implements BiFunction<AbstractAsyncBulkByScrollAction.RequestWrapper<?>,org.elasticsearch.index.reindex.ScrollableHitSource.Hit,AbstractAsyncBulkByScrollAction.RequestWrapper<?>>
Apply a
Script
to a AbstractAsyncBulkByScrollAction.RequestWrapper
-
Constructor Summary
ConstructorsConstructorDescriptionScriptApplier(org.elasticsearch.index.reindex.WorkerBulkByScrollTaskState taskWorker, org.elasticsearch.script.ScriptService scriptService, org.elasticsearch.script.Script script, Map<String,Object> params)
-
Method Summary
Modifier and TypeMethodDescriptionapply(AbstractAsyncBulkByScrollAction.RequestWrapper<?> request, org.elasticsearch.index.reindex.ScrollableHitSource.Hit doc)
protected abstract void
scriptChangedId(AbstractAsyncBulkByScrollAction.RequestWrapper<?> request, Object to)
protected abstract void
scriptChangedIndex(AbstractAsyncBulkByScrollAction.RequestWrapper<?> request, Object to)
protected AbstractAsyncBulkByScrollAction.RequestWrapper<?>
scriptChangedOpType(AbstractAsyncBulkByScrollAction.RequestWrapper<?> request, AbstractAsyncBulkByScrollAction.OpType oldOpType, AbstractAsyncBulkByScrollAction.OpType newOpType)
protected abstract void
scriptChangedRouting(AbstractAsyncBulkByScrollAction.RequestWrapper<?> request, Object to)
protected abstract void
scriptChangedType(AbstractAsyncBulkByScrollAction.RequestWrapper<?> request, Object to)
protected abstract void
scriptChangedVersion(AbstractAsyncBulkByScrollAction.RequestWrapper<?> request, Object to)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
ScriptApplier
-
-
Method Details
-
apply
public AbstractAsyncBulkByScrollAction.RequestWrapper<?> apply(AbstractAsyncBulkByScrollAction.RequestWrapper<?> request, org.elasticsearch.index.reindex.ScrollableHitSource.Hit doc)- Specified by:
apply
in interfaceBiFunction<AbstractAsyncBulkByScrollAction.RequestWrapper<?>,org.elasticsearch.index.reindex.ScrollableHitSource.Hit,AbstractAsyncBulkByScrollAction.RequestWrapper<?>>
-
scriptChangedOpType
protected AbstractAsyncBulkByScrollAction.RequestWrapper<?> scriptChangedOpType(AbstractAsyncBulkByScrollAction.RequestWrapper<?> request, AbstractAsyncBulkByScrollAction.OpType oldOpType, AbstractAsyncBulkByScrollAction.OpType newOpType) -
scriptChangedIndex
protected abstract void scriptChangedIndex(AbstractAsyncBulkByScrollAction.RequestWrapper<?> request, Object to) -
scriptChangedType
protected abstract void scriptChangedType(AbstractAsyncBulkByScrollAction.RequestWrapper<?> request, Object to) -
scriptChangedId
protected abstract void scriptChangedId(AbstractAsyncBulkByScrollAction.RequestWrapper<?> request, Object to) -
scriptChangedVersion
protected abstract void scriptChangedVersion(AbstractAsyncBulkByScrollAction.RequestWrapper<?> request, Object to) -
scriptChangedRouting
protected abstract void scriptChangedRouting(AbstractAsyncBulkByScrollAction.RequestWrapper<?> request, Object to)
-