public class WarpScriptExecutor
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
WarpScriptExecutor.StackSemantics |
| Constructor and Description |
|---|
WarpScriptExecutor() |
WarpScriptExecutor(WarpScriptExecutor.StackSemantics semantics,
java.lang.String script) |
WarpScriptExecutor(WarpScriptExecutor.StackSemantics semantics,
java.lang.String script,
java.util.Map<java.lang.String,java.lang.Object> symbols) |
WarpScriptExecutor(WarpScriptExecutor.StackSemantics semantics,
java.lang.String script,
java.util.Map<java.lang.String,java.lang.Object> symbols,
org.apache.hadoop.util.Progressable progressable) |
WarpScriptExecutor(WarpScriptExecutor.StackSemantics semantics,
java.lang.String script,
java.util.Map<java.lang.String,java.lang.Object> symbols,
org.apache.hadoop.util.Progressable progressable,
boolean wrapInMacro) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Object> |
exec(java.util.List<java.lang.Object> input)
Execute the embedded macro on the given stack content.
|
WarpScriptExecutor |
store(java.lang.String key,
java.lang.Object value)
Store a symbol in the symbol table.
|
public WarpScriptExecutor()
public WarpScriptExecutor(WarpScriptExecutor.StackSemantics semantics, java.lang.String script) throws WarpScriptException
WarpScriptExceptionpublic WarpScriptExecutor(WarpScriptExecutor.StackSemantics semantics, java.lang.String script, java.util.Map<java.lang.String,java.lang.Object> symbols) throws WarpScriptException
WarpScriptExceptionpublic WarpScriptExecutor(WarpScriptExecutor.StackSemantics semantics, java.lang.String script, java.util.Map<java.lang.String,java.lang.Object> symbols, org.apache.hadoop.util.Progressable progressable) throws WarpScriptException
WarpScriptExceptionpublic WarpScriptExecutor(WarpScriptExecutor.StackSemantics semantics, java.lang.String script, java.util.Map<java.lang.String,java.lang.Object> symbols, org.apache.hadoop.util.Progressable progressable, boolean wrapInMacro) throws WarpScriptException
WarpScriptExceptionpublic java.util.List<java.lang.Object> exec(java.util.List<java.lang.Object> input)
throws WarpScriptException
input - Stack content to push on the stack, index 0 is the top of the stack.WarpScriptExceptionpublic WarpScriptExecutor store(java.lang.String key, java.lang.Object value)