com.github.pukkaone.jarinvoke.CompositeCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jar-invoke Show documentation
Show all versions of jar-invoke Show documentation
Elasticsearch plugin to invoke Java code
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