public class ArraySort extends AbstractFunction implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
static int |
START_BIND_INDEX |
static StringEvalNodeStrongComparator |
STRING_EVAL_NODE_STRONG_COMPARATOR |
converter, evaluator, executor, logger, parser, resourceLoader| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<EvalNode> |
execute(Context context,
List<EvalNode> args)
Method returns
CompletableFuture with result of execution. |
String |
getName()
Return function name
|
static CompletableFuture<List<Map.Entry<String,EvalNode>>> |
merge(List<Map.Entry<String,EvalNode>> left,
List<Map.Entry<String,EvalNode>> right,
MacroEvalNode macroNode,
Context context) |
static CompletableFuture<LinkedList<Map.Entry<String,EvalNode>>> |
mergeHelper(List<Map.Entry<String,EvalNode>> left,
List<Map.Entry<String,EvalNode>> right,
MacroEvalNode macroNode,
Context context,
LinkedList<Map.Entry<String,EvalNode>> a) |
static CompletableFuture<List<Map.Entry<String,EvalNode>>> |
sort(List<CompletableFuture<Map.Entry<String,EvalNode>>> nodes,
MacroEvalNode macroNode,
Context context) |
checkMaxArgsLength, checkMinArgsLength, checkTypes, checkTypes, clearGlobal, createCtx, getLongValue, getValue, getValue, isAsync, isClearpublic static final String NAME
public static final StringEvalNodeStrongComparator STRING_EVAL_NODE_STRONG_COMPARATOR
public static final int START_BIND_INDEX
public ArraySort(Converter converter)
public static CompletableFuture<List<Map.Entry<String,EvalNode>>> sort(List<CompletableFuture<Map.Entry<String,EvalNode>>> nodes, MacroEvalNode macroNode, Context context)
public static CompletableFuture<List<Map.Entry<String,EvalNode>>> merge(List<Map.Entry<String,EvalNode>> left, List<Map.Entry<String,EvalNode>> right, MacroEvalNode macroNode, Context context)
public static CompletableFuture<LinkedList<Map.Entry<String,EvalNode>>> mergeHelper(List<Map.Entry<String,EvalNode>> left, List<Map.Entry<String,EvalNode>> right, MacroEvalNode macroNode, Context context, LinkedList<Map.Entry<String,EvalNode>> a)
public CompletableFuture<EvalNode> execute(Context context, List<EvalNode> args) throws FunctionExecutionException
FunctionCompletableFuture with result of execution.execute in interface Functionargs - arguments from Histone templateFunctionExecutionException - if your function stops with error and you need to put details into log,
then you should use this exceptionCopyright © 2017. All rights reserved.