public class EmitFunction extends BaseFunction implements ScriptExecutor.Installable
ScriptProcessorWorker to write records into
the output bulk.| Constructor and Description |
|---|
EmitFunction(RecordOutput outputBulk,
TaskContext taskContext) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args) |
Scriptable |
construct(Context cx,
Scriptable scope,
java.lang.Object[] args) |
int |
getArity() |
java.lang.String |
getFunctionName() |
int |
getLength() |
void |
install(java.lang.Object installTarget)
Binds this instance of emit() into the specified scope under the property name "emit".
|
public EmitFunction(RecordOutput outputBulk, TaskContext taskContext)
public void install(java.lang.Object installTarget)
throws ScriptingEngineException
install in interface ScriptExecutor.InstallableinstallTarget - the scope where the emit() function is to be installed, must implement Scriptable.ScriptingEngineException - installation failed.public java.lang.Object call(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
public Scriptable construct(Context cx,
Scriptable scope,
java.lang.Object[] args)
public java.lang.String getFunctionName()
public int getArity()
public int getLength()