public static interface Case.Impl extends Case
Case.Impl, Case.MultiOutImpl, Case.Out, Case.OutImpl
Modifier and Type | Method and Description |
---|---|
Case.Impl |
ackReturn(java.lang.Object arg)
Accumulate value according to depot source options to return with depot appends done with AckLevel.ACK
|
Case.OutImpl |
agg(Agg agg)
Aggregates input in a
batch block to a single value. |
Case.Impl |
agg(java.lang.String pstateVar,
Agg agg)
Update PState partition on current task with given aggregator.
|
Case.Impl |
allPartition()
Executes subsequent code on all tasks in module
|
Case.Impl |
allPartition(java.lang.String pobjectVar)
Executes subsequent code on all partitions of given depot or PState
|
Case.Impl |
anchor(java.lang.String anchor)
Attaches a no-op node with the given anchor
|
Case.Impl |
atomicBlock(Block block)
Runs subblock until it completes synchronously.
|
Case.Impl |
batchBlock(Block batchBlock)
Specifies a batch block.
|
Case.Impl |
branch(java.lang.String anchor,
Block block) |
Case.OutImpl |
compoundAgg(CompoundAgg compoundAgg)
Aggregates input in a
batch block to a single value. |
Case.Impl |
compoundAgg(java.lang.String pstateVar,
CompoundAgg compoundAgg)
Update PState partition on current task with given aggregation template.
|
Case.Impl |
cond(Case... cases)
Evaluates condition for each
Case in order. |
Case.Impl |
continueLoop(java.lang.Object... args)
Executes another iteration of the loop.
|
Case.Impl |
customPartition(RamaFunction1<java.lang.Integer,java.lang.Integer> op)
Changes task to task ID specified by custom partitioner function with one argument.
|
<T0> Case.Impl |
customPartition(RamaFunction2<java.lang.Integer,T0,java.lang.Integer> op,
java.lang.Object arg0)
Changes task to task ID specified by custom partitioner function with two arguments.
|
<T0,T1> Case.Impl |
customPartition(RamaFunction3<java.lang.Integer,T0,T1,java.lang.Integer> op,
java.lang.Object arg0,
java.lang.Object arg1)
Changes task to task ID specified by custom partitioner function with three arguments.
|
<T0,T1,T2> Case.Impl |
customPartition(RamaFunction4<java.lang.Integer,T0,T1,T2,java.lang.Integer> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
Changes task to task ID specified by custom partitioner function with four arguments.
|
<T0,T1,T2,T3> |
customPartition(RamaFunction5<java.lang.Integer,T0,T1,T2,T3,java.lang.Integer> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Changes task to task ID specified by custom partitioner function with five arguments.
|
<T0,T1,T2,T3,T4> |
customPartition(RamaFunction6<java.lang.Integer,T0,T1,T2,T3,T4,java.lang.Integer> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
Changes task to task ID specified by custom partitioner function with six arguments.
|
<T0,T1,T2,T3,T4,T5> |
customPartition(RamaFunction7<java.lang.Integer,T0,T1,T2,T3,T4,T5,java.lang.Integer> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5)
Changes task to task ID specified by custom partitioner function with seven arguments.
|
<T0,T1,T2,T3,T4,T5,T6> |
customPartition(RamaFunction8<java.lang.Integer,T0,T1,T2,T3,T4,T5,T6,java.lang.Integer> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5,
java.lang.Object arg6)
Changes task to task ID specified by custom partitioner function with eight arguments.
|
Case.Impl |
customPartition(java.lang.String pobjectVar,
RamaFunction1<java.lang.Integer,java.lang.Integer> op)
Changes to task containing PState partition specified by custom partitioner function with one argument.
|
<T0> Case.Impl |
customPartition(java.lang.String pobjectVar,
RamaFunction2<java.lang.Integer,T0,java.lang.Integer> op,
java.lang.Object arg0)
Changes to task containing PState partition specified by custom partitioner function with two arguments.
|
<T0,T1> Case.Impl |
customPartition(java.lang.String pobjectVar,
RamaFunction3<java.lang.Integer,T0,T1,java.lang.Integer> op,
java.lang.Object arg0,
java.lang.Object arg1)
Changes to task containing PState partition specified by custom partitioner function with three arguments.
|
<T0,T1,T2> Case.Impl |
customPartition(java.lang.String pobjectVar,
RamaFunction4<java.lang.Integer,T0,T1,T2,java.lang.Integer> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
Changes to task containing PState partition specified by custom partitioner function with four arguments.
|
<T0,T1,T2,T3> |
customPartition(java.lang.String pobjectVar,
RamaFunction5<java.lang.Integer,T0,T1,T2,T3,java.lang.Integer> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Changes to task containing PState partition specified by custom partitioner function with five arguments.
|
<T0,T1,T2,T3,T4> |
customPartition(java.lang.String pobjectVar,
RamaFunction6<java.lang.Integer,T0,T1,T2,T3,T4,java.lang.Integer> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
Changes to task containing PState partition specified by custom partitioner function with six arguments.
|
<T0,T1,T2,T3,T4,T5> |
customPartition(java.lang.String pobjectVar,
RamaFunction7<java.lang.Integer,T0,T1,T2,T3,T4,T5,java.lang.Integer> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5)
Changes to task containing PState partition specified by custom partitioner function with seven arguments.
|
<T0,T1,T2,T3,T4,T5,T6> |
customPartition(java.lang.String pobjectVar,
RamaFunction8<java.lang.Integer,T0,T1,T2,T3,T4,T5,T6,java.lang.Integer> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5,
java.lang.Object arg6)
Changes to task containing PState partition specified by custom partitioner function with eight arguments.
|
Case.OutImpl |
depotPartitionAppend(java.lang.String depotVar,
java.lang.Object arg)
Append data to the partition of the depot represented by current task.
|
Case.OutImpl |
depotPartitionAppend(java.lang.String depotVar,
java.lang.Object arg,
AckLevel ackLevel)
Append data to the partition of the depot represented by current task.
|
Case.Impl |
directPartition(java.lang.Object argTaskId)
Changes to specified task ID
|
Case.Impl |
directPartition(java.lang.String pobjectVar,
java.lang.Object argPartitionId)
Changes to specified partition of the given depot or PState
|
<R> Case.OutImpl |
each(RamaFunction0<R> op)
Invokes a function of zero arguments.
|
<T0,R> Case.OutImpl |
each(RamaFunction1<T0,R> op,
java.lang.Object arg0)
Invokes a function of one argument.
|
<T0,T1,R> Case.OutImpl |
each(RamaFunction2<T0,T1,R> op,
java.lang.Object arg0,
java.lang.Object arg1)
Invokes a function of two arguments.
|
<T0,T1,T2,R> |
each(RamaFunction3<T0,T1,T2,R> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
Invokes a function of three arguments.
|
<T0,T1,T2,T3,R> |
each(RamaFunction4<T0,T1,T2,T3,R> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Invokes a function of four arguments.
|
<T0,T1,T2,T3,T4,R> |
each(RamaFunction5<T0,T1,T2,T3,T4,R> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
Invokes a function of five arguments.
|
<T0,T1,T2,T3,T4,T5,R> |
each(RamaFunction6<T0,T1,T2,T3,T4,T5,R> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5)
Invokes a function of six arguments.
|
<T0,T1,T2,T3,T4,T5,T6,R> |
each(RamaFunction7<T0,T1,T2,T3,T4,T5,T6,R> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5,
java.lang.Object arg6)
Invokes a function of seven arguments.
|
<T0,T1,T2,T3,T4,T5,T6,T7,R> |
each(RamaFunction8<T0,T1,T2,T3,T4,T5,T6,T7,R> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5,
java.lang.Object arg6,
java.lang.Object arg7)
Invokes a function of eight arguments.
|
Case.MultiOutImpl |
each(RamaOperation0 op)
Invokes an operation of zero arguments.
|
<T0> Case.MultiOutImpl |
each(RamaOperation1<T0> op,
java.lang.Object arg0)
Invokes an operation of one argument.
|
<T0,T1> Case.MultiOutImpl |
each(RamaOperation2<T0,T1> op,
java.lang.Object arg0,
java.lang.Object arg1)
Invokes an operation of two arguments.
|
<T0,T1,T2> Case.MultiOutImpl |
each(RamaOperation3<T0,T1,T2> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
Invokes an operation of three arguments.
|
<T0,T1,T2,T3> |
each(RamaOperation4<T0,T1,T2,T3> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Invokes an operation of four arguments.
|
<T0,T1,T2,T3,T4> |
each(RamaOperation5<T0,T1,T2,T3,T4> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
Invokes an operation of five arguments.
|
<T0,T1,T2,T3,T4,T5> |
each(RamaOperation6<T0,T1,T2,T3,T4,T5> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5)
Invokes an operation of six arguments.
|
<T0,T1,T2,T3,T4,T5,T6> |
each(RamaOperation7<T0,T1,T2,T3,T4,T5,T6> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5,
java.lang.Object arg6)
Invokes an operation of seven arguments.
|
<T0,T1,T2,T3,T4,T5,T6,T7> |
each(RamaOperation8<T0,T1,T2,T3,T4,T5,T6,T7> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5,
java.lang.Object arg6,
java.lang.Object arg7)
Invokes an operation of eight arguments.
|
Case.OutImpl |
eachAsync(RamaFunction0<java.util.concurrent.CompletableFuture> op)
Invokes a function of zero arguments that returns its result asynchronously via a returned CompletableFuture.
|
<T0> Case.OutImpl |
eachAsync(RamaFunction1<T0,java.util.concurrent.CompletableFuture> op,
java.lang.Object arg0)
Invokes a function of one argument that returns its result asynchronously via a returned CompletableFuture.
|
<T0,T1> Case.OutImpl |
eachAsync(RamaFunction2<T0,T1,java.util.concurrent.CompletableFuture> op,
java.lang.Object arg0,
java.lang.Object arg1)
Invokes a function of two arguments that returns its result asynchronously via a returned CompletableFuture.
|
<T0,T1,T2> Case.OutImpl |
eachAsync(RamaFunction3<T0,T1,T2,java.util.concurrent.CompletableFuture> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
Invokes a function of three arguments that returns its result asynchronously via a returned CompletableFuture.
|
<T0,T1,T2,T3> |
eachAsync(RamaFunction4<T0,T1,T2,T3,java.util.concurrent.CompletableFuture> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Invokes a function of four arguments that returns its result asynchronously via a returned CompletableFuture.
|
<T0,T1,T2,T3,T4> |
eachAsync(RamaFunction5<T0,T1,T2,T3,T4,java.util.concurrent.CompletableFuture> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4)
Invokes a function of five arguments that returns its result asynchronously via a returned CompletableFuture.
|
<T0,T1,T2,T3,T4,T5> |
eachAsync(RamaFunction6<T0,T1,T2,T3,T4,T5,java.util.concurrent.CompletableFuture> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5)
Invokes a function of six arguments that returns its result asynchronously via a returned CompletableFuture.
|
<T0,T1,T2,T3,T4,T5,T6> |
eachAsync(RamaFunction7<T0,T1,T2,T3,T4,T5,T6,java.util.concurrent.CompletableFuture> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5,
java.lang.Object arg6)
Invokes a function of seven arguments that returns its result asynchronously via a returned CompletableFuture.
|
<T0,T1,T2,T3,T4,T5,T6,T7> |
eachAsync(RamaFunction8<T0,T1,T2,T3,T4,T5,T6,T7,java.util.concurrent.CompletableFuture> op,
java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
java.lang.Object arg4,
java.lang.Object arg5,
java.lang.Object arg6,
java.lang.Object arg7)
Invokes a function of eight arguments that returns its result asynchronously via a returned CompletableFuture.
|
Case.Impl |
emitLoop(java.lang.Object... args)
Emits from a loop.
|
Case.OutImpl |
explodeMaterialized(java.lang.String pstateVar)
Emits all tuples across all partitions of a temporary PState created from
Block.materialize(java.lang.Object...) . |
Case.OutImpl |
explodeMicrobatch(java.lang.String microbatchVar)
Emits all data for this microbatch source across all partitions of depot
|
Case.Impl |
freshBatchSource()
Declares a new batch source within pre-agg portion of a
batch block |
Case.Impl |
globalPartition()
Changes to task 0
|
Case.Impl |
globalPartition(java.lang.String pobjectVar)
Changes to partition 0 of given depot or PState.
|
Case.Impl |
groupBy(java.lang.String var0,
Block groupByBlock)
Groups input by one key and performs aggregations in the specified block on each group of data independently.
|
Case.Impl |
groupBy(java.lang.String var0,
java.lang.String var1,
Block groupByBlock)
Groups input by two keys and performs aggregations in the specified block on each group of data independently.
|
Case.Impl |
groupBy(java.lang.String var0,
java.lang.String var1,
java.lang.String var2,
Block groupByBlock)
Groups input by three keys and performs aggregations in the specified block on each group of data independently.
|
Case.Impl |
groupBy(java.lang.String var0,
java.lang.String var1,
java.lang.String var2,
java.lang.String var3,
Block groupByBlock)
Groups input by four keys and performs aggregations in the specified block on each group of data independently.
|
Case.Impl |
groupBy(java.lang.String var0,
java.lang.String var1,
java.lang.String var2,
java.lang.String var3,
java.lang.String var4,
Block groupByBlock)
Groups input by five keys and performs aggregations in the specified block on each group of data independently.
|
Case.Impl |
groupBy(java.lang.String var0,
java.lang.String var1,
java.lang.String var2,
java.lang.String var3,
java.lang.String var4,
java.lang.String var5,
Block groupByBlock)
Groups input by six keys and performs aggregations in the specified block on each group of data independently.
|
Case.Impl |
hashPartition(java.lang.Object arg)
Changes tasks based on hash of argument modulo number of tasks in module.
|
Case.Impl |
hashPartition(java.lang.String pobjectVar,
java.lang.Object arg)
Changes tasks based on hash of argument modulo number of partitions of given depot or PState.
|
Case.Impl |
hook(java.lang.String anchor)
Changes attachment point for subsequent code to node with given anchor
|
Case.Impl |
ifTrue(java.lang.Object arg,
Block thenBlock)
If argument is truthy (not null or boolean false), runs the given subblock.
|
Case.Impl |
ifTrue(java.lang.Object arg,
Block thenBlock,
Block elseBlock)
If argument is truthy (not null or boolean false), runs thenBlock.
|
Case.OutImpl |
invokeQuery(java.lang.String queryVarOrTopologyName,
java.lang.Object... args)
Invokes a colocated or mirror query topology
|
Case.Impl |
keepTrue(java.lang.Object arg)
Continues dataflow execution only if arg is truthy (not null or boolean false).
|
Case.Impl |
limitAgg(LimitAgg limitAgg)
Limits incoming data to a fixed amount according to optional sort options.
|
Case.Impl |
localClear(java.lang.String pstateVar)
Removes all data from the PState partition on current task.
|
Case.OutImpl |
localSelect(java.lang.String pstateVar,
Path path)
Navigates into the PState partition on current task using the given
Path . |
Case.Impl |
localTransform(java.lang.String pstateVar,
Path path)
Executes
transform Path on the PState partition on current task. |
Case.OutImpl |
loop(Block loopBlock)
Creates a dataflow loop with the given body.
|
Case.OutImpl |
loopWithVars(LoopVars loopVars,
Block loopBlock)
Creates a dataflow loop with the given vars and body.
|
Case.Impl |
macro(Block block)
Inserts all code from given Block into the current callsite.
|
Case.OutImpl |
materialize(java.lang.Object... args)
Produces a temporary PState of tuples within a batch block in a microbatch topology.
|
Case.Impl |
originPartition()
Changes back to starting task for a query topology invocation.
|
Case.Impl |
pathPartition(java.lang.String pstateVar,
Path path)
Changes to task for given PState containing data for given
Path |
Case.OutImpl |
select(java.lang.Object arg,
Path path)
Changes to task for given PState containing data for given
Path and then performs
a localSelect . |
Case.Impl |
shufflePartition()
Changes to a random task using random round-robin algorithm.
|
Case.OutImpl |
subBatch(SubBatch subBatch)
Use specified SubBatch as a batch source in a
batch block . |
Case.Impl |
subSource(java.lang.Object arg,
SubSource... subsources)
Conditionally dispatch code based on type of input object
|
Case.Impl |
unify(java.lang.String anchor1,
java.lang.String anchor2,
java.lang.String... anchors)
Attaches subsequent code to each of the anchors specified, merging computation flowing out
of those nodes.
|
Case.Impl |
yieldIfOvertime()
Yield the task thread if current event is using too much time.
|
Case.Impl anchor(java.lang.String anchor)
anchor
- Label for the nodeCase.Impl atomicBlock(Block block)
block
- Subblock<R> Case.OutImpl each(RamaFunction0<R> op)
Expr
.
A function always emits exactly one time. Output can be captured with a call to
out
following this node. Built-in functions and operations can be
found as static fields of the Ops class
.op
- Function to execute. Can also be specified as a lambda or method reference.<T0,R> Case.OutImpl each(RamaFunction1<T0,R> op, java.lang.Object arg0)
Expr
.
A function always emits exactly one time. Output can be captured with a call to
out
following this node. Built-in functions and operations can be
found as static fields of the Ops class
.op
- Function to execute. Can also be specified as a lambda or method reference.<T0,T1,R> Case.OutImpl each(RamaFunction2<T0,T1,R> op, java.lang.Object arg0, java.lang.Object arg1)
Expr
.
A function always emits exactly one time. Output can be captured with a call to
out
following this node. Built-in functions and operations can be
found as static fields of the Ops class
.op
- Function to execute. Can also be specified as a lambda or method reference.<T0,T1,T2,R> Case.OutImpl each(RamaFunction3<T0,T1,T2,R> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2)
Expr
.
A function always emits exactly one time. Output can be captured with a call to
out
following this node. Built-in functions and operations can be
found as static fields of the Ops class
.op
- Function to execute. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,R> Case.OutImpl each(RamaFunction4<T0,T1,T2,T3,R> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
Expr
.
A function always emits exactly one time. Output can be captured with a call to
out
following this node. Built-in functions and operations can be
found as static fields of the Ops class
.op
- Function to execute. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,T4,R> Case.OutImpl each(RamaFunction5<T0,T1,T2,T3,T4,R> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
Expr
.
A function always emits exactly one time. Output can be captured with a call to
out
following this node. Built-in functions and operations can be
found as static fields of the Ops class
.op
- Function to execute. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,T4,T5,R> Case.OutImpl each(RamaFunction6<T0,T1,T2,T3,T4,T5,R> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5)
Expr
.
A function always emits exactly one time. Output can be captured with a call to
out
following this node. Built-in functions and operations can be
found as static fields of the Ops class
.op
- Function to execute. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,T4,T5,T6,R> Case.OutImpl each(RamaFunction7<T0,T1,T2,T3,T4,T5,T6,R> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5, java.lang.Object arg6)
Expr
.
A function always emits exactly one time. Output can be captured with a call to
out
following this node. Built-in functions and operations can be
found as static fields of the Ops class
.op
- Function to execute. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,T4,T5,T6,T7,R> Case.OutImpl each(RamaFunction8<T0,T1,T2,T3,T4,T5,T6,T7,R> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5, java.lang.Object arg6, java.lang.Object arg7)
Expr
.
A function always emits exactly one time. Output can be captured with a call to
out
following this node. Built-in functions and operations can be
found as static fields of the Ops class
.op
- Function to execute. Can also be specified as a lambda or method reference.Case.MultiOutImpl each(RamaOperation0 op)
Expr
.
An operation can emit any number of times to any number of output streams. Output can be captured
with calls to outStream
and
out
following this node. Built-in functions and operations
can be found as static fields of the Ops class
.op
- Operation to execute. Can also be specified as a lambda or method reference.<T0> Case.MultiOutImpl each(RamaOperation1<T0> op, java.lang.Object arg0)
Expr
.
An operation can emit any number of times to any number of output streams. Output can be captured
with calls to outStream
and
out
following this node. Built-in functions and operations
can be found as static fields of the Ops class
.op
- Operation to execute. Can also be specified as a lambda or method reference.<T0,T1> Case.MultiOutImpl each(RamaOperation2<T0,T1> op, java.lang.Object arg0, java.lang.Object arg1)
Expr
.
An operation can emit any number of times to any number of output streams. Output can be captured
with calls to outStream
and
out
following this node. Built-in functions and operations
can be found as static fields of the Ops class
.op
- Operation to execute. Can also be specified as a lambda or method reference.<T0,T1,T2> Case.MultiOutImpl each(RamaOperation3<T0,T1,T2> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2)
Expr
.
An operation can emit any number of times to any number of output streams. Output can be captured
with calls to outStream
and
out
following this node. Built-in functions and operations
can be found as static fields of the Ops class
.op
- Operation to execute. Can also be specified as a lambda or method reference.<T0,T1,T2,T3> Case.MultiOutImpl each(RamaOperation4<T0,T1,T2,T3> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
Expr
.
An operation can emit any number of times to any number of output streams. Output can be captured
with calls to outStream
and
out
following this node. Built-in functions and operations
can be found as static fields of the Ops class
.op
- Operation to execute. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,T4> Case.MultiOutImpl each(RamaOperation5<T0,T1,T2,T3,T4> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
Expr
.
An operation can emit any number of times to any number of output streams. Output can be captured
with calls to outStream
and
out
following this node. Built-in functions and operations
can be found as static fields of the Ops class
.op
- Operation to execute. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,T4,T5> Case.MultiOutImpl each(RamaOperation6<T0,T1,T2,T3,T4,T5> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5)
Expr
.
An operation can emit any number of times to any number of output streams. Output can be captured
with calls to outStream
and
out
following this node. Built-in functions and operations
can be found as static fields of the Ops class
.op
- Operation to execute. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,T4,T5,T6> Case.MultiOutImpl each(RamaOperation7<T0,T1,T2,T3,T4,T5,T6> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5, java.lang.Object arg6)
Expr
.
An operation can emit any number of times to any number of output streams. Output can be captured
with calls to outStream
and
out
following this node. Built-in functions and operations
can be found as static fields of the Ops class
.op
- Operation to execute. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,T4,T5,T6,T7> Case.MultiOutImpl each(RamaOperation8<T0,T1,T2,T3,T4,T5,T6,T7> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5, java.lang.Object arg6, java.lang.Object arg7)
Expr
.
An operation can emit any number of times to any number of output streams. Output can be captured
with calls to outStream
and
out
following this node. Built-in functions and operations
can be found as static fields of the Ops class
.op
- Operation to execute. Can also be specified as a lambda or method reference.Case.OutImpl eachAsync(RamaFunction0<java.util.concurrent.CompletableFuture> op)
Expr
.
Output can be captured with a call to
out
following this node. The var bound by out
is the value delivered to the returned CompletableFuture.op
- Function to execute. Can also be specified as a lambda or method reference.<T0> Case.OutImpl eachAsync(RamaFunction1<T0,java.util.concurrent.CompletableFuture> op, java.lang.Object arg0)
Expr
.
Output can be captured with a call to
out
following this node. The var bound by out
is the value delivered to the returned CompletableFuture.op
- Function to execute. Can also be specified as a lambda or method reference.<T0,T1> Case.OutImpl eachAsync(RamaFunction2<T0,T1,java.util.concurrent.CompletableFuture> op, java.lang.Object arg0, java.lang.Object arg1)
Expr
.
Output can be captured with a call to
out
following this node. The var bound by out
is the value delivered to the returned CompletableFuture.op
- Function to execute. Can also be specified as a lambda or method reference.<T0,T1,T2> Case.OutImpl eachAsync(RamaFunction3<T0,T1,T2,java.util.concurrent.CompletableFuture> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2)
Expr
.
Output can be captured with a call to
out
following this node. The var bound by out
is the value delivered to the returned CompletableFuture.op
- Function to execute. Can also be specified as a lambda or method reference.<T0,T1,T2,T3> Case.OutImpl eachAsync(RamaFunction4<T0,T1,T2,T3,java.util.concurrent.CompletableFuture> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
Expr
.
Output can be captured with a call to
out
following this node. The var bound by out
is the value delivered to the returned CompletableFuture.op
- Function to execute. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,T4> Case.OutImpl eachAsync(RamaFunction5<T0,T1,T2,T3,T4,java.util.concurrent.CompletableFuture> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
Expr
.
Output can be captured with a call to
out
following this node. The var bound by out
is the value delivered to the returned CompletableFuture.op
- Function to execute. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,T4,T5> Case.OutImpl eachAsync(RamaFunction6<T0,T1,T2,T3,T4,T5,java.util.concurrent.CompletableFuture> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5)
Expr
.
Output can be captured with a call to
out
following this node. The var bound by out
is the value delivered to the returned CompletableFuture.op
- Function to execute. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,T4,T5,T6> Case.OutImpl eachAsync(RamaFunction7<T0,T1,T2,T3,T4,T5,T6,java.util.concurrent.CompletableFuture> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5, java.lang.Object arg6)
Expr
.
Output can be captured with a call to
out
following this node. The var bound by out
is the value delivered to the returned CompletableFuture.op
- Function to execute. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,T4,T5,T6,T7> Case.OutImpl eachAsync(RamaFunction8<T0,T1,T2,T3,T4,T5,T6,T7,java.util.concurrent.CompletableFuture> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5, java.lang.Object arg6, java.lang.Object arg7)
Expr
.
Output can be captured with a call to
out
following this node. The var bound by out
is the value delivered to the returned CompletableFuture.op
- Function to execute. Can also be specified as a lambda or method reference.Case.Impl customPartition(RamaFunction1<java.lang.Integer,java.lang.Integer> op)
op
- Custom partitioner function. Can also be specified as a lambda or method reference.<T0> Case.Impl customPartition(RamaFunction2<java.lang.Integer,T0,java.lang.Integer> op, java.lang.Object arg0)
op
- Custom partitioner function. Can also be specified as a lambda or method reference.<T0,T1> Case.Impl customPartition(RamaFunction3<java.lang.Integer,T0,T1,java.lang.Integer> op, java.lang.Object arg0, java.lang.Object arg1)
op
- Custom partitioner function. Can also be specified as a lambda or method reference.<T0,T1,T2> Case.Impl customPartition(RamaFunction4<java.lang.Integer,T0,T1,T2,java.lang.Integer> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2)
op
- Custom partitioner function. Can also be specified as a lambda or method reference.<T0,T1,T2,T3> Case.Impl customPartition(RamaFunction5<java.lang.Integer,T0,T1,T2,T3,java.lang.Integer> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
op
- Custom partitioner function. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,T4> Case.Impl customPartition(RamaFunction6<java.lang.Integer,T0,T1,T2,T3,T4,java.lang.Integer> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
op
- Custom partitioner function. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,T4,T5> Case.Impl customPartition(RamaFunction7<java.lang.Integer,T0,T1,T2,T3,T4,T5,java.lang.Integer> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5)
op
- Custom partitioner function. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,T4,T5,T6> Case.Impl customPartition(RamaFunction8<java.lang.Integer,T0,T1,T2,T3,T4,T5,T6,java.lang.Integer> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5, java.lang.Object arg6)
op
- Custom partitioner function. Can also be specified as a lambda or method reference.Case.Impl customPartition(java.lang.String pobjectVar, RamaFunction1<java.lang.Integer,java.lang.Integer> op)
op
- Custom partitioner function. Can also be specified as a lambda or method reference.<T0> Case.Impl customPartition(java.lang.String pobjectVar, RamaFunction2<java.lang.Integer,T0,java.lang.Integer> op, java.lang.Object arg0)
op
- Custom partitioner function. Can also be specified as a lambda or method reference.<T0,T1> Case.Impl customPartition(java.lang.String pobjectVar, RamaFunction3<java.lang.Integer,T0,T1,java.lang.Integer> op, java.lang.Object arg0, java.lang.Object arg1)
op
- Custom partitioner function. Can also be specified as a lambda or method reference.<T0,T1,T2> Case.Impl customPartition(java.lang.String pobjectVar, RamaFunction4<java.lang.Integer,T0,T1,T2,java.lang.Integer> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2)
op
- Custom partitioner function. Can also be specified as a lambda or method reference.<T0,T1,T2,T3> Case.Impl customPartition(java.lang.String pobjectVar, RamaFunction5<java.lang.Integer,T0,T1,T2,T3,java.lang.Integer> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
op
- Custom partitioner function. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,T4> Case.Impl customPartition(java.lang.String pobjectVar, RamaFunction6<java.lang.Integer,T0,T1,T2,T3,T4,java.lang.Integer> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
op
- Custom partitioner function. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,T4,T5> Case.Impl customPartition(java.lang.String pobjectVar, RamaFunction7<java.lang.Integer,T0,T1,T2,T3,T4,T5,java.lang.Integer> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5)
op
- Custom partitioner function. Can also be specified as a lambda or method reference.<T0,T1,T2,T3,T4,T5,T6> Case.Impl customPartition(java.lang.String pobjectVar, RamaFunction8<java.lang.Integer,T0,T1,T2,T3,T4,T5,T6,java.lang.Integer> op, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4, java.lang.Object arg5, java.lang.Object arg6)
op
- Custom partitioner function. Can also be specified as a lambda or method reference.Case.Impl groupBy(java.lang.String var0, Block groupByBlock)
batchBlock
. Emits into postagg the vars for keys
and results of aggregations.groupByBlock
- Block containing aggregation codeCase.Impl groupBy(java.lang.String var0, java.lang.String var1, Block groupByBlock)
batchBlock
. Emits into postagg the vars for keys
and results of aggregations.groupByBlock
- Block containing aggregation codeCase.Impl groupBy(java.lang.String var0, java.lang.String var1, java.lang.String var2, Block groupByBlock)
batchBlock
. Emits into postagg the vars for keys
and results of aggregations.groupByBlock
- Block containing aggregation codeCase.Impl groupBy(java.lang.String var0, java.lang.String var1, java.lang.String var2, java.lang.String var3, Block groupByBlock)
batchBlock
. Emits into postagg the vars for keys
and results of aggregations.groupByBlock
- Block containing aggregation codeCase.Impl groupBy(java.lang.String var0, java.lang.String var1, java.lang.String var2, java.lang.String var3, java.lang.String var4, Block groupByBlock)
batchBlock
. Emits into postagg the vars for keys
and results of aggregations.groupByBlock
- Block containing aggregation codeCase.Impl groupBy(java.lang.String var0, java.lang.String var1, java.lang.String var2, java.lang.String var3, java.lang.String var4, java.lang.String var5, Block groupByBlock)
batchBlock
. Emits into postagg the vars for keys
and results of aggregations.groupByBlock
- Block containing aggregation codeCase.Impl hook(java.lang.String anchor)
anchor
- Label of node to attach toCase.Impl ifTrue(java.lang.Object arg, Block thenBlock)
arg
- Value, var, or Expr
to test for truthiness (not null or boolean false). Common to use an
Expr
here.thenBlock
- Subblock run if condition passesCase.Impl ifTrue(java.lang.Object arg, Block thenBlock, Block elseBlock)
arg
- Value, var, or Expr
to test for truthiness (not null or boolean false). Common to
use an Expr
here.thenBlock
- Subblock run if condition passeselseBlock
- Subblock run if condition does not passCase.Impl keepTrue(java.lang.Object arg)
arg
- Value, var, or Expr
Case.Impl unify(java.lang.String anchor1, java.lang.String anchor2, java.lang.String... anchors)
Case.OutImpl loop(Block loopBlock)
emitLoop
is used
to emit from the loop, and continueLoop
is used to execute
the loop body again. A loop call can be optionally followed by a call to
out
to capture any output emitted as vars.loopBlock
- Body of the loopCase.OutImpl loopWithVars(LoopVars loopVars, Block loopBlock)
emitLoop
is
used to emit from the loop, and continueLoop
is used to execute
the loop body again. The vars are given initial values and updated with each call to
continueLoop
. A loopWithVars call can be optionally followed by
a call to out
to capture any output emitted as vars.loopVars
- Declaration of vars for each iteration of looploopBlock
- Body of the loopCase.Impl continueLoop(java.lang.Object... args)
loop
or
loopWithVars
. When used with
loopWithVars
, must provide as input values for all loop vars for the
next loop iteration.args
- Values for loop vars for next iteration of loopCase.Impl emitLoop(java.lang.Object... args)
loop
or
loopWithVars
. This is only way for code following
loop
or loopWithVars
to execute.args
- Values to emitCase.OutImpl select(java.lang.Object arg, Path path)
Path
and then performs
a localSelect
. PState reference can be colocated PState or
mirror PState.
Code after select stays on new task and does not go back to original task.arg
- PState or object to query. Only changes tasks if PState var.path
- Path definitionCase.OutImpl localSelect(java.lang.String pstateVar, Path path)
Path
.
Emits once for every value navigated to. Use out
to capture emits
into subsequent dataflow code.pstateVar
- PState to querypath
- Path definitionCase.Impl localTransform(java.lang.String pstateVar, Path path)
transform Path
on the PState partition on current task.pstateVar
- PState to modifypath
- Path definitionCase.Impl localClear(java.lang.String pstateVar)
pstateVar
- PState to clearCase.Impl hashPartition(java.lang.Object arg)
arg
- Value, var, or Expr
Case.Impl hashPartition(java.lang.String pobjectVar, java.lang.Object arg)
pobjectVar
- Depot or PState referencearg
- Value, var, or Expr
Case.Impl allPartition()
Case.Impl allPartition(java.lang.String pobjectVar)
pobjectVar
- Depot or PState referenceCase.Impl globalPartition()
Case.Impl globalPartition(java.lang.String pobjectVar)
pobjectVar
- Depot or PState referenceCase.Impl shufflePartition()
Case.Impl directPartition(java.lang.Object argTaskId)
argTaskId
- Value, var, or Expr
Case.Impl directPartition(java.lang.String pobjectVar, java.lang.Object argPartitionId)
pobjectVar
- Depot or PState referenceargPartitionId
- Value, var, or Expr
Case.Impl pathPartition(java.lang.String pstateVar, Path path)
Path
pstateVar
- PState referencepath
- Path definitionCase.Impl originPartition()
Case.OutImpl agg(Agg agg)
batch block
to a single value.
Capture output with out
.agg
- Aggregator to useCase.Impl agg(java.lang.String pstateVar, Agg agg)
pstateVar
- PState referenceagg
- Aggregator to useCase.Impl limitAgg(LimitAgg limitAgg)
limitAgg
- Definition of aggregatorCase.OutImpl compoundAgg(CompoundAgg compoundAgg)
batch block
to a single value.
Aggregation specified using a data structure template. Capture output with out
.compoundAgg
- Data structure template of aggregationCase.Impl compoundAgg(java.lang.String pstateVar, CompoundAgg compoundAgg)
pstateVar
- PState referencecompoundAgg
- Data structure template of aggregationCase.Impl batchBlock(Block batchBlock)
batchBlock
- Body of batch blockCase.Impl freshBatchSource()
batch block
Case.OutImpl materialize(java.lang.Object... args)
out
call to name the PState.args
- Values to capture into tuplesCase.OutImpl explodeMaterialized(java.lang.String pstateVar)
Block.materialize(java.lang.Object...)
.
Use subsequent out
call to assign vars to each element of materialized tuples.pstateVar
- Temporary PState referenceCase.OutImpl explodeMicrobatch(java.lang.String microbatchVar)
microbatchVar
- Var representing microbatch coming from depot sourceCase.OutImpl invokeQuery(java.lang.String queryVarOrTopologyName, java.lang.Object... args)
queryVarOrTopologyName
- Either the name of a query topology in same module or var for another
module's query topology assigned when calling clusterQuery
args
- Arguments to query topologyCase.OutImpl depotPartitionAppend(java.lang.String depotVar, java.lang.Object arg, AckLevel ackLevel)
depotVar
- Depot referencearg
- Value, var, or Expr
ackLevel
- AckLevel
Case.OutImpl depotPartitionAppend(java.lang.String depotVar, java.lang.Object arg)
depotVar
- Depot referencearg
- Value, var, or Expr
Case.OutImpl subBatch(SubBatch subBatch)
batch block
.
Capture output of SubBatch into vars using subsequent out
call.Case.Impl macro(Block block)
block
- Dataflow codeCase.Impl subSource(java.lang.Object arg, SubSource... subsources)
arg
- Object to dispatch onsubsources
- Any number of declarations specifying a matching type and dataflow codeCase.Impl cond(Case... cases)
Case
in order. Stops checking on first matching condition and evaluates that case's dataflow code. If no condition matches, dataflow stops.cases
- Any number of Case
declarationsCase.Impl yieldIfOvertime()
Case.Impl ackReturn(java.lang.Object arg)
arg
- Value to accumulate