|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FarragoTransform
A piece of generated code must implement this interface if it is to be
callable from a Fennel JavaTransformExecStream wrapper. See FarragoTransformDef, which manages the construction of
a FarragoTransform during statement preparation, in FarragoPreparingStmt.
| Nested Class Summary | |
|---|---|
static class |
FarragoTransform.InputBinding
InputBinding binds a JavaTransformExecStream input's streamId to the ordinal assigned to that input by the stream graph. |
| Method Summary | |
|---|---|
int |
execute(ByteBuffer outputBuffer,
long quantum)
Does a quantum of work. |
void |
init(FarragoRuntimeContext connection,
String farragoTransformStreamName,
FarragoTransform.InputBinding[] inputBindings)
Binds all inputs and initializes the transform. |
void |
restart()
Restarts this transform's underlying TupleIter(s). |
void |
setInputFetchTimeout(long millisecs)
Sets a timeout for fetching an input row. |
| Method Detail |
|---|
void init(FarragoRuntimeContext connection,
String farragoTransformStreamName,
FarragoTransform.InputBinding[] inputBindings)
FarragoExecutableJavaStmt.execute(net.sf.farrago.session.FarragoSessionRuntimeContext).
connection - the FarragoRuntimeContext of the query that contains
this transform.farragoTransformStreamName - the globally unique name of the
ExecStream that implements this transform.inputBindings - bindings between the transform's input streamIds and
the ordinal assigned to them in the stream graph
int execute(ByteBuffer outputBuffer,
long quantum)
outputBuffer - output ByteBuffer into which tuples are marshaledquantum - the maximum number of tuples that should be processed
before returning (in practice this is limited to 2^32)
void setInputFetchTimeout(long millisecs)
void restart()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||