All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.pukkaone.jarinvoke.CompositeCommand Maven / Gradle / Ivy

There is a newer version: 6.5.4-1
Show newest version
package com.github.pukkaone.jarinvoke;

import java.util.List;
import java.util.Map;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import org.elasticsearch.index.fielddata.ScriptDocValues;

/**
 * Executes multiple commands.
 */
@Data
@RequiredArgsConstructor
public class CompositeCommand implements Command {

  private final List commands;

  @Override
  public Object execute(Map variables, Map> docLookup) {
    Object result = null;
    for (Command command : commands) {
      result = command.execute(variables, docLookup);
    }

    return result;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy