ShowFinalize: Function to display the name of the finalize function.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/topology.R

Description

Utility function to display the finalize function of a RStorm topology object or display the result of a finalize function of an RStorm result object.

Usage

1

Arguments

x

a topology created using Topology

Value

prints the finalize function of a Topology object.

Author(s)

Maurits Kaptein

See Also

See Also: Topology, RStorm, GetHash,

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Simple display of the finalize function itself
topology <- Topology(data.frame(x=c(1:10), y=rep(1,10)))

bolt.1 <- function(x, ...){ SetHash("finalize", data.frame(x=99)) }
topology <- AddBolt(topology, Bolt(bolt.1))

comp.av <- function(object, ...){ 
	return( rep(object$finalize$x, 10)) }

topology <- AddFinalize(topology, Bolt(comp.av))
ShowFinalize(topology)

# and in the result object:
result <- RStorm(topology)
ShowFinalize(result)

RStorm documentation built on May 2, 2019, 9:14 a.m.

Related to ShowFinalize in RStorm...