Class UpdateHelper


  • public class UpdateHelper
    extends AbstractComponent
    Helper for translating an update request to an index, delete request or update response.
    • Method Detail

      • prepare

        public UpdateHelper.Result prepare​(UpdateRequest request,
                                           IndexShard indexShard,
                                           java.util.function.LongSupplier nowInMillis)
        Prepares an update request by converting it into an index or delete request or an update response (no action).
      • prepare

        protected UpdateHelper.Result prepare​(ShardId shardId,
                                              UpdateRequest request,
                                              GetResult getResult,
                                              java.util.function.LongSupplier nowInMillis)
        Prepares an update request by converting it into an index or delete request or an update response (no action, in the event of a noop).