net.sf.aguacate.function.Function Maven / Gradle / Ivy
package net.sf.aguacate.function;
import java.util.Map;
public interface Function {
String LT = "LT";
String GT = "GT";
String GT_TODAY = "GT_TODAY";
String EQ = "EQ";
String NE = "NE";
String ZERO = "ZERO";
String NOT_ZERO = "NOT_ZERO";
String REN = "REN";
String COPY = "COPY";
String SCRIPT = "SCRIPT";
String STRUCTURE_ARRAY_ITERATOR = "STRUCTURE_ARRAY_ITERATOR";
String CONSTANT = "CONSTANT";
String SELECT_SINGLE = "SELECT_SINGLE";
String CONDITIONAL = "CONDITIONAL";
String APPLY = "APPLY";
String SQL_COUNT_NOT_ZERO = "SQL_COUNT_NOT_ZERO";
String SQL_COUNT_ZERO = "SQL_COUNT_ZERO";
String BASE64_DECODE = "BASE64_DECODE";
String SHA256 = "SHA256";
String TO_JSON = "TO_JSON";
String FROM_JSON = "FROM_JSON";
String getName();
default String[] getOutputContext() {
return null;
}
default String getOutputName() {
return null;
}
FunctionEvalResult evaluate(FunctionContext functionContext, Map context);
boolean validFor(String method);
}